| // +----------------------------------------------------------------------+ // // $Id$ // /** * MDB2 SQLite driver for the native module * * @package MDB2 * @category Database * @author Lukas Smith */ class MDB2_Driver_Native_sqlite { var $db_index; // {{{ constructor /** * Constructor */ function __construct($db_index) { $this->db_index = $db_index; } function MDB2_Driver_Native_sqlite($db_index) { $this->__construct($db_index); } // }}} // {{{ getInsertID() /** * get last insert ID * * @return mixed MDB2 Error Object or id * @access public */ function getInsertID() { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; return @sqlite_last_insert_rowid($db->connection); } } ?>