MYSQL
MYSQL = 'MYSQL'
Constants for database types
Data parser class
$db : \Pop\Db\Adapter\AbstractAdapter
Database object
__construct(\Pop\Db\Adapter\AbstractAdapter $db, string $table = 'pop_db_data', integer $divide = 1)
Constructor
Instantiate the SQL object
\Pop\Db\Adapter\AbstractAdapter | $db | |
string | $table | |
integer | $divide |
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 |
setDivide(integer $divide) : \Pop\Db\Sql\Data
Set the INSERT divide
integer | $divide |
setTable(string $table) : \Pop\Db\Sql\Data
Set the database table
string | $table |
onConflict(array $columns, string $key = null) : \Pop\Db\Sql\Data
Set what to do on a insert conflict (UPSERT - PostgreSQL & SQLite)
array | $columns | |
string | $key |
onDuplicateKeyUpdate(array $columns) : \Pop\Db\Sql\Data
Set columns to handle duplicates/conflicts (UPSERT - MySQL-ism)
array | $columns |