ApdbSqliteQuery#

class lsst.analysis.ap.ApdbSqliteQuery(filename, instrument=None, **kwargs)#

Bases: DbSqlQuery

Open 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#

filenamestr

Path to the sqlite3 file containing the APDB to load.

instrumentstr

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

connection

Context manager for database connections.

Attributes Documentation

connection#