lsst.pipe.tasks  14.0-49-g18b51594
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

 registryName
 
 permissions
 
 updateName
 
 conn
 

Detailed Description

Context manager to provide a registry

An existing registry is copied, so that it may continue
to be used while we add to this new registry.  Finally,
the new registry is moved into the right place.

Definition at line 201 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

Definition at line 209 of file ingest.py.

Member Function Documentation

◆ __enter__()

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

Definition at line 236 of file ingest.py.

◆ __exit__()

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

Definition at line 240 of file ingest.py.

Member Data Documentation

◆ conn

lsst.pipe.tasks.ingest.RegistryContext.conn

Definition at line 231 of file ingest.py.

◆ permissions

lsst.pipe.tasks.ingest.RegistryContext.permissions

Definition at line 218 of file ingest.py.

◆ registryName

lsst.pipe.tasks.ingest.RegistryContext.registryName

Definition at line 217 of file ingest.py.

◆ updateName

lsst.pipe.tasks.ingest.RegistryContext.updateName

Definition at line 222 of file ingest.py.


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