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
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$schema string Database schema
$subdriver string Sub-driver

Защищенные свойства (Protected)

Свойство Тип Описание
$_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