AbstractDatabase
class AbstractDatabase (View source)
Class DatabaseDatabase
Methods
select()
select
create(bool $ifNotExists = false, string $charset = null)
createDatabase
drop(bool $ifExists = false)
dropDatabase
boolean
exists()
exists
rename(string $newName, boolean $returnNew = true)
renameDatabase
getTable(string $name, bool $new = false)
getTable
array
getTables(bool $refresh = false)
Method to get an array of all tables in the database.
stdClass[]
getTableDetails(boolean $refresh = false)
getTableDetails
mixed
getTableDetail(bool $table)
getTableDetail
boolean
tableExists(string $table)
tableExists
string
getName()
Method to get property Table
setName(string $name)
Method to set property table
getDriver()
Method to get property Db
reset()
resetCache
Details
at line line 47
__construct(string $name, AbstractDatabaseDriver $db)
Constructor.
at line line 59
abstract AbstractDatabase
select()
select
at line line 69
abstract AbstractDatabase
create(bool $ifNotExists = false, string $charset = null)
createDatabase
at line line 78
abstract AbstractDatabase
drop(bool $ifExists = false)
dropDatabase
at line line 85
boolean
exists()
exists
at line line 100
abstract AbstractDatabase
rename(string $newName, boolean $returnNew = true)
renameDatabase
at line line 110
AbstractTable
getTable(string $name, bool $new = false)
getTable
at line line 128
array
getTables(bool $refresh = false)
Method to get an array of all tables in the database.
at line line 163
mixed
getTableDetail(bool $table)
getTableDetail
at line line 184
boolean
tableExists(string $table)
tableExists
at line line 194
string
getName()
Method to get property Table
at line line 206
AbstractDatabase
setName(string $name)
Method to set property table
at line line 218
AbstractDatabaseDriver
getDriver()
Method to get property Db
at line line 230
AbstractDatabase
setDriver(AbstractDatabaseDriver $db)
Method to set property db
at line line 242
AbstractDatabase
reset()
resetCache