db\cubrid\ColumnSchemaBuilder buildFirstString()

buildFirstString() protected method Builds the first constraint for the column. Defaults to unsupported. protected string buildFirstString ( )return string A string containing the FIRST constraint.

db\cubrid\ColumnSchemaBuilder buildUnsignedString()

buildUnsignedString() protected method Builds the unsigned string for column. Defaults to unsupported. protected string buildUnsignedString ( )return string A string containing UNSIGNED keyword.

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 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 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 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 setDriverName()

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

db\Connection open()

open() public method Establishes a DB connection. It does nothing if a DB connection has already been established. public void open ( )throws yii\db\Exception if connection fails