The conversion module defines two classes, Conversion and ConversionDict, derived from DbSchemaObject and DbObjectDict, respectively.
Conversion is derived from DbSchemaObject and represents a PostgreSQL conversion between character set encodings.
A conversion definition
Return SQL statements to CREATE the conversion
Returns: | SQL statements |
---|
ConversionDict is derived from DbObjectDict. It is a dictionary that represents the collection of conversions in a database.
The collection of conversions in a database.
Initialize the dictionary of conversions by examining the input map
Parameters: |
|
---|
Generate SQL to transform existing conversions
Parameters: | inconvs – a YAML map defining the new conversions |
---|---|
Returns: | list of SQL statements |
Compares the existing conversion definitions, as fetched from the catalogs, to the input map and generates SQL statements to create, drop or change the conversions accordingly.