Query\AbstractUtil::create_table
Convenience public function to generate sql for creating a db table
Signature
public function create_table(string
$name,
array
$fields,
[array
$constraints = ,
[boolean
$if_not_exists = TRUE]] )
Parameters
$name
—
string
$fields
—
array
$constraints
—
array
$if_not_exists
—
boolean
Returns
- string
Test Coverage
Information
- Coverage: 15/15 Lines (100%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — MySQLTest::testCreateTable
- [ PASSED ] — PgTest::testCreateTable
- [ PASSED ] — FirebirdTest::testCreateTable