PHP Класс CI_DB_oci8_driver, TastyIgniter

This is a modification of the DB_driver class to permit access to oracle databases
Автор: Kelly McArdle
Наследование: extends CI_DB
Показать файл Открыть проект

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

Свойство Тип Описание
$commit_mode integer Commit mode flag
$curs_id resource Cursor ID
$dbdriver string Database driver
$limit_used boolean If we use LIMIT, we'll add a field that will throw off num_fields later.
$stmt_id resource Statement ID

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

Свойство Тип Описание
$_count_string string COUNT string
$_random_keyword array ORDER BY random keyword
$_reserved_identifiers string[] Identifiers that must NOT be escaped.
$_reset_stmt_id Used by stored_procedure() to prevent _execute() from re-setting the statement ID.

Открытые методы

Метод Описание
__construct ( array $params ) : void Class constructor
affected_rows ( ) : integer Affected Rows
db_connect ( boolean $persistent = FALSE ) : resource Non-persistent database connection
error ( ) : array Error
field_data ( string $table ) : array Returns an object with field data
get_cursor ( ) : resource Get cursor. Returns a cursor from the database
insert_id ( ) : integer Insert ID
stored_procedure ( $package, $procedure, array $params ) : mixed Stored Procedure. Executes a stored procedure
version ( ) : string Database version number

Защищенные методы

Метод Описание
_bind_params ( array $params ) : void Bind parameters
_close ( ) : void Close DB Connection
_delete ( string $table ) : string Delete statement
_execute ( string $sql ) : resource Execute the query
_insert_batch ( string $table, array $keys, array $values ) : string Insert batch statement
_limit ( string $sql ) : string LIMIT
_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

Описание методов

__construct() публичный Метод

Class constructor
public __construct ( array $params ) : void
$params array
Результат void

_bind_params() защищенный Метод

Bind parameters
protected _bind_params ( array $params ) : void
$params array
Результат void

_close() защищенный Метод

Close DB Connection
protected _close ( ) : void
Результат void

_delete() защищенный Метод

Generates a platform-specific delete string from the supplied data
protected _delete ( string $table ) : string
$table string
Результат string

_execute() защищенный Метод

Execute the query
protected _execute ( string $sql ) : resource
$sql string an SQL query
Результат resource

_insert_batch() защищенный Метод

Generates a platform-specific insert string from the supplied data
protected _insert_batch ( string $table, array $keys, array $values ) : string
$table string Table name
$keys array INSERT keys
$values array INSERT values
Результат 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

_trans_begin() защищенный Метод

Begin Transaction
protected _trans_begin ( ) : boolean
Результат boolean

_trans_commit() защищенный Метод

Commit Transaction
protected _trans_commit ( ) : boolean
Результат boolean

_trans_rollback() защищенный Метод

Rollback Transaction
protected _trans_rollback ( ) : boolean
Результат boolean

_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

affected_rows() публичный Метод

Affected Rows
public affected_rows ( ) : integer
Результат integer

db_connect() публичный Метод

Non-persistent database connection
public db_connect ( boolean $persistent = FALSE ) : resource
$persistent boolean
Результат resource

error() публичный Метод

Returns an array containing code and message of the last database error that has occured.
public error ( ) : array
Результат array

field_data() публичный Метод

Returns an object with field data
public field_data ( string $table ) : array
$table string
Результат array

get_cursor() публичный Метод

Get cursor. Returns a cursor from the database
public get_cursor ( ) : resource
Результат resource

insert_id() публичный Метод

Insert ID
public insert_id ( ) : integer
Результат integer

stored_procedure() публичный Метод

Stored Procedure. Executes a stored procedure
public stored_procedure ( $package, $procedure, array $params ) : mixed
$params array
Результат mixed params array keys KEY OPTIONAL NOTES name no the name of the parameter should be in : format value no the value of the parameter. If this is an OUT or IN OUT parameter, this should be a reference to a variable type yes the type of the parameter length yes the max size of the parameter

version() публичный Метод

Database version number
public version ( ) : string
Результат string

Описание свойств

$_count_string защищенное свойство

COUNT string
protected string $_count_string
Результат string

$_random_keyword защищенное свойство

ORDER BY random keyword
protected array $_random_keyword
Результат array

$_reserved_identifiers защищенное свойство

Identifiers that must NOT be escaped.
protected string[] $_reserved_identifiers
Результат string[]

$_reset_stmt_id защищенное свойство

Used by stored_procedure() to prevent _execute() from re-setting the statement ID.
protected $_reset_stmt_id

$commit_mode публичное свойство

Commit mode flag
public int $commit_mode
Результат integer

$curs_id публичное свойство

Cursor ID
public resource $curs_id
Результат resource

$dbdriver публичное свойство

Database driver
public string $dbdriver
Результат string

$limit_used публичное свойство

If we use LIMIT, we'll add a field that will throw off num_fields later.
public bool $limit_used
Результат boolean

$stmt_id публичное свойство

Statement ID
public resource $stmt_id
Результат resource