AbstractTable
class AbstractTable (View source)
Class DatabaseTable
Methods
drop
exists
rename
Locks a table in the database.
unlock
Method to truncate a table.
getDetail
Get table columns.
getColumnDetails
getColumnDetail
hasColumn
addColumn
dropColumn
modifyColumn
changeColumn
addIndex
dropIndex
getIndexes
hasIndex
Method to get property Table
Method to set property table
Method to get property Db
Method to get property Database
getTypeMapper
reset
Details
at line line 64
__construct(string $table, AbstractDatabaseDriver $db)
Constructor.
at line line 80
abstract AbstractTable
create(callable|Schema $callback, bool $ifNotExists = true, array $options = array())
create
at line line 89
AbstractTable
update(callable|Schema $schema)
update
at line line 115
$this
save(callable|Schema $schema, bool $ifNotExists = true, array $options = array())
save
at line line 142
AbstractTable
drop(bool $ifExists = true, string $option = '')
drop
at line line 158
boolean
exists()
exists
at line line 173
abstract $this
rename(string $newName, boolean $returnNew = true)
rename
at line line 183
AbstractTable
lock()
Locks a table in the database.
at line line 197
AbstractTable
unlock()
unlock
at line line 212
AbstractTable
truncate()
Method to truncate a table.
at line line 224
array|boolean
getDetail()
getDetail
at line line 236
array
getColumns(bool $refresh = false)
Get table columns.
at line line 248
abstract mixed
getColumnDetails(bool $refresh = false)
getColumnDetails
at line line 271
boolean
hasColumn(string $column)
hasColumn
at line line 289
abstract AbstractTable
addColumn(string $name, string $type = 'text', bool $signed = true, bool $allowNull = true, string $default = '', string $comment = '', array $options = array())
addColumn
at line line 298
AbstractTable
dropColumn(string $name)
dropColumn
at line line 327
abstract AbstractTable
modifyColumn(string|Column $name, string $type = 'text', bool $signed = true, bool $allowNull = true, string $default = '', string $comment = '', array $options = array())
modifyColumn
at line line 343
abstract AbstractTable
changeColumn(string $oldName, string|Column $newName, string $type = 'text', bool $signed = true, bool $allowNull = true, string $default = '', string $comment = '', array $options = array())
changeColumn
at line line 356
abstract AbstractTable
addIndex(string $type, array $columns = array(), string $name = null, string $comment = null, array $options = array())
addIndex
at line line 365
abstract AbstractTable
dropIndex(string $name)
dropIndex
at line line 372
abstract array
getIndexes()
getIndexes
at line line 381
boolean
hasIndex(string $name)
hasIndex
at line line 401
string
getName()
Method to get property Table
at line line 418
AbstractTable
setName(string $name)
Method to set property table
at line line 430
AbstractDatabaseDriver
getDriver()
Method to get property Db
at line line 442
AbstractTable
setDriver(AbstractDatabaseDriver $db)
Method to set property db
at line line 490
AbstractDatabase
getDatabase()
Method to get property Database
at line line 502
AbstractTable
setDatabase(AbstractDatabase $database)
Method to set property database
at line line 579
AbstractTable
reset()
reset