MongoLite\Database::createCollection PHP Method

createCollection() public method

Create a collection
public createCollection ( string $name )
$name string
    public function createCollection($name)
    {
        $this->connection->exec("CREATE TABLE {$name} ( id INTEGER PRIMARY KEY AUTOINCREMENT, document TEXT )");
    }