Properties
Properties existing in the Solar_Sql_Adapter_MysqlReplicated
class.
Public
None.
Protected
$_Solar_Sql_Adapter_MysqlReplicated
(array) Default configuration values.
$_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',
);
$_dsn
(string) A PDO-style DSN, for example, "mysql:host=127.0.0.1;dbname=test".
Inherited from Solar_Sql_Adapter.
$_dsn_master
(string) A PDO-style DSN for the master server.
The $_dsn
property is for the slave server.
$_ident_quote_prefix
(string) The quote character before an entity name (table, index, etc).
Inherited from Solar_Sql_Adapter_Mysql.
$_ident_quote_suffix
(string) The quote character after an entity name (table, index, etc).
Inherited from Solar_Sql_Adapter_Mysql.
$_in_transaction
(bool) Whether or not we're in a transaction.
When true, all SELECTs go to the master.
$_is_gap
(bool) Is the current request a GET-after-POST/PUT?
$_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_Mysql.
Note that fetchTableCols() will programmatically convert TINYINT(1) to 'bool' independent of this map.
$_pdo_master
(PDO) A PDO object for accessing the master server.
The $_pdo
property is for the slave server.
$_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.
$_slave_key
(mixed) Which slave key the $_dsn
property was built from.
$_slaves
(array) Array of slave connection parameters for DSNs.
$_solar_native
(array) Map of Solar generic types to RDBMS native types used when creating portable tables.
Inherited from Solar_Sql_Adapter_Mysql.
Private
None.