DropTable class
Framework\Database\Definition\DropTable
Class DropTable.
Extends Framework\Database\Statement
Implements:
Stringable
Defined in libraries/database/src/Definition/DropTable.php
Methods #
- commentToSave()
- -
- ifExists()
- -
- renderWait()
- -
- run()
- Runs the DROP TABLE statement.
- sql()
- -
- table()
- -
- temporary()
- -
- wait()
- -
- renderCommentToSave()
- -
- renderIfExists()
- -
- renderTables()
- -
- renderTemporary()
- -
commentToSave()
public function commentToSave(string $comment): static
Parameters
- string $comment
Returns
static
ifExists()
public function ifExists(): static
Returns
static
renderWait()
public function renderWait(): ?string
Returns
?string
run()
public function run(): string|int
Runs the DROP TABLE statement.
Returns
string|int
- The number of affected rows
sql()
public function sql(): string
Returns
string
table()
public function table(string $table, string ...$tables): static
Parameters
- string $table
- string $tables
Returns
static
temporary()
public function temporary(): static
Returns
static
wait()
public function wait(int $seconds): static
Parameters
- int $seconds
Returns
static
renderCommentToSave()
protected function renderCommentToSave(): ?string
Returns
?string
renderIfExists()
protected function renderIfExists(): ?string
Returns
?string
renderTables()
protected function renderTables(): string
Returns
string
renderTemporary()
protected function renderTemporary(): ?string
Returns
?string
Inherited methods #
-
__construct()fromFramework\Database\Statement -
__toString()fromFramework\Database\Statement -
reset()fromFramework\Database\Statement