Свойство | Type | Description | |
---|---|---|---|
$_ident_quote_prefix | string | The quote character before an entity name (table, index, etc). | |
$_ident_quote_suffix | string | The quote character after an entity name (table, index, etc). | |
$_native_solar | array | Note that fetchTableCols() will programmatically convert TINYINT(1) to 'bool' independent of this map. | |
$_pdo_type | string | The PDO adapter type. | |
$_solar_native | array | Map of Solar generic types to RDBMS native types used when creating portable tables. |
Méthode | Description | |
---|---|---|
_buildDsn ( array $info ) : string | Creates a PDO-style DSN. | |
_createSequence ( string $name, integer $start = 1 ) : void | Creates a sequence, optionally starting at a certain number. | |
_dropIndex ( string $table, string $name ) : void | Drops an index. | |
_dropSequence ( string $name ) : void | Drops a sequence. | |
_fetchIndexInfo ( string $table, string $schema ) : array | Returns an array of index information for a table. | |
_fetchTableCols ( string $table, string $schema ) : array | Returns an array describing the columns in a table. | |
_fetchTableList ( string $schema ) : array | Returns a list of all tables in the database. | |
_getDefault ( string $default ) : scalar | Given a native column SQL default value, finds a PHP literal value. | |
_modAutoincPrimary ( &$coldef, boolean $autoinc, boolean $primary ) : void | Given a column definition, modifies the auto-increment and primary-key clauses in place. | |
_modSequenceName ( string $name ) : string | Modifies the sequence name. | |
_nextSequence ( string $name ) : integer | Gets a sequence number; creates the sequence if it does not exist. | |
_selectSingleFrom ( array $from ) : string | Builds the FROM clause for a SELECT command; wraps it in parentheses to force precedence for MySQL. | |
_sqlCreateTable ( string $name, string $cols ) : string | Builds a CREATE TABLE command string. |
protected _dropSequence ( string $name ) : void | ||
$name | string | The sequence name to drop. |
Résultat | void |
protected _fetchTableList ( string $schema ) : array | ||
$schema | string | Fetch tbe list of tables in this database; when empty, uses the current database. |
Résultat | array | All table names in the database. |
protected _getDefault ( string $default ) : scalar | ||
$default | string | The column default SQL value. |
Résultat | scalar | A literal PHP value. |
protected _modSequenceName ( string $name ) : string | ||
$name | string | The requested sequence name. |
Résultat | string | The modified sequence name. |
protected _nextSequence ( string $name ) : integer | ||
$name | string | The sequence name. |
Résultat | integer | The next sequence number. |
protected _selectSingleFrom ( array $from ) : string | ||
$from | array | The array of FROM clause elements. |
Résultat | string | The FROM clause. |
protected string $_ident_quote_prefix | ||
Résultat | string |
protected string $_ident_quote_suffix | ||
Résultat | string |
protected array $_native_solar | ||
Résultat | array |
protected array $_solar_native | ||
Résultat | array |