db\cubrid\ColumnSchemaBuilder buildCommentString()

buildCommentString() protected method Builds the comment specification for the column. protected string buildCommentString ( )return string A string containing the COMMENT keyword and the comment itself

db\cubrid\ColumnSchemaBuilder buildAfterString()

buildAfterString() protected method Builds the after constraint for the column. Defaults to unsupported. protected string buildAfterString ( )return string A string containing the AFTER constraint.

db\Connection __sleep()

__sleep() public method Close the connection before serializing. public array __sleep ( )

db\Connection useMaster()

useMaster() public method Executes the provided callback by using the master connection. This method is provided so that you can temporarily force using the master connection to perform DB operations even if they are read queries. For example, $result = $db->useMaster(function ($db) { return $db->createCommand('SELECT * FROM user LIMIT 1')->queryOne(); }); public mixed useMaster ( callable $callback )$callback callable A PHP callable to be executed by this method. Its signa

db\Connection transaction()

transaction() public method Executes callback provided in a transaction. public mixed transaction ( callable $callback, $isolationLevel = null )$callback callable A valid PHP callback that performs the job. Accepts connection instance as parameter. $isolationLevel string|null The isolation level to use for this transaction. See yii\db\Transaction::begin() for details. return mixed Result of callback function throws Exception

db\Connection setDriverName()

setDriverName() public method Changes the current driver name. public void setDriverName ( $driverName )$driverName string Name of the DB driver

db\Connection quoteValue()

quoteValue() public method Quotes a string value for use in a query. Note that if the parameter is not a string, it will be returned without change. See also http://www.php.net/manual/en/function.PDO-quote.php. public string quoteValue ( $value )$value string String to be quoted return string The properly quoted string

db\Connection quoteTableName()

quoteTableName() public method Quotes a table name for use in a query. If the table name contains schema prefix, the prefix will also be properly quoted. If the table name is already quoted or contains special characters including '(', '[[' and '{{', then this method will do nothing. public string quoteTableName ( $name )$name string Table name return string The properly quoted table name

db\Connection quoteSql()

quoteSql() public method Processes a SQL statement by quoting table and column names that are enclosed within double brackets. Tokens enclosed within double curly brackets are treated as table names, while tokens enclosed within double square brackets are column names. They will be quoted accordingly. Also, the percentage character "%" at the beginning or ending of a table name will be replaced with $tablePrefix. public string quoteSql ( $sql )$sql string The SQL to be quoted return str

db\Connection quoteColumnName()

quoteColumnName() public method Quotes a column name for use in a query. If the column name contains prefix, the prefix will also be properly quoted. If the column name is already quoted or contains special characters including '(', '[[' and '{{', then this method will do nothing. public string quoteColumnName ( $name )$name string Column name return string The properly quoted column name