The extension module defines two classes, Extension and ExtensionDict, derived from DbObject and DbObjectDict, respectively.
Extension is derived from DbObject and represents a PostgreSQL extension.
An extension
Return SQL statements to CREATE the extension
Returns: | SQL statements |
---|
ExtensionDict is derived from DbObjectDict. It is a dictionary that represents the collection of extensions in a database.
The collection of extensions in a database
Initalize the dictionary of extensions by converting the input map
Parameters: |
|
---|
Generate SQL to transform existing extensions
Parameters: | inexts – a YAML map defining the new extensions |
---|---|
Returns: | list of SQL statements |
Compares the existing extension definitions, as fetched from the catalogs, to the input map and generates SQL statements to transform the extensions accordingly.