Package Pootle :: Package storage :: Module rdb :: Class Database
[show private | hide private]
[frames | no frames]

Type Database

object --+
         |
        Database


An SQL database connection.
Method Summary
  __init__(self, engine_url)
Create a new connection.
  commitTransaction(self)
  create_tables(self)
  flush(self)
  refresh(self, obj)
  rollbackTransaction(self)
  startTransaction(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
type _interface = Pootle.storage.api.IDatabase
NoneType _transaction = None                                                                  
NoneType languages = None                                                                  
NoneType root = None                                                                  

Method Details

__init__(self, engine_url)
(Constructor)

Create a new connection.

`engine_url` is an engine identifier, e.g.:
    'sqlite://' (in-memory database)
    'sqlite:////absolute/path/to/database.txt'
    'sqlite:///relative/path/to/database.txt'
    'postgres://scott:tiger@localhost:5432/mydatabase'
    'mysql://localhost/foo'

TODO: Currently LanguageInfoContainer is volatile, i.e., it is not
stored inside the database.
Overrides:
__builtin__.object.__init__

Class Variable Details

_transaction

Type:
NoneType
Value:
None                                                                  

languages

Type:
NoneType
Value:
None                                                                  

root

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Tue Aug 22 04:29:46 2006 http://epydoc.sf.net