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 |
streamToFile(array $data, string $to, mixed $omit = null, boolean $nullEmpty = false, array $updateColumns = array(), string $header = null, string $footer = null) : void
Serialize the data into INSERT statements
array | $data | |
string | $to | |
mixed | $omit | |
boolean | $nullEmpty | |
array | $updateColumns | |
string | $header | |
string | $footer |
Loading…