Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-10267: Port HSC support for PostgreSQL registries to LSST #57

Merged
merged 2 commits into from May 10, 2017

Conversation

PaulPrice
Copy link
Contributor

No description provided.


class PgsqlRegistry(SqlRegistry):
"""A PostgreSQL-based registry"""
placeHolder = "%s"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it would make sense to move placeHolder = "?" from line 291 to the SqliteRegistry subclass. If you wanted to get really fancy about it, I think it would make sense to make SqlRegistry an abc, and create an abstract method placeholder that subclasses would then be forced to implement.

----------
location : `str`
Path to PostgreSQL configuration file.
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

init method documentation is supposed to go in the class docstring I think.

This will allow us to easily add different flavors of SQL-based registries.
A filename ending in ".pgsql" indicates the use of PostgreSQL. That file
should be in YAML format and contain entries to specify the use of a pgsql
database.
@PaulPrice PaulPrice merged commit b0628d4 into master May 10, 2017
@ktlim ktlim deleted the tickets/DM-10267 branch August 25, 2018 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants