Solar_Sql_Adapter_MysqlReplicated::_prepare()
    protected
    PDOStatement
     Solar_Sql_Adapter_MysqlReplicated::_prepare 
         ( string  $stmt
    
 )
Prepares an SQL query as a PDOStatement object, using the slave PDO connection for all SELECT queries outside a transation, and the master PDO connection for all other queries (incl.
Parameters
- (string) - $stmt: The text of the SQL statement, optionally with named placeholders.
Returns
- (PDOStatement) 
Description
Prepares an SQL query as a PDOStatement object, using the slave PDO connection for all SELECT queries outside a transation, and the master PDO connection for all other queries (incl.
in-transaction SELECTs). Note also that a GET-after-POST request will force all reads and writes to use the master.