Bugzilla::DB::Mysql - Bugzilla database compatibility layer for MySQL
This module overrides methods of the Bugzilla::DB module with MySQL specific implementation. It is instantiated by the Bugzilla::DB module and should never be used directly.
For interface details see Bugzilla::DB and DBI.
This method is called by Moo when creating a new object.
It turns the flat named arguments from new()
and puts them into the dsn
,
user
,
pass
,
and attr
attributes.
This method is called by DBI when a connection is established. It sets various connection-specific attributes which are nessessary for the database to function correctly. Because the database can be reconnected to any required session variables must be set here.
Undocumented methods: utf8_charset, utf8_collate, default_row_format'
Returns the name of the charset to use for utf8 columns.
This comes from the Bugzilla->params->{utf8}
parameter.
It can be either true,
false,
or utf8mb4
Returns the name of the collation to use for utf8 columns.
When utf8_charset
is utf8mb4
this is utf8mb4_unicode_520_ci
.
Otherwise it is utf8_general_ci
.
Returns the default row format to use for tables.
When utf8_charset
is utf8mb4
this is DYNAMIC
for most tables,
and COMPRESSED
for several table that benefit from compression.
When utf8_charset
is utf8
this is COMPACT
for all tables.
Returns the SQL date format string for the current database.
Returns the EXPLAIN output for the given SQL statement.
Returns the last auto-increment key generated by the database.
Returns the SQL position function for the current database.
Returns the SQL fulltext search function for the current database.
Returns the SQL position function for the current database, but case-insensitive.
Returns the initial values for an ENUM column.
Returns the SQL GROUP BY clause for the current database.
Returns the SQL LIMIT clause for the current database.
Returns the SQL NOT REGEXP operator for the current database.
Returns the SQL string concatenation operator for the current database.
Returns the SQL date math operator for the current database.
Returns the SQL to_days function for the current database.
Returns true if the database server version is at least the given
Returns the SQL from_days function for the current database.
Returns the SQL REGEXP operator for the current database.
Returns the SQL string case-insensitive operator for the current database.
Returns the SQL GROUP_CONCAT function for the current database.
Sets up the database for use with Bugzilla.
Returns true if the database is using UTF-8.