\Query\DriversSQLInterface

parent for database manipulation subclasses

Summary

Methods
Constants
limit()
explain()
random()
dbList()
tableList()
systemTableList()
viewList()
triggerList()
functionList()
procedureList()
sequenceList()
typeList()
columnList()
fkList()
indexList()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

limit()

limit(string  $sql, integer  $limit, integer|boolean  $offset = FALSE) : string

Get database specific sql for limit clause

Parameters

string $sql
integer $limit
integer|boolean $offset

Returns

string

explain()

explain(string  $sql) : string

Modify the query to get the query plan

Parameters

string $sql

Returns

string

random()

random() : string

Get the sql for random ordering

Returns

string

dbList()

dbList() : string

Returns sql to list other databases

Returns

string

tableList()

tableList() : string

Returns sql to list tables

Returns

string

systemTableList()

systemTableList() : string

Returns sql to list system tables

Returns

string

viewList()

viewList() : string

Returns sql to list views

Returns

string

triggerList()

triggerList() : string

Returns sql to list triggers

Returns

string

functionList()

functionList() : NULL

Return sql to list functions

Returns

NULL

procedureList()

procedureList() : string

Return sql to list stored procedures

Returns

string

sequenceList()

sequenceList() : string

Return sql to list sequences

Returns

string

typeList()

typeList() : string|array

Return sql to list database field types

Returns

string|array

columnList()

columnList(string  $table) : string

Get information about the columns in the specified table

Parameters

string $table

Returns

string

fkList()

fkList(string  $table) : array

Get the list of foreign keys for the current table

Parameters

string $table

Returns

array

indexList()

indexList(string  $table) : array

Get the list of indexes for the current table

Parameters

string $table

Returns

array