lsst.daf.persistence  13.0-31-g48013df+4
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
lsst.daf.persistence.registries.PgsqlRegistry Class Reference
Inheritance diagram for lsst.daf.persistence.registries.PgsqlRegistry:
lsst.daf.persistence.registries.SqlRegistry lsst.daf.persistence.registries.Registry

Public Member Functions

def __init__ (self, location)
 
def __del__ (self)
 
def lookup (self, args, kwargs)
 
- Public Member Functions inherited from lsst.daf.persistence.registries.SqlRegistry
def __init__ (self, conn)
 
def lookup (self, lookupProperties, reference, dataId, kwargs)
 
def executeQuery (self, returnFields, joinClause, whereFields, range, values)
 
- Public Member Functions inherited from lsst.daf.persistence.registries.Registry
def __init__ (self)
 

Static Public Member Functions

def readYaml (location)
 
- Static Public Member Functions inherited from lsst.daf.persistence.registries.Registry
def create (location)
 

Static Public Attributes

string placeHolder = "%s"
 
- Static Public Attributes inherited from lsst.daf.persistence.registries.SqlRegistry
string placeHolder = "?"
 

Additional Inherited Members

- Public Attributes inherited from lsst.daf.persistence.registries.SqlRegistry
 conn
 

Detailed Description

A PostgreSQL-based registry

Definition at line 418 of file registries.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.daf.persistence.registries.PgsqlRegistry.__init__ (   self,
  location 
)
Constructor

Parameters
----------
location : `str`
    Path to PostgreSQL configuration file.

Definition at line 422 of file registries.py.

◆ __del__()

def lsst.daf.persistence.registries.PgsqlRegistry.__del__ (   self)

Definition at line 438 of file registries.py.

Member Function Documentation

◆ lookup()

def lsst.daf.persistence.registries.PgsqlRegistry.lookup (   self,
  args,
  kwargs 
)

Definition at line 485 of file registries.py.

◆ readYaml()

def lsst.daf.persistence.registries.PgsqlRegistry.readYaml (   location)
static
Read YAML configuration file

The YAML configuration file should contain:
* host : host name for database connection
* port : port for database connection
* user : user name for database connection
* database : database name

It may also contain:
* password : password for database connection

The optional entries are set to `None` in the output configuration.

Parameters
----------
location : `str`
    Path to PostgreSQL YAML config file.

Returns
-------
config : `dict`
    Configuration

Definition at line 443 of file registries.py.

Member Data Documentation

◆ placeHolder

string lsst.daf.persistence.registries.PgsqlRegistry.placeHolder = "%s"
static

Definition at line 420 of file registries.py.


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