Table of Contents
Constants
-
DEFAULT_OPTIONS
= ['return_single_record' => false]
Properties
-
$logger
: LoggerInterface
-
$connection
: null|PDOConnection
-
$connections
: array<string|int, mixed>
-
$options
: array<string|int, mixed>
-
$queryOptions
: null|array<string|int, mixed>
-
$statement
: null|PDOStatement
Methods
-
__construct()
: mixed
-
addConnection()
: void
-
changeConnection()
: void
-
create()
: MySQL
-
dispatch()
: mixed
-
setLogger()
: void
-
setOptions()
: void
-
processRecords()
: mixed
-
setQueryOptions()
: void
-
delete()
: int
-
endTransaction()
: void
-
execute()
: array<string|int, mixed>
-
executeStatement()
: void
-
formatRecords()
: mixed
-
insert()
: int
-
parseOptions()
: array<string|int, mixed>
-
prepareAndExecute()
: void
-
processOptions()
: array<string|int, mixed>|object
-
query()
: QueryBuilder
-
revertTransaction()
: void
-
select()
: null|array<string|int, mixed>|object
-
startTransaction()
: void
-
update()
: int
DEFAULT_OPTIONS
protected
mixed
DEFAULT_OPTIONS
= ['return_single_record' => false]
$logger
protected
LoggerInterface
$logger
$connection
private
null|PDOConnection
$connection
= null
$connections
private
array<string|int, mixed>
$connections
= []
$options
private
array<string|int, mixed>
$options
= []
$queryOptions
private
null|array<string|int, mixed>
$queryOptions
= null
$statement
private
null|PDOStatement
$statement
= null
__construct()
public
__construct(null|PDOConnection $connection) : mixed
Parameters
-
$connection
: null|PDOConnection
-
addConnection()
public
addConnection(ConnectionInterface $connection) : void
Parameters
-
$connection
: ConnectionInterface
-
changeConnection()
public
changeConnection(int|string $name) : void
Parameters
-
$name
: int|string
-
create()
public
static create([null|PDOConnection $connection = null ]) : MySQL
Parameters
-
$connection
: null|PDOConnection
= null
-
dispatch()
public
dispatch(Action $action, mixed $args) : mixed
Parameters
-
$action
: Action
-
-
$args
: mixed
-
setLogger()
public
setLogger(LoggerInterface $logger) : void
Parameters
-
$logger
: LoggerInterface
-
setOptions()
public
setOptions(array<string|int, mixed> $options) : void
Parameters
-
$options
: array<string|int, mixed>
-
processRecords()
protected
processRecords(array<string|int, mixed> $records, array<string|int, mixed> $formatting) : mixed
Parameters
-
$records
: array<string|int, mixed>
-
-
$formatting
: array<string|int, mixed>
-
setQueryOptions()
protected
setQueryOptions(null|array<string|int, mixed> $queryOptions) : void
Parameters
-
$queryOptions
: null|array<string|int, mixed>
-
delete()
private
delete(QueryObject $queryObject) : int
Parameters
-
$queryObject
: QueryObject
-
endTransaction()
private
endTransaction() : void
execute()
private
execute(string $sql, null|array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
-
$sql
: string
-
-
$params
: null|array<string|int, mixed>
-
Return values
array<string|int, mixed>
executeStatement()
private
executeStatement(StatementInterface $statement) : void
Parameters
-
$statement
: StatementInterface
-
private
formatRecords(array<string|int, mixed> $records, Format $format[, mixed $args = null ]) : mixed
Parameters
-
$records
: array<string|int, mixed>
-
-
$format
: Format
-
-
$args
: mixed
= null
-
insert()
private
insert(QueryObject $queryObject) : int
Parameters
-
$queryObject
: QueryObject
-
parseOptions()
private
parseOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>
prepareAndExecute()
private
prepareAndExecute(string $sql, null|array<string|int, mixed> $params) : void
Parameters
-
$sql
: string
-
-
$params
: null|array<string|int, mixed>
-
processOptions()
private
processOptions(array<string|int, mixed> $records) : array<string|int, mixed>|object
Parameters
-
$records
: array<string|int, mixed>
-
Return values
array<string|int, mixed>|object
query()
private
query(array<string|int, mixed> $collections[, null|array<string|int, mixed> $options = null ]) : QueryBuilder
Parameters
-
$collections
: array<string|int, mixed>
-
-
$options
: null|array<string|int, mixed>
= null
-
revertTransaction()
private
revertTransaction() : void
select()
private
select(QueryObject $queryObject) : null|array<string|int, mixed>|object
Parameters
-
$queryObject
: QueryObject
-
Return values
null|array<string|int, mixed>|object
startTransaction()
private
startTransaction() : void
update()
private
update(QueryObject $queryObject) : int
Parameters
-
$queryObject
: QueryObject
-