Documentation

MySQL extends DriverBase
in package

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

Constants

DEFAULT_OPTIONS

protected mixed DEFAULT_OPTIONS = ['return_single_record' => false]

Properties

$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

Methods

changeConnection()

public changeConnection(int|string $name) : void
Parameters
$name : int|string

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>

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>

formatRecords()

private formatRecords(array<string|int, mixed> $records, Format $format[, mixed $args = null ]) : mixed
Parameters
$records : array<string|int, mixed>
$format : Format
$args : mixed = null

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
Return values
QueryBuilder

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

        
On this page

Search results