PHP Class CI_DB_sqlite3_driver, TastyIgniter

Note: _DB is an extender class that the app controller creates dynamically based on whether the query builder class is being used or not.
Author: Andrey Andreev
Inheritance: extends CI_DB
Afficher le fichier Open project: tastyigniter/tastyigniter

Méthodes publiques

Свойство Type Description
$dbdriver string Database driver

Protected Properties

Свойство Type Description
$_random_keyword array ORDER BY random keyword

Méthodes publiques

Méthode Description
affected_rows ( ) : integer Affected Rows
db_connect ( boolean $persistent = FALSE ) : SQLite3 Non-persistent database connection
error ( ) : array Error
field_data ( string $table ) : array Returns an object with field data
insert_id ( ) : integer Insert ID
list_fields ( string $table ) : array Fetch Field Names
version ( ) : string Database version number

Méthodes protégées

Méthode Description
_close ( ) : void Close DB Connection
_escape_str ( $str ) : string Platform-dependant string escape
_execute ( string $sql ) : mixed Execute the query
_list_tables ( boolean $prefix_limit = FALSE ) : string Show table query
_replace ( string $table, array $keys, array $values ) : string Replace statement
_trans_begin ( ) : boolean Begin Transaction
_trans_commit ( ) : boolean Commit Transaction
_trans_rollback ( ) : boolean Rollback Transaction
_truncate ( string $table ) : string Truncate statement

Method Details

_close() protected méthode

Close DB Connection
protected _close ( ) : void
Résultat void

_escape_str() protected méthode

Platform-dependant string escape
protected _escape_str ( $str ) : string
Résultat string

_execute() protected méthode

Execute the query
protected _execute ( string $sql ) : mixed
$sql string
Résultat mixed SQLite3Result object or bool

_list_tables() protected méthode

Generates a platform-specific query string so that the table names can be fetched
protected _list_tables ( boolean $prefix_limit = FALSE ) : string
$prefix_limit boolean
Résultat string

_replace() protected méthode

Generates a platform-specific replace string from the supplied data
protected _replace ( string $table, array $keys, array $values ) : string
$table string Table name
$keys array INSERT keys
$values array INSERT values
Résultat string

_trans_begin() protected méthode

Begin Transaction
protected _trans_begin ( ) : boolean
Résultat boolean

_trans_commit() protected méthode

Commit Transaction
protected _trans_commit ( ) : boolean
Résultat boolean

_trans_rollback() protected méthode

Rollback Transaction
protected _trans_rollback ( ) : boolean
Résultat boolean

_truncate() protected méthode

Generates a platform-specific truncate string from the supplied data If the database does not support the TRUNCATE statement, then this method maps to 'DELETE FROM table'
protected _truncate ( string $table ) : string
$table string
Résultat string

affected_rows() public méthode

Affected Rows
public affected_rows ( ) : integer
Résultat integer

db_connect() public méthode

Non-persistent database connection
public db_connect ( boolean $persistent = FALSE ) : SQLite3
$persistent boolean
Résultat SQLite3

error() public méthode

Returns an array containing code and message of the last database error that has occured.
public error ( ) : array
Résultat array

field_data() public méthode

Returns an object with field data
public field_data ( string $table ) : array
$table string
Résultat array

insert_id() public méthode

Insert ID
public insert_id ( ) : integer
Résultat integer

list_fields() public méthode

Fetch Field Names
public list_fields ( string $table ) : array
$table string Table name
Résultat array

version() public méthode

Database version number
public version ( ) : string
Résultat string

Property Details

$_random_keyword protected_oe property

ORDER BY random keyword
protected array $_random_keyword
Résultat array

$dbdriver public_oe property

Database driver
public string $dbdriver
Résultat string