Property | Type | Description | |
---|---|---|---|
$compress | boolean | Compression flag | |
$dbdriver | string | Database driver | |
$delete_hack | boolean | Whether to use the MySQL "delete hack" which allows the number of affected rows to be shown. Uses a preg_replace when enabled, adding a bit more processing to all queries. | |
$stricton | boolean | Whether we're running in strict SQL mode. |
Property | Type | Description | |
---|---|---|---|
$_escape_char | string | Identifier escape character | |
$_mysqli | MySQLi | Has to be preserved without being assigned to $conn_id. |
Method | Description | |
---|---|---|
affected_rows ( ) : integer | Affected Rows | |
db_connect ( boolean $persistent = FALSE ) : object | Database connection | |
db_select ( string $database = '' ) : boolean | Select the database | |
error ( ) : array | Error | |
field_data ( string $table ) : array | Returns an object with field data | |
insert_id ( ) : integer | Insert ID | |
reconnect ( ) : void | Reconnect | |
version ( ) : string | Database version number |
Method | Description | |
---|---|---|
_close ( ) : void | Close DB Connection | |
_db_set_charset ( string $charset ) : boolean | Set client character set | |
_escape_str ( $str ) : string | Platform-dependant string escape | |
_execute ( string $sql ) : mixed | Execute the query | |
_from_tables ( ) : string | FROM tables | |
_list_columns ( string $table = '' ) : string | Show column query | |
_list_tables ( boolean $prefix_limit = FALSE ) : string | List table query | |
_prep_query ( string $sql ) : string | Prep the query | |
_trans_begin ( ) : boolean | Begin Transaction | |
_trans_commit ( ) : boolean | Commit Transaction | |
_trans_rollback ( ) : boolean | Rollback Transaction |
protected _db_set_charset ( string $charset ) : boolean | ||
$charset | string | |
return | boolean |
protected _escape_str ( $str ) : string | ||
return | string |
protected _from_tables ( ) : string | ||
return | string |
protected _list_columns ( string $table = '' ) : string | ||
$table | string | |
return | string |
protected _list_tables ( boolean $prefix_limit = FALSE ) : string | ||
$prefix_limit | boolean | |
return | string |
protected _prep_query ( string $sql ) : string | ||
$sql | string | an SQL query |
return | string |
protected _trans_begin ( ) : boolean | ||
return | boolean |
protected _trans_commit ( ) : boolean | ||
return | boolean |
protected _trans_rollback ( ) : boolean | ||
return | boolean |
public db_connect ( boolean $persistent = FALSE ) : object | ||
$persistent | boolean | |
return | object |
public field_data ( string $table ) : array | ||
$table | string | |
return | array |
protected string $_escape_char | ||
return | string |
protected MySQLi $_mysqli | ||
return | MySQLi |
public bool $delete_hack | ||
return | boolean |
public bool $stricton | ||
return | boolean |