PHP 클래스 CI_DB_pdo_pgsql_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

공개 프로퍼티들

프로퍼티 타입 설명
$schema string Database schema
$subdriver string Sub-driver

보호된 프로퍼티들

프로퍼티 타입 설명
$_random_keyword array ORDER BY random keyword

공개 메소드들

메소드 설명
__construct ( array $params ) : void Class constructor
db_connect ( boolean $persistent = FALSE ) : object Database connection
escape ( string $str ) : mixed "Smart" Escape String
field_data ( string $table ) : array Returns an object with field data
insert_id ( string $name = NULL ) : integer 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

보호된 메소드들

메소드 설명
_delete ( string $table ) : string Delete statement
_limit ( string $sql ) : string LIMIT
_list_columns ( string $table = '' ) : string List column query
_list_tables ( boolean $prefix_limit = FALSE ) : string Show table query
_update ( string $table, array $values ) : string Update statement
_update_batch ( string $table, array $values, string $index ) : string Update_Batch statement

메소드 상세

__construct() 공개 메소드

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

_delete() 보호된 메소드

Generates a platform-specific delete string from the supplied data
protected _delete ( string $table ) : string
$table string
리턴 string

_limit() 보호된 메소드

Generates a platform-specific LIMIT clause
protected _limit ( string $sql ) : string
$sql string SQL Query
리턴 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

_update() 보호된 메소드

Generates a platform-specific update string from the supplied data
protected _update ( string $table, array $values ) : string
$table string
$values array
리턴 string

_update_batch() 보호된 메소드

Generates a platform-specific batch update string from the supplied data
protected _update_batch ( string $table, array $values, string $index ) : string
$table string Table name
$values array Update data
$index string WHERE key
리턴 string

db_connect() 공개 메소드

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

escape() 공개 메소드

Escapes data based on type
public escape ( string $str ) : mixed
$str string
리턴 mixed

field_data() 공개 메소드

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

insert_id() 공개 메소드

Insert ID
public insert_id ( string $name = NULL ) : integer
$name string
리턴 integer

is_write_type() 공개 메소드

Determines if a query is a "write" type.
public is_write_type ( $sql ) : boolean
리턴 boolean

order_by() 공개 메소드

ORDER BY
public order_by ( string $orderby, string $direction = '', boolean $escape = NULL ) : object
$orderby string
$direction string ASC, DESC or RANDOM
$escape boolean
리턴 object

프로퍼티 상세

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

ORDER BY random keyword
protected array $_random_keyword
리턴 array

$schema 공개적으로 프로퍼티

Database schema
public string $schema
리턴 string

$subdriver 공개적으로 프로퍼티

Sub-driver
public string $subdriver
리턴 string