Version: v0.7.0 - Beta.  We welcome contributors & feedback.

Db.createTable

Db.createTable($tableName, $colMap) -> boolean

Description

Create a table in the current database, if it does not exist.

Returns true if the table was created, and false if the table already existed.

$wasCreated = Db.createTable('users', {
    userId: 'int',
    email: 'varchar(255)',
})

//= true

See Also