MysqlDatabaseDriver
final class MysqlDatabaseDriver implements DatabaseDriverInterface (View source)
Traits
Methods
escape(mixed $value)
string
escape_like_str(string $value)
string
escape_str(string $value, bool $like = false)
string
void
trans_strict(bool $mode = true)
void
trans_start(bool $testMode = false)
bool
bool
bool
bool
trans_begin(bool $testMode = false)
bool
bool
bool
void
void
void
void
__construct(MysqlConnectionInterface $connection, DatabaseConfig $config, IdentifierEscaperInterface $identifierEscaper, IdentifierProtector $identifierProtector)
bool
void
close()
void
platform()
string
version()
string
db_select(string $database = '')
bool
db_set_charset(string $charset)
bool
query(string $sql, array|false $binds = false)
simple_query(string $sql)
bool
int
int|string|null
error()
array
escape_identifiers(string $item)
string
protect_identifiers(string $item, bool $prefixSingle = false, bool|null $protectIdentifiers = null, bool $fieldExists = true)
string
primary(string $table)
string|false
count_all(string $table = '')
int
list_tables(bool $constrainByPrefix = false)
array
table_exists(string $tableName)
bool
list_fields(string $table)
array
field_exists(string $fieldName, string $tableName)
bool
field_data(string $table)
array
Details
escape
string
escape(mixed $value)
No description
escape_like_str
string
escape_like_str(string $value)
No description
escape_str
string
escape_str(string $value, bool $like = false)
No description
trans_off
void
trans_off()
No description
trans_strict
void
trans_strict(bool $mode = true)
No description
trans_start
bool
trans_start(bool $testMode = false)
No description
trans_complete
bool
trans_complete()
No description
trans_status
bool
trans_status()
No description
trans_active
bool
trans_active()
No description
trans_begin
bool
trans_begin(bool $testMode = false)
No description
trans_commit
bool
trans_commit()
No description
trans_rollback
bool
trans_rollback()
No description
markTransactionFailure
protected void
markTransactionFailure()
No description
beginTransaction
protected void
beginTransaction()
No description
commitTransaction
protected void
commitTransaction()
No description
rollbackTransaction
protected void
rollbackTransaction()
No description
__construct
__construct(MysqlConnectionInterface $connection, DatabaseConfig $config, IdentifierEscaperInterface $identifierEscaper, IdentifierProtector $identifierProtector)
No description
initialize
bool
initialize()
No description
reconnect
void
reconnect()
No description
close
void
close()
No description
platform
string
platform()
No description
version
string
version()
No description
db_select
bool
db_select(string $database = '')
No description
db_set_charset
bool
db_set_charset(string $charset)
No description
simple_query
bool
simple_query(string $sql)
No description
affected_rows
int
affected_rows()
No description
insert_id
int|string|null
insert_id()
No description
error
array
error()
No description
escape_identifiers
string
escape_identifiers(string $item)
No description
protect_identifiers
string
protect_identifiers(string $item, bool $prefixSingle = false, bool|null $protectIdentifiers = null, bool $fieldExists = true)
No description
primary
string|false
primary(string $table)
No description
count_all
int
count_all(string $table = '')
No description
list_tables
array
list_tables(bool $constrainByPrefix = false)
No description
table_exists
bool
table_exists(string $tableName)
No description
list_fields
array
list_fields(string $table)
No description
field_exists
bool
field_exists(string $fieldName, string $tableName)
No description
field_data
array
field_data(string $table)
No description