MYSQL
MYSQL = 'MYSQL'
Constants for database types
Sql schema table class
$db : \Pop\Db\Adapter\AbstractAdapter
Database object
__construct(\Pop\Db\Adapter\AbstractAdapter $db)
Constructor
Instantiate the SQL object
\Pop\Db\Adapter\AbstractAdapter | $db |
db() : \Pop\Db\Adapter\AbstractAdapter
Get the current database adapter object (alias method)
getDb() : \Pop\Db\Adapter\AbstractAdapter
Get the current database adapter object
setIdQuoteType(string $type = self::NO_QUOTE) : \Pop\Db\Sql\AbstractSql
Set the quote ID type
string | $type |
setPlaceholder(string $placeholder) : \Pop\Db\Sql\AbstractSql
Set the placeholder
string | $placeholder |
create(string $table) : \Pop\Db\Sql\Schema\Create
Access the CREATE table object
string | $table |
createIfNotExists(string $table) : \Pop\Db\Sql\Schema\Create
Access the CREATE table object, setting IF NOT EXISTS
string | $table |
drop(string $table) : \Pop\Db\Sql\Schema\Drop
Access the DROP table object
string | $table |
dropIfExists(string $table) : \Pop\Db\Sql\Schema\Drop
Access the DROP table object, setting IF EXISTS
string | $table |
alter(string $table) : \Pop\Db\Sql\Schema\Alter
Access the ALTER table object
string | $table |
rename(string $table) : \Pop\Db\Sql\Schema\Rename
Access the RENAME table object
string | $table |
truncate(string $table) : \Pop\Db\Sql\Schema\Truncate
Access the TRUNCATE table object
string | $table |
enableForeignKeyCheck() : \Pop\Db\Sql\Schema
Enable the foreign key check
disableForeignKeyCheck() : \Pop\Db\Sql\Schema
Disable the foreign key check
reset() : \Pop\Db\Sql\Schema
Reset and clear the schema object
getCreateTable(string $table) : \Pop\Db\Sql\Schema\Create
Get the CREATE table object
string | $table |
getDropTable(string $table) : \Pop\Db\Sql\Schema\Drop
Get the DROP table object
string | $table |
getAlterTable(string $table) : \Pop\Db\Sql\Schema\Alter
Get the ALTER table object
string | $table |
getRenameTable(string $table) : \Pop\Db\Sql\Schema\Rename
Get the RENAME table object
string | $table |
getTruncateTable(string $table) : \Pop\Db\Sql\Schema\Truncate
Get the TRUNCATE table object
string | $table |