PHP Class 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.
Author: EllisLab Dev Team
Inheritance: extends CI_DB_pdo_driver
Afficher le fichier Open project: tastyigniter/tastyigniter

Méthodes publiques

Свойство Type Description
$compress boolean Compression flag
$stricton boolean Whether we're running in strict SQL mode.
$subdriver string Sub-driver

Protected Properties

Свойство Type Description
$_escape_char string Identifier escape character

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
_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

Method Details

__construct() public méthode

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

_from_tables() protected méthode

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

_list_columns() protected méthode

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

_list_tables() protected méthode

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
Résultat string

_truncate() protected méthode

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
Résultat string

db_connect() public méthode

Database connection
public db_connect ( boolean $persistent = FALSE ) : object
$persistent boolean
Résultat object

db_select() public méthode

Select the database
public db_select ( string $database = '' ) : boolean
$database string
Résultat boolean

field_data() public méthode

Returns an object with field data
public field_data ( string $table ) : array
$table string
Résultat array

Property Details

$_escape_char protected_oe property

Identifier escape character
protected string $_escape_char
Résultat string

$compress public_oe property

Compression flag
public bool $compress
Résultat boolean

$stricton public_oe property

Whether we're running in strict SQL mode.
public bool $stricton
Résultat boolean

$subdriver public_oe property

Sub-driver
public string $subdriver
Résultat string