DropSchema class

Framework\Database\Definition\DropSchema

Class DropSchema.

Extends Framework\Database\Statement

Implements: Stringable

Defined in libraries/database/src/Definition/DropSchema.php

Methods #

ifExists()
-
run()
Runs the CREATE SCHEMA statement.
schema()
-
sql()
-
renderIfExists()
-
renderSchema()
-

ifExists()

public function ifExists(): 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

renderIfExists()

protected function renderIfExists(): ?string
Returns ?string

renderSchema()

protected function renderSchema(): string
Returns string

Inherited methods #