프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$dbdriver | string | Database driver | |
$schema | string | Database schema |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_random_keyword | array | ORDER BY random keyword |
메소드 | 설명 | |
---|---|---|
__construct ( array $params ) : void | Class constructor | |
affected_rows ( ) : integer | Affected Rows | |
db_connect ( boolean $persistent = FALSE ) : resource | Database connection | |
error ( ) : array | Error | |
escape ( string $str ) : mixed | "Smart" Escape String | |
field_data ( string $table ) : array | Returns an object with field data | |
insert_id ( ) : string | Insert ID | |
is_write_type ( $sql ) : boolean | Determines if a query is a "write" type. | |
order_by ( string $orderby, string $direction = '', boolean $escape = NULL ) : object | ORDER BY | |
reconnect ( ) : void | Reconnect | |
version ( ) : string | Database version number |
메소드 | 설명 | |
---|---|---|
_close ( ) : void | Close DB Connection | |
_db_set_charset ( string $charset ) : boolean | Set client character set | |
_delete ( string $table ) : string | Delete statement | |
_escape_str ( $str ) : string | Platform-dependant string escape | |
_execute ( string $sql ) : resource | Execute the query | |
_limit ( string $sql ) : string | LIMIT | |
_list_columns ( string $table = '' ) : string | List 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 | |
_update ( string $table, array $values ) : string | Update statement | |
_update_batch ( string $table, array $values, string $index ) : string | Update_Batch statement |
public __construct ( array $params ) : void | ||
$params | array | |
리턴 | void |
protected _db_set_charset ( string $charset ) : boolean | ||
$charset | string | |
리턴 | boolean |
protected _escape_str ( $str ) : string | ||
리턴 | string |
protected _list_columns ( string $table = '' ) : string | ||
$table | string | |
리턴 | string |
protected _list_tables ( boolean $prefix_limit = FALSE ) : string | ||
$prefix_limit | boolean | |
리턴 | string |
public db_connect ( boolean $persistent = FALSE ) : resource | ||
$persistent | boolean | |
리턴 | resource |
public field_data ( string $table ) : array | ||
$table | string | |
리턴 | array |
public is_write_type ( $sql ) : boolean | ||
리턴 | boolean |