lsst.pipe.tasks gba22ec62b9+6a4dee4a63
Public Member Functions | Public Attributes | List of all members
lsst.pipe.tasks.ingest.RegistryContext Class Reference
Inheritance diagram for lsst.pipe.tasks.ingest.RegistryContext:
lsst.pipe.tasks.ingestPgsql.PgsqlRegistryContext

Public Member Functions

def __init__ (self, registryName, createTableFunc, forceCreateTables, permissions)
 
def __enter__ (self)
 
def __exit__ (self, excType, excValue, traceback)
 

Public Attributes

 conn
 

Detailed Description

Context manager to provide a registry

Definition at line 245 of file ingest.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.tasks.ingest.RegistryContext.__init__ (   self,
  registryName,
  createTableFunc,
  forceCreateTables,
  permissions 
)
Construct a context manager

@param registryName: Name of registry file
@param createTableFunc: Function to create tables
@param forceCreateTables: Force the (re-)creation of tables?
@param permissions: Permissions to set on database file

Reimplemented in lsst.pipe.tasks.ingestPgsql.PgsqlRegistryContext.

Definition at line 249 of file ingest.py.

Member Function Documentation

◆ __enter__()

def lsst.pipe.tasks.ingest.RegistryContext.__enter__ (   self)
Provide the 'as' value

Definition at line 261 of file ingest.py.

◆ __exit__()

def lsst.pipe.tasks.ingest.RegistryContext.__exit__ (   self,
  excType,
  excValue,
  traceback 
)

Reimplemented in lsst.pipe.tasks.ingestPgsql.PgsqlRegistryContext.

Definition at line 265 of file ingest.py.

Member Data Documentation

◆ conn

lsst.pipe.tasks.ingest.RegistryContext.conn

Definition at line 257 of file ingest.py.


The documentation for this class was generated from the following file: