MOAI Database Module

class moai.database.btree.BTreeDatabase(dbpath=None, mode='w')

Simple reference implementation of a database backend based on btree and hash storage. This implements the IDatabase interface, look there for more documentation.

add_content(id, sets, record_data, meta_data, assets_data)
add_set(set_id, name, description=None)
flush_update()
get_assets(id)
get_metadata(id)
get_record(id)
get_set(id)
get_sets(id)
oai_query(offset=0, batch_size=20, sets=[], not_sets=[], filter_sets=[], from_date=None, until_date=None, identifier=None)
oai_sets(offset=0, batch_size=20)
remove_content(id)
remove_set(id)
class moai.database.sqlite.SQLiteDatabase(dbpath=None, mode='w')

Sqlite implementation of a database backend This implements the IDatabase interface, look there for more documentation.

add_content(id, sets, record_data, meta_data, assets_data)
add_set(set_id, name, description=None)
flush_update()
get_assets(id)
get_metadata(id)
get_record(id)
get_set(id)
get_sets(id)
oai_query(offset=0, batch_size=20, sets=[], not_sets=[], filter_sets=[], from_date=None, until_date=None, identifier=None)
oai_sets(offset=0, batch_size=20)
remove_content(id)
remove_set(id)
"Moai at Tongariki", photo: Vera & Jean-Christophe. Creative Commons License

Previous topic

Interfaces

Next topic

MOAI Server Module

This Page

Quick search