4Suite API Documentation

Module Ft.Rdf.Drivers.Postgres

A persistent RDF model driver using the PygreSQL adapter to PostgreSQL
See http://www.postgresql.org/

Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Functions:
Globals:

Classes

class DbAdapter(Ft.Rdf.Drivers.SQL.SqlAdapter)

Methods

__init__(self, connectionInfo, modelName='default', conn=None)
Overrides: __init__ from class SqlAdapter

Methods inherited from class Ft.Rdf.Drivers.SQL.SqlAdapter

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Members

comparison = {None: '=', 0: '=', 1: '~*', 2: '~', 3: '~*'}
paramstyle = 'pyformat'

Members inherited from class Ft.Rdf.Drivers.SQL.SqlAdapter

Members inherited from class object

__class__

Functions

CheckVersion(db, connectionInfo, modelName)
Connect(*args, **kwds)
CreateDb(connectionInfo, modelName='default')
DestroyDb(connectionInfo, modelName='default')
ExistsDb(connectionInfo, modelName='default')
GetDb(connectionInfo, modelName='default')
InitializeModule()
Post-import hook to initialize module's runtime variables that are not required at import time, but will be needed before the module-level functions are called.

Globals

CREATE_BOUND_TABLE = '\nCREATE TABLE ftrdf_%s_bound (\n name text,\n object varchar,\n domain text)\n'
CREATE_STATEMENT_TABLE = '\nCREATE TABLE ftrdf_%s_statement (\n subject ...\n domain text,\n otype text)\n'
INDICES = {'source': ('ftrdf_%s_statement', ['domain']), 'sp': ('ftrdf_%s_statement', ['subject', 'predicate'])}
VERSION = '0.2'