|
Previous Page |
Solar_Sql_Adapter_Mysql |
Next Page |
Properties
Public
None.
Protected
$_Solar_Sql_Adapter
(array) User-provided configuration.
Inherited from Solar_Sql_Adapter.
Keys are ...
host- (string) Host specification (typically 'localhost').
port- (string) Port number for the host name.
user- (string) Connect to the database as this username.
pass- (string) Password associated with the username.
name- (string) Database name (or file path, or TNS name).
profiling- (bool) Turn on query profiling?
$_cache
(Solar_Cache_Adapter) A cache object for keeping query results.
Inherited from Solar_Sql_Adapter.
$_cache_key_prefix
(string) Prefix all cache keys with this string.
Inherited from Solar_Sql_Adapter.
$_config
(array) Collection point for configuration values.
Inherited from Solar_Base.
Note that you do not define config defaults in $_config directly.
<?php
// DO NOT DO THIS
protected $_config = array(
'foo' => 'bar',
'baz' => 'dib',
);
?>
Instead, define config defaults in a protected property named for the class, withan underscore prefix.
For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.
<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
'foo' => 'bar',
'baz' => 'dib',
);
?>
$_maxlen
(array) Max identifier lengths for table, column, and index names used when creating portable tables.
Inherited from Solar_Sql_Adapter.
We use 30 characters to comply with Oracle maximums.
$_native_solar
(array) Map of native RDBMS types to Solar generic types used when reading table column information.
Inherited from Solar_Sql_Adapter.
Note that fetchTableCols() will programmatically convert TINYINT(1) to 'bool' independent of this map.
$_pdo
(object) A PDO object for accessing the RDBMS.
Inherited from Solar_Sql_Adapter.
$_pdo_type
(string) The PDO adapter type.
Inherited from Solar_Sql_Adapter.
$_profile
(array) A quick-and-dirty query profile array.
Inherited from Solar_Sql_Adapter.
Each element is an array, where the first value is the query execution time in microseconds, and the second value is the query string.
Only populated when the profiling config key is true.
$_profiling
(bool) Whether or not profiling is turned on.
Inherited from Solar_Sql_Adapter.
$_solar_native
(array) Map of Solar generic types to RDBMS native types used when creating portable tables.
Inherited from Solar_Sql_Adapter.
Private
None.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- _checkIdentifier()
- _createSequence()
- _dropIndex()
- _dropSequence()
- _dsn()
- _exception()
- _fetchTableCols()
- _fetchTableList()
- _getCacheKey()
- _getDefault()
- _getTypeSizeScope()
- _modAutoincPrimary()
- _modIndexName()
- _modSelect()
- _modSequenceName()
- _nextSequence()
- _postConnect()
- _select()
- _sqlColdef()
- _sqlCreateTable()
- _sqlSelect()
- addColumn()
- apiVersion()
- begin()
- commit()
- connect()
- createIndex()
- createSequence()
- createTable()
- delete()
- disconnect()
- dropColumn()
- dropIndex()
- dropSequence()
- dropTable()
- dump()
- fetchAll()
- fetchAssoc()
- fetchCol()
- fetchOne()
- fetchPairs()
- fetchPdo()
- fetchSql()
- fetchTableCols()
- fetchTableList()
- fetchValue()
- getPdo()
- getProfile()
- insert()
- lastInsertId()
- locale()
- nextSequence()
- query()
- quote()
- quoteInto()
- quoteMulti()
- rollback()
- setProfiling()
- update()