lsst.daf.persistence  13.0-17-gd5d205a+2
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
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__
 
def __del__
 
def lookup
 
- Public Member Functions inherited from lsst.daf.persistence.registries.SqlRegistry
def __init__
 
def lookup
 
def executeQuery
 
- Public Member Functions inherited from lsst.daf.persistence.registries.Registry
def __init__
 

Static Public Member Functions

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

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

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.

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

Definition at line 438 of file registries.py.

Member Function Documentation

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

Definition at line 485 of file registries.py.

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

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: