PHP Class CI_DB_pdo_sqlite_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
ファイルを表示 Open project: tastyigniter/tastyigniter

Public Properties

Property Type Description
$subdriver string Sub-driver

Protected Properties

Property Type Description
$_random_keyword array ORDER BY random keyword

Public Methods

Method Description
__construct ( array $params ) : void Class constructor
field_data ( string $table ) : array Returns an object with field data
list_fields ( string $table ) : array Fetch Field Names

Protected Methods

Method Description
_list_tables ( boolean $prefix_limit = FALSE ) : string Show table query
_replace ( string $table, array $keys, array $values ) : string Replace statement
_truncate ( string $table ) : string Truncate statement

Method Details

__construct() public method

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

_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

_replace() protected method

Replace statement
protected _replace ( string $table, array $keys, array $values ) : string
$table string Table name
$keys array INSERT keys
$values array INSERT values
return string

_truncate() protected method

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

field_data() public method

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

list_fields() public method

Fetch Field Names
public list_fields ( string $table ) : array
$table string Table name
return array

Property Details

$_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