PHP 클래스 CI_DB_pdo_mysql_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.
저자: EllisLab Dev Team
상속: extends CI_DB_pdo_driver
파일 보기 프로젝트 열기: tastyigniter/tastyigniter

공개 프로퍼티들

프로퍼티 타입 설명
$compress boolean Compression flag
$stricton boolean Whether we're running in strict SQL mode.
$subdriver string Sub-driver

보호된 프로퍼티들

프로퍼티 타입 설명
$_escape_char string Identifier escape character

공개 메소드들

메소드 설명
__construct ( array $params ) : void Class constructor
db_connect ( boolean $persistent = FALSE ) : object Database connection
db_select ( string $database = '' ) : boolean Select the database
field_data ( string $table ) : array Returns an object with field data

보호된 메소드들

메소드 설명
_from_tables ( ) : string FROM tables
_list_columns ( string $table = '' ) : string Show column query
_list_tables ( boolean $prefix_limit = FALSE ) : string Show table query
_truncate ( string $table ) : string Truncate statement

메소드 상세

__construct() 공개 메소드

Builds the DSN if not already set.
public __construct ( array $params ) : void
$params array
리턴 void

_from_tables() 보호된 메소드

Groups tables in FROM clauses if needed, so there is no confusion about operator precedence.
protected _from_tables ( ) : string
리턴 string

_list_columns() 보호된 메소드

Generates a platform-specific query string so that the column names can be fetched
protected _list_columns ( string $table = '' ) : string
$table string
리턴 string

_list_tables() 보호된 메소드

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
리턴 string

_truncate() 보호된 메소드

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
리턴 string

db_connect() 공개 메소드

Database connection
public db_connect ( boolean $persistent = FALSE ) : object
$persistent boolean
리턴 object

db_select() 공개 메소드

Select the database
public db_select ( string $database = '' ) : boolean
$database string
리턴 boolean

field_data() 공개 메소드

Returns an object with field data
public field_data ( string $table ) : array
$table string
리턴 array

프로퍼티 상세

$_escape_char 보호되어 있는 프로퍼티

Identifier escape character
protected string $_escape_char
리턴 string

$compress 공개적으로 프로퍼티

Compression flag
public bool $compress
리턴 boolean

$stricton 공개적으로 프로퍼티

Whether we're running in strict SQL mode.
public bool $stricton
리턴 boolean

$subdriver 공개적으로 프로퍼티

Sub-driver
public string $subdriver
리턴 string