final class OdbcSchemaGrammar implements SchemaGrammarInterface (View source)

Provides the odbc schema grammar contract for the database subsystem.

Methods

Initializes this OdbcSchemaGrammar with the collaborators and state required by its database contract.

string
compileCreateDatabase(string $database)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileDropDatabase(string $database)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string

Compiles the requested schema operation into SQL supported by this database dialect.

string
array
string
compileDropTable(string $table, bool $ifExists = false)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileRenameTable(string $from, string $to)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileAddColumn(string $table, ColumnDefinition $column)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileModifyColumn(string $table, ColumnDefinition $column)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileDropColumn(string $table, string $column)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileAddIndex(string $table, IndexDefinition $index)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileDropIndex(string $table, string $index)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileAddForeignKey(string $table, ForeignKeyDefinition $foreignKey)

Compiles the requested schema operation into SQL supported by this database dialect.

string
string
compileDropForeignKey(string $table, string $foreignKey)

Compiles the requested schema operation into SQL supported by this database dialect.

string

Details

__construct

__construct(OdbcSqlEscaper $escaper, DatabaseConfig $config)

Initializes this OdbcSchemaGrammar with the collaborators and state required by its database contract.

Parameters

OdbcSqlEscaper $escaper
DatabaseConfig $config

compileCreateDatabase

string compileCreateDatabase(string $database)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $database

Return Value

string

compileDropDatabase

string compileDropDatabase(string $database)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $database

Return Value

string

compileCreateTable

string compileCreateTable(TableDefinition $table)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

TableDefinition $table

Return Value

string

compileCreateTableStatements

array compileCreateTableStatements(TableDefinition $table)

No description

Parameters

TableDefinition $table

Return Value

array

compileAlterTable

array compileAlterTable(TableDefinition $table)

No description

Parameters

TableDefinition $table

Return Value

array

compileDropTable

string compileDropTable(string $table, bool $ifExists = false)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $table
bool $ifExists

Return Value

string

compileRenameTable

string compileRenameTable(string $from, string $to)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $from
string $to

Return Value

string

compileAddColumn

string compileAddColumn(string $table, ColumnDefinition $column)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $table
ColumnDefinition $column

Return Value

string

compileModifyColumn

string compileModifyColumn(string $table, ColumnDefinition $column)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $table
ColumnDefinition $column

Return Value

string

compileDropColumn

string compileDropColumn(string $table, string $column)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $table
string $column

Return Value

string

compileAddIndex

string compileAddIndex(string $table, IndexDefinition $index)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $table
IndexDefinition $index

Return Value

string

compileDropIndex

string compileDropIndex(string $table, string $index)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $table
string $index

Return Value

string

compileAddForeignKey

string compileAddForeignKey(string $table, ForeignKeyDefinition $foreignKey)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $table
ForeignKeyDefinition $foreignKey

Return Value

string

compileDropForeignKey

string compileDropForeignKey(string $table, string $foreignKey)

Compiles the requested schema operation into SQL supported by this database dialect.

Parameters

string $table
string $foreignKey

Return Value

string