bexchange.db package

Submodules

bexchange.db.sqldatabase module

class bexchange.db.sqldatabase.SqlAlchemyDatabase(uri='sqlite:///tmp/baltrad-exchange.db', poolsize=10)[source]

Bases: object

add(obj)[source]
cleanup_statentries(maxagedt)[source]
property driver

database driver name

find_statentries(spid, origins, sources, hashid=None, filters=None, object_type=None)[source]
find_statistics(spid, origins, sources)[source]
get_average_statentries(spid, origins, sources, hashid=None)[source]
get_connection()[source]

get a context managed connection to the database

get_session()[source]
get_statistics_entry(spid, origin, source)[source]
increment_statistics(spid, origin, source)[source]
init_tables()[source]
list_statentry_ids()[source]
list_statistic_ids()[source]
update(obj)[source]
bexchange.db.sqldatabase.force_sqlite_foreign_keys(dbapi_con, con_record)[source]
class bexchange.db.sqldatabase.statentry(spid, origin, source, hashid, entrytime, optime=0, optime_info=None, delay=0, ndatetime=None, object_type=None, elevation_angle=None)[source]

Bases: object

add_attribute(name, value)[source]
datetime
delay
elevation_angle
entrytime
hashid
id
json_repr()[source]
object_type
optime
optime_info
origin
source
spid
class bexchange.db.sqldatabase.statistics(spid, origin, source, counter, updated_at)[source]

Bases: object

counter
json_repr()[source]
origin
source
spid
updated_at

Module contents