httk.db.store package

Submodules

httk.db.store.dictstore module

class httk.db.store.dictstore.DictStore[source]

Bases: object

Simplified fake database store in a dict, for testing primarily; though it can be used as a fast database-like engine that enables reterival of data

class Keeper(store, table, sid)[source]

Bases: object

puts(**args)[source]
basics = [<type 'int'>, <type 'float'>, <type 'str'>, <type 'bool'>]
create_table(table, types)[source]
get(table, sid, name)[source]
insert(table, keyvals)[source]
new(table, types, keyvals)[source]
put(table, sid, name, val)[source]
puts(table, sid, **args)[source]
retrieve(table, types, sid)[source]

httk.db.store.sqlstore module

class httk.db.store.sqlstore.SqlStore(db)[source]

Bases: object

Keep objects in an sql database

class Keeper(store, table, types, sid)[source]

Bases: object

puts(**args)[source]
basics = [<type 'int'>, <type 'float'>, <type 'str'>, <type 'bool'>, <class 'httk.core.vectors.fracvector.FracScalar'>]
commit()[source]
create_table(table, types, cursor=None)[source]
delay_commit()[source]
get(table, sid, types, name)[source]
insert(table, types, keyvals, cursor=None, updatesid=None)[source]
new(table, types, keyvals=None, updatesid=None)[source]
put(table, sid, types, name, val)[source]
puts(table, sid, **args)[source]
retrieve(table, types, sid)[source]
save(obj)[source]
searcher()[source]

httk.db.store.trivialstore module

class httk.db.store.trivialstore.TrivialStore[source]

Bases: object

Very simple storage class that just stores everything into an individual dictionary, just like regular python objects work

new(table, types, keyvals)[source]
retrieve(table, sid)[source]

Module contents

Stores are abstract keepers of data. The only one properly implemented right now is sqlite, but others are possible. Trivialstore stores data just in the python classes, and dictstore stores all data in a dictionary.

TODO: Note: since a few changes back I think neither trivialstore or dictstore currently works the way they should.