DeclaredCollations
final readonly class \
The CHARACTER SET / COLLATE declarations of the expected schema. A table or column whose collation deviates from the connection's defaultTableOptions on purpose - for example sys_refindex.hash using "CHARACTER SET ascii COLLATE ascii_bin" - is declared here and must not be reported as error.
Internal
Table of Contents
Methods
- fromTables() : self
- isColumnCollationDeclared() : bool
- A column without a declaration of its own falls back to the declaration of its table.
- isTableCollationDeclared() : bool
Methods
fromTables()
public
static fromTables(iterable<string|int, Table> $tables) : self
Parameters
- $tables : iterable<string|int, Table>
Return values
selfisColumnCollationDeclared()
A column without a declaration of its own falls back to the declaration of its table.
public
isColumnCollationDeclared(string $tableName, string $columnName, string $collation) : bool
Parameters
- $tableName : string
- $columnName : string
- $collation : string
Return values
boolisTableCollationDeclared()
public
isTableCollationDeclared(string $tableName, string $collation) : bool
Parameters
- $tableName : string
- $collation : string