123) will bind the integer 123 to the key :key in the * SQL. This method has no return value. * * @param string $sql SQL query to execute * @param array $bindings list of values to bind to SQL snippet * * @return array Affected Rows */ public function Execute( $sql, $bindings = array() ); /** * Returns the latest insert ID if driver does support this * feature. * * @return integer */ public function GetInsertID(); /** * Returns the number of rows affected by the most recent query * if the currently selected driver driver supports this feature. * * @return integer */ public function Affected_Rows(); /** * Returns a cursor-like object from the database. * * @param string $sql SQL query to execute * @param array $bindings list of values to bind to SQL snippet * * @return mixed */ public function GetCursor( $sql, $bindings = array() ); /** * Toggles debug mode. In debug mode the driver will print all * SQL to the screen together with some information about the * results. * * This method is for more fine-grained control. Normally * you should use the facade to start the query debugger for * you. The facade will manage the object wirings necessary * to use the debugging functionality. * * Usage (through facade): * * * R::debug( TRUE ); * ...rest of program... * R::debug( FALSE ); * * * The example above illustrates how to use the RedBeanPHP * query debugger through the facade. * * @param boolean $trueFalse turn on/off * @param Logger $logger logger instance * * @return void */ public function setDebugMode( $tf, $customLogger ); /** * Starts a transaction. * * @return void */ public function CommitTrans(); /** * Commits a transaction. * * @return void */ public function StartTrans(); /** * Rolls back a transaction. * * @return void */ public function FailTrans(); /** * Resets the internal Query Counter. * * @return self */ public function resetCounter(); /** * Returns the number of SQL queries processed. * * @return integer */ public function getQueryCount(); /** * Sets initialization code for connection. * * @param callable $code code * * @return void */ public function setInitCode( $code ); /** * Returns the version string from the database server. * * @return string */ public function DatabaseServerVersion(); }