ApdbSqliteQuery#
- class lsst.analysis.ap.ApdbSqliteQuery(filename, instrument=None, **kwargs)#
Bases:
DbSqlQueryOpen an sqlite3 APDB file to load data from it.
This class keeps the sqlite connection open after initialization because our sqlite usage is to load a local file. Closing and re-opening would re-scan the whole file every time, and we don’t need to worry about multiple users when working with local sqlite files.
Parameters#
- filename
str Path to the sqlite3 file containing the APDB to load.
- 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#
- filename