CreateSchema class
Framework\Database\Definition\CreateSchema
Class CreateSchema.
Extends Framework\Database\Statement
Implements:
Stringable
Defined in libraries/database/src/Definition/CreateSchema.php
Methods #
- charset()
- -
- collate()
- -
- ifNotExists()
- -
- orReplace()
- -
- run()
- Runs the CREATE SCHEMA statement.
- schema()
- -
- sql()
- -
- renderCharset()
- -
- renderCollate()
- -
- renderIfNotExists()
- -
- renderOrReplace()
- -
- renderSchema()
- -
charset()
public function charset(string $charset): static
Parameters
- string $charset
Returns
static
collate()
public function collate(string $collation): static
Parameters
- string $collation
Returns
static
ifNotExists()
public function ifNotExists(): static
Returns
static
orReplace()
public function orReplace(): static
Returns
static
run()
public function run(): string|int
Runs the CREATE SCHEMA statement.
Returns
string|int
- The number of affected rows
schema()
public function schema(string $schemaName): static
Parameters
- string $schemaName
Returns
static
sql()
public function sql(): string
Returns
string
renderCharset()
protected function renderCharset(): ?string
Returns
?string
renderCollate()
protected function renderCollate(): ?string
Returns
?string
renderIfNotExists()
protected function renderIfNotExists(): ?string
Returns
?string
renderOrReplace()
protected function renderOrReplace(): ?string
Returns
?string
renderSchema()
protected function renderSchema(): string
Returns
string
Inherited methods #
-
__construct()fromFramework\Database\Statement -
__toString()fromFramework\Database\Statement -
reset()fromFramework\Database\Statement