PHP Class CI_DB_pdo_sqlsrv_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.
Author: EllisLab Dev Team
Inheritance: extends CI_DB_pdo_driver
Mostrar archivo Open project: tastyigniter/tastyigniter

Public Properties

Property Type Description
$subdriver string Sub-driver

Protected Properties

Property Type Description
$_quoted_identifier boolean Whether to use SQL-92 standard quoted identifier (double quotes) or brackets for identifier escaping.
$_random_keyword array ORDER BY random keyword

Public Methods

Method Description
__construct ( array $params ) : void Class constructor
db_connect ( boolean $persistent = FALSE ) : object Database connection
field_data ( string $table ) : array Returns an object with field data

Protected Methods

Method Description
_delete ( string $table ) : string Delete statement
_insert_batch ( string $table, array $keys, array $values ) : string | boolean 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
_update ( string $table, array $values ) : string Update statement

Method Details

__construct() public method

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

_delete() protected method

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

_insert_batch() protected method

Generates a platform-specific insert string from the supplied data.
protected _insert_batch ( string $table, array $keys, array $values ) : string | boolean
$table string Table name
$keys array INSERT keys
$values array INSERT values
return string | boolean

_limit() protected method

Generates a platform-specific LIMIT clause
protected _limit ( string $sql ) : string
$sql string SQL Query
return string

_list_columns() protected method

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

_list_tables() protected method

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
return string

_update() protected method

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

db_connect() public method

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

field_data() public method

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

Property Details

$_quoted_identifier protected_oe property

Whether to use SQL-92 standard quoted identifier (double quotes) or brackets for identifier escaping.
protected bool $_quoted_identifier
return boolean

$_random_keyword protected_oe property

ORDER BY random keyword
protected array $_random_keyword
return array

$subdriver public_oe property

Sub-driver
public string $subdriver
return string