Property | Type | Description | |
---|---|---|---|
$dbdriver | string | Database driver | |
$schema | string | Database schema |
Property | Type | Description | |
---|---|---|---|
$_escape_char | string | Must be empty for ODBC. | |
$_like_escape_str | string | ESCAPE statement string | |
$_random_keyword | array | ORDER BY random keyword |
Method | Description | |
---|---|---|
__construct ( array $params ) : void | Class constructor | |
affected_rows ( ) : integer | Affected Rows | |
db_connect ( boolean $persistent = FALSE ) : resource | Non-persistent database connection | |
error ( ) : array | Error | |
insert_id ( ) : boolean | Insert ID | |
is_write_type ( $sql ) : boolean | Determines if a query is a "write" type. |
Method | Description | |
---|---|---|
_close ( ) : void | Close DB Connection | |
_delete ( string $table ) : string | Delete statement | |
_escape_str ( $str ) : string | Platform-dependant string escape | |
_execute ( string $sql ) : resource | Execute the query | |
_field_data ( string $table ) : string | Field data query | |
_list_columns ( string $table = '' ) : string | Show column query | |
_list_tables ( boolean $prefix_limit = FALSE ) : string | Show table query | |
_trans_begin ( ) : boolean | Begin Transaction | |
_trans_commit ( ) : boolean | Commit Transaction | |
_trans_rollback ( ) : boolean | Rollback Transaction | |
_truncate ( string $table ) : string | Truncate statement | |
_update ( string $table, array $values ) : string | Update statement |
public __construct ( array $params ) : void | ||
$params | array | |
return | void |
protected _escape_str ( $str ) : string | ||
return | string |
protected _field_data ( string $table ) : string | ||
$table | 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 _trans_begin ( ) : boolean | ||
return | boolean |
protected _trans_commit ( ) : boolean | ||
return | boolean |
protected _trans_rollback ( ) : boolean | ||
return | boolean |
public db_connect ( boolean $persistent = FALSE ) : resource | ||
$persistent | boolean | |
return | resource |
public is_write_type ( $sql ) : boolean | ||
return | boolean |
protected string $_escape_char | ||
return | string |
protected string $_like_escape_str | ||
return | string |
protected array $_random_keyword | ||
return | array |