ApdbPostgresQuery#
- class lsst.analysis.ap.ApdbPostgresQuery(namespace, url='rubin@usdf-prompt-processing-dev.slac.stanford.edu/lsst-devl', instrument=None, **kwargs)#
Bases:
DbSqlQueryConnect to a running postgres APDB instance and load data from it.
This class connects to the database only when the
connectioncontext manager is entered, and closes the connection after it exits.Parameters#
- namespace
str Database namespace to load from. Called “schema” in postgres docs.
- url
str Complete url to connect to postgres database, without prepended
postgresql://.- instrument
str Short name (e.g. “DECam”) of instrument to make a dataId unpacker and to add to the table columns; supports any gen3 instrument. To be deprecated once this information is in the database.
Attributes Summary
Context manager for database connections.
Attributes Documentation
- connection#
- namespace