The collation module defines two classes, Collation and CollationDict, derived from DbSchemaObject and DbObjectDict, respectively.
Collation is derived from DbSchemaObject and represents a PostgreSQL collation (available on PostgreSQL 9.1 or later).
A collation definition
Return SQL statements to CREATE the collation
Returns: | SQL statements |
---|
CollationDict is derived from DbObjectDict. It is a dictionary that represents the collection of collations in a database.
The collection of collations in a database.
Initialize the dictionary of collations by examining the input map
Parameters: |
|
---|
Generate SQL to transform existing collations
Parameters: | incolls – a YAML map defining the new collations |
---|---|
Returns: | list of SQL statements |
Compares the existing collation definitions, as fetched from the catalogs, to the input map and generates SQL statements to create, drop or change the collations accordingly.