Package conduit :: Module Database :: Class GenericDB
[hide private]

Class GenericDB

source code


GenericDB abstraction layer. Supports select, update, delete, etc

Instance Methods [hide private]
 
__init__(self, filename=":memory:", **kwargs) source code
 
_open(self) source code
 
_get_tables(self) source code
 
_build_insert_sql(self, table, *values) source code
 
_build_update_sql(self, table, oid, *values, **kwargs) source code
 
_build_create_sql(self, table, fields, fieldtypes) source code
 
execute(self, sql, args=()) source code
 
select(self, sql, args=()) source code
 
select_one(self, sql, args=()) source code
 
create(self, table, fields=(), fieldtypes=()) source code
 
insert(self, table, values=()) source code
 
update(self, table, oid, values=(), **kwargs) source code
 
delete(self, table, oid) source code
 
save(self) source code
 
close(self) source code
 
debug(self, width=70, printoid=True) source code
 
get_fields(self, table)
Returns the number of fields in the table EXCLUDING oid
source code
 
get_tables(self) source code
Class Variables [hide private]
  __gsignals__ = {"row-inserted":(gobject.SIGNAL_RUN_LAST, gobje...
  DEBUG = False
Class Variable Details [hide private]

__gsignals__

Value:
{"row-inserted":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, [gobject.\
TYPE_INT]), "row-modified":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE\
, [gobject.TYPE_INT]), "row-deleted":(gobject.SIGNAL_RUN_LAST, gobject\
.TYPE_NONE, [gobject.TYPE_INT])}