-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change EXTENSIONs so that they appear at the top level. Fixes #40.
* docs/extension.rst: Update derivation information. Add ExtensionDict.to_map. * pyrseas/database.py (Database.Dicts.__init__): Initialize schemas first and extensions second. (Database._link_refs): Exclude extensions from call to schemas.link_refs. (Database.from_map): Add processing of extensions. (Database.to_map): Add mapping of extensions. (Database.diff_map): Process extensions ahead of languages and schemas. * pyrseas/dbobject/extension.py (Extension.keylist): Limit it to just the name. (ExtensionDict.query): Order by extname only. (ExtensionDict.from_map): Remove schema parameter. (ExtensionDict.to_map): New method. (ExtensionDict.diff_map): Refactor to exclude schema as part of the key. * pyrseas/dbobject/language.py (LanguageDict.diff_map): Remove dbversion parameter and use self.dbconn.version instead. * pyrseas/dbobject/schema.py (Schema.to_map): Exclude extensions from object types list. (SchemaDict.from_map): Exclude extensions from processing. (SchemaDict.link_refs): Exclude extensions from parameters and subsequent processing. * pyrseas/testutils.py InputMapToSqlTestCase.std_map): Don't include schema pg_catalog. * tests/dbobject/test_extension.py: Change maps to move extensions at the same level as schemas.
- Loading branch information
Showing
7 changed files
with
65 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters