X-Git-Url: http://dolda2000.com/gitweb/?p=didex.git;a=blobdiff_plain;f=didex%2Fstore.py;h=8481c0f6d6a8fb7ff4c6fac828fc7586483e9c3a;hp=fb5f2c6448411c02796844114058c8355e138ba3;hb=6e81ddd5b15da4a82f567fe3c347958e82ef5b2e;hpb=ca180faa157589645754310971bd0af22597f992 diff --git a/didex/store.py b/didex/store.py index fb5f2c6..8481c0f 100644 --- a/didex/store.py +++ b/didex/store.py @@ -2,6 +2,8 @@ import threading, pickle from . import db, index, cache from .db import txnfun +__all__ = ["environment", "datastore", "autostore"] + class environment(object): def __init__(self, *, path=None, getpath=None, recover=False): if path is not None: @@ -42,7 +44,7 @@ def storedescs(obj): t.__didex_attr = ret return ret -class store(object): +class datastore(object): def __init__(self, name, *, env=None, path=".", ncache=None): self.name = name self.lk = threading.Lock()