1 """ sqlite event store """
3 from sqlite3 import connect
5 __all__ = "initdb", "stow"
9 SCHEMA = """create table if not exists events (
12 peeraddr text not null,
27 k: kwargs[k] if k in kwargs else v
36 assert len(kwargs) <= len(parms)
38 """insert or ignore into events
39 (tstamp, imei, peeraddr, proto, packet)
41 (:when, :imei, :peeraddr, :proto, :packet)