DropSchema
extends Statement
in package
Class DropSchema.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Statement constructor.
- __toString() : string
- ifExists() : static
- reset() : static
- Resets SQL clauses and parts.
- run() : int|string
- Runs the CREATE SCHEMA statement.
- schema() : static
- sql() : string
- Renders the SQL statement.
- renderIfExists() : string|null
- renderSchema() : string
Properties
$database
protected
Database
$database
$sql
SQL clauses and parts.
protected
array<string, mixed>
$sql
= []
Methods
__construct()
Statement constructor.
public
__construct(Database $database) : mixed
Parameters
- $database : Database
__toString()
public
__toString() : string
Return values
stringifExists()
public
ifExists() : static
Return values
staticreset()
Resets SQL clauses and parts.
public
reset([string|null $sql = null ]) : static
Parameters
- $sql : string|null = null
-
A part name or null to reset all
Tags
Return values
staticrun()
Runs the CREATE SCHEMA statement.
public
run() : int|string
Return values
int|string —The number of affected rows
schema()
public
schema(string $schemaName) : static
Parameters
- $schemaName : string
Return values
staticsql()
Renders the SQL statement.
public
sql() : string
Return values
stringrenderIfExists()
protected
renderIfExists() : string|null
Return values
string|nullrenderSchema()
protected
renderSchema() : string