lsst.pipe.tasks  13.0-66-gfbf2f2ce+5
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 202 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 210 of file ingest.py.

Member Function Documentation

◆ __enter__()

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

Definition at line 237 of file ingest.py.

◆ __exit__()

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

Definition at line 241 of file ingest.py.

Member Data Documentation

◆ conn

lsst.pipe.tasks.ingest.RegistryContext.conn

Definition at line 232 of file ingest.py.

◆ permissions

lsst.pipe.tasks.ingest.RegistryContext.permissions

Definition at line 219 of file ingest.py.

◆ registryName

lsst.pipe.tasks.ingest.RegistryContext.registryName

Definition at line 218 of file ingest.py.

◆ updateName

lsst.pipe.tasks.ingest.RegistryContext.updateName

Definition at line 223 of file ingest.py.


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