Methods summary
public
|
|
public static
string
|
#
md5Impl( mixed $data )
Returns the md5 sum of the data that SQLite's md5() function receives.
Returns the md5 sum of the data that SQLite's md5() function receives.
Parameters
Returns
string
|
public static
string
|
#
modImpl( integer $dividend, integer $divisor )
Returns the modules of the data that SQLite's mod() function receives.
Returns the modules of the data that SQLite's mod() function receives.
Parameters
Returns
string
|
public static
string
|
#
locateImpl( string $substr, string $str )
locate
returns the position of the first occurrence of substring $substr in string $str that
SQLite's locate() function receives
locate
returns the position of the first occurrence of substring $substr in string $str that
SQLite's locate() function receives
Parameters
- $substr
- literal string to find
- $str
- literal string
Returns
string
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public
string
|
#
getRegexpExpression( )
returns the regular expression operator
returns the regular expression operator
Returns
string
Override
Overrides
|
public
string
|
#
getSoundexExpression( string $value )
Returns a string to call a function to compute the
soundex encoding of a string
Returns a string to call a function to compute the
soundex encoding of a string
The string "?000" is returned if the argument is NULL.
Parameters
Returns
string SQL soundex function with given parameter
|
public
string
|
#
getNowExpression( $type = 'timestamp' )
Return string to call a variable with the current timestamp inside an SQL statement
There are three special variables for current date and time.
Return string to call a variable with the current timestamp inside an SQL statement
There are three special variables for current date and time.
Returns
string sqlite function as string
Override
Overrides
|
public
string
|
#
getRandomExpression( )
return string to call a function to get random value inside an SQL statement
return string to call a function to get random value inside an SQL statement
Returns
string to generate float between 0 and 1
Override
|
public
string
|
#
getSubstringExpression( string $value, integer $position, integer $length = null )
return string to call a function to get a substring inside an SQL statement
return string to call a function to get a substring inside an SQL statement
Note: Not SQL92, but common functionality.
SQLite only supports the 2 parameter variant of this function
Parameters
- $value
- an sql string literal or column name/alias
- $position
- where to start the substring portion
- $length
- the substring portion length
Returns
string SQL substring function with given parameters
Override
Overrides
|
protected
|
#
_getTransactionIsolationLevelSql( integer $level )
Get sql for transaction isolation level Connection constant
Get sql for transaction isolation level Connection constant
Parameters
Overrides
|
public
|
#
getSetTransactionIsolationSql( integer $level )
Get sql to set the transaction isolation level
Get sql to set the transaction isolation level
Parameters
Overrides
|
public
boolean
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
protected
string
|
|
public
|
#
getCreateTableSql( string $name, array $fields, array $options = array() )
create a new table
Parameters
- $name
- Name of the database that should be created
- $fields
Associative array that contains the definition of each field of the new table
The indexes of the array entries are the names of the fields of the table an
the array entry values are associative arrays like those that are meant to be
passed with the field definitions to get[Type]Declaration() functions.
array(
'id' => array(
'type' => 'integer',
'unsigned' => 1
'notnull' => 1
'default' => 0
),
'name' => array(
'type' => 'text',
'length' => 12
),
'password' => array(
'type' => 'text',
'length' => 12
)
);
- $options
- An associative array of table options:
Override
Overrides
|
public
|
#
getVarcharTypeDeclarationSql( array $field )
Gets the SQL snippet used to declare a VARCHAR column type.
Gets the SQL snippet used to declare a VARCHAR column type.
Parameters
|
public
|
#
getClobTypeDeclarationSql( array $field )
Gets the SQL snippet used to declare a CLOB column type.
Gets the SQL snippet used to declare a CLOB column type.
Parameters
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
#
supportsForeignKeyConstraints( )
SQLite does support foreign key constraints, but only in CREATE TABLE statements...
This really limits their usefulness and requires SQLite specific handling, so
we simply say that SQLite does NOT support foreign keys for now...
SQLite does support foreign key constraints, but only in CREATE TABLE statements...
This really limits their usefulness and requires SQLite specific handling, so
we simply say that SQLite does NOT support foreign keys for now...
Returns
boolean FALSE
Override
Overrides
|
public
string
|
#
getName( )
Get the platform name for this instance
Get the platform name for this instance
Returns
string
|