cache()
connect()
datatype()
disconnect()
error_info()
escape()
list_columns()
list_indexes()
list_tables()
query()
set_charset()
__construct()
_select_db()
driver_commit()
driver_rollback()
driver_start_transaction()
release_savepoint()
rollback_savepoint()
set_savepoint()
$_db_type
$_connection
$_connection_id
$_current_databases
$_identifier
$_set_names
cache(array $result, string $sql, mixed $as_object) : \Fuel\Core\Database_Cached
$db->cache($result, $sql);
array
string
mixed
\Fuel\Core\Database_Cached
connect()
datatype(integer $type) : array
integer
array
disconnect()
\Exception |
when the mysql database is not disconnected properly |
---|
error_info()
escape(mixed $value) : string
mixed
value of string castable
string
escaped sql stringlist_columns(string $table, string $like) : array
string
table name
string
column name pattern
array
array of column structurelist_indexes($table, string $like)
string
\FuelException |
---|
list_tables(string $like) : array
string
pattern of table name
array
array of table namesquery(integer $type, string $sql, mixed $as_object) : mixed
integer
query type (\DB::SELECT, \DB::INSERT, etc.)
string
SQL string
mixed
used when query type is SELECT
\Database_Exception |
---|
mixed
when SELECT then return an iterator of results,set_charset($charset)
__construct(string $name, array $config)
string
array
_select_db(string $database) : void
string
Database
driver_commit()
driver_rollback()
driver_start_transaction()
release_savepoint(string $name) : boolean
string
name of the savepoint
boolean
true - savepoint was set successfully;
false - failed to set savepoint;rollback_savepoint(string $name) : boolean
string
name of the savepoint
boolean
true - savepoint was set successfully;
false - failed to set savepoint;set_savepoint(string $name) : boolean
string
name of the savepoint
boolean
true - savepoint was set successfully;
false - failed to set savepoint;$_db_type : string
$_connection : \MySQLi
$_connection_id : string
$_current_databases : array
$_identifier : string
$_set_names : bool