class Connection extends Connection (View source)

Properties

protected EntityManager $entityManager
protected null|array $supportedCharsets The supported character sets and associated default collation.
protected null|array $supportedCollations The supported collations and the associated character sets.
private array $overriddenParams Overridden params.

Methods

EntityManager
getEntityManager() deprecated

No description

EntityManager
createEntityManager()

No description

bool
tableExists(mixed $tableName)

Returns true if a table exists – is NOT case sensitive.

Execute(mixed $q, mixed $arguments = []) deprecated

No description

query()

No description

createTextIndexes(array $textIndexes)

This is essentially a workaround for not being able to define indexes on TEXT fields with the current version of Doctrine DBAL.

GetRow(mixed $q, mixed $arguments = []) deprecated

No description

qstr(mixed $string) deprecated

No description

GetOne(mixed $q, mixed $arguments = []) deprecated

No description

ErrorMsg() deprecated

No description

GetAll(mixed $q, mixed $arguments = []) deprecated

No description

GetArray(mixed $q, mixed $arguments = []) deprecated

No description

GetAssoc(mixed $q, mixed $arguments = []) deprecated

No description

MetaColumnNames(mixed $table) deprecated

No description

replace(string $table, array $fieldArray, string|string[] $keyCol, bool $autoQuote = true)

Insert or update a row in a database table.

GetCol(mixed $q, mixed $arguments = []) deprecated

No description

Insert_ID() deprecated

No description

MetaTables() deprecated

No description

MetaColumns(mixed $table) deprecated

No description

BeginTrans() deprecated

No description

StartTrans() deprecated

No description

CommitTrans() deprecated

No description

CompleteTrans() deprecated

No description

RollbackTrans() deprecated

No description

FailTrans() deprecated

No description

array
getSupportedCharsets()

Get the supported character sets and associated default collation.

array
getSupportedCollations()

Get the supported collations and the associated character sets.

getParams()

{@inheritdoc}

bool
isCollationSupportedForKeys(string $collation, int $fieldLength)

Check if a collation can be used for keys of a specific length.

refreshCharactersetCollation(string $characterSet, string $collation)

No description

Details

EntityManager getEntityManager() deprecated

deprecated Please use the ORM facade instead of this method: - ORM::entityManager() in the application/site code and core - $pkg->getEntityManager() in packages

Return Value

EntityManager

EntityManager createEntityManager()

Return Value

EntityManager

Exceptions

ORMException

bool tableExists(mixed $tableName)

Returns true if a table exists – is NOT case sensitive.

Parameters

mixed $tableName

Return Value

bool

Execute(mixed $q, mixed $arguments = []) deprecated

deprecated

Parameters

mixed $q
mixed $arguments

query()

createTextIndexes(array $textIndexes)

This is essentially a workaround for not being able to define indexes on TEXT fields with the current version of Doctrine DBAL.

This feature will be removed when DBAL will support it, so don't use this feature.

Parameters

array $textIndexes

GetRow(mixed $q, mixed $arguments = []) deprecated

deprecated alias to old ADODB method

Parameters

mixed $q
mixed $arguments

qstr(mixed $string) deprecated

deprecated alias to old ADODB method

Parameters

mixed $string

GetOne(mixed $q, mixed $arguments = []) deprecated

deprecated alias to old ADODB method

Parameters

mixed $q
mixed $arguments

ErrorMsg() deprecated

deprecated alias to old ADODB method

GetAll(mixed $q, mixed $arguments = []) deprecated

deprecated alias to old ADODB method

Parameters

mixed $q
mixed $arguments

GetArray(mixed $q, mixed $arguments = []) deprecated

deprecated alias to old ADODB method

Parameters

mixed $q
mixed $arguments

GetAssoc(mixed $q, mixed $arguments = []) deprecated

deprecated alias to old ADODB method

Parameters

mixed $q
mixed $arguments

MetaColumnNames(mixed $table) deprecated

deprecated Returns an associative array of all columns in a table

Parameters

mixed $table

replace(string $table, array $fieldArray, string|string[] $keyCol, bool $autoQuote = true)

Insert or update a row in a database table.

Parameters

string $table the name of the database table
array $fieldArray array keys are the field names, array values are the field values
string|string[] $keyCol the names of the primary key fields
bool $autoQuote set to true to quote the field values

GetCol(mixed $q, mixed $arguments = []) deprecated

deprecated - alias to old ADODB method

Parameters

mixed $q
mixed $arguments

Insert_ID() deprecated

deprecated alias to old ADODB method

MetaTables() deprecated

deprecated

MetaColumns(mixed $table) deprecated

deprecated

Parameters

mixed $table

BeginTrans() deprecated

deprecated Alias to old ADODB method

StartTrans() deprecated

deprecated Alias to old ADODB method

CommitTrans() deprecated

deprecated Alias to old ADODB method

CompleteTrans() deprecated

deprecated Alias to old ADODB method

RollbackTrans() deprecated

deprecated Alias to old ADODB method

FailTrans() deprecated

deprecated Alias to old ADODB method

array getSupportedCharsets()

Get the supported character sets and associated default collation.

Return Value

array keys: character set (always lower case); array values: default collation for the character set (always lower case)

Exceptions

Exception throws an exception in case of errors

array getSupportedCollations()

Get the supported collations and the associated character sets.

Return Value

array keys: collation (always lower case); array values: associated character set (always lower case)

Exceptions

Exception throws an exception in case of errors

getParams()

{@inheritdoc}

See also

\Doctrine\DBAL\Connection::getParams()

bool isCollationSupportedForKeys(string $collation, int $fieldLength)

Check if a collation can be used for keys of a specific length.

Parameters

string $collation the name of a collation
int $fieldLength the length (in chars) of a field to be used as key/index

Return Value

bool

refreshCharactersetCollation(string $characterSet, string $collation)

Parameters

string $characterSet
string $collation