lsst.pipe.tasks  18.0.0-10-g73b8679e+4
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 219 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 227 of file ingest.py.

Member Function Documentation

◆ __enter__()

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

Definition at line 251 of file ingest.py.

◆ __exit__()

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

Definition at line 255 of file ingest.py.

Member Data Documentation

◆ conn

lsst.pipe.tasks.ingest.RegistryContext.conn

Definition at line 247 of file ingest.py.

◆ permissions

lsst.pipe.tasks.ingest.RegistryContext.permissions

Definition at line 236 of file ingest.py.

◆ registryName

lsst.pipe.tasks.ingest.RegistryContext.registryName

Definition at line 235 of file ingest.py.

◆ updateName

lsst.pipe.tasks.ingest.RegistryContext.updateName

Definition at line 240 of file ingest.py.


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