| package |
jelix |
|---|---|
| subpackage |
db_driver |
_createTable(string $name, array $columns, string|array $primaryKey, array $attributes = array()) : \jDbTable
stringthe table name
arraylist of jDbColumn
string|arraythe name of the column which contains the primary key
array
\jDbTablethe object corresponding to the created table
_createTableQuery( $name, $columns, $primaryKey, $attributes = array())
_dropTable( $name)
_getTableInstance( $name)
_getTables()
_prepareSqlColumn(\jDbColumn $col, $isPrimaryKey = false, $isSinglePrimaryKey = false) : string
private method, should be used only by a jDbTable object
| access |
private |
|---|
stringthe sql string
_renameTable( $oldName, $newName)
createTable(string $name, array<mixed,\jDbColumn> $columns, string|array<mixed,string> $primaryKey, array $attributes = array()) : \jDbTable
stringthe unprefixed table name
string|array<mixed,string>the name of the column which contains the primary key
arraysome table attributes specific to the database
\jDbTablethe object corresponding to the created table
dropTable(string|\jDbTable $table)
getTable(string $name) : \jDbTable
getTables() : array
arrayof jDbTable
normalizeColumn(\jDbColumn $col)
renameTable(string $oldName, string $newName) : \jDbTable|null
stringUnprefixed name of the table to rename
stringThe new unprefixed name of the table
\jDbTable|null
supportAutoIncrement :
tables : null|array<mixed,\jDbTable>