Beispiel #1
0
    def __init__(self, path):
        '''
        :param path: The filename of the database.
        '''

        KVPTable.__init__(self)
        self._path = path
        self._shared_directories = []
        self._create_tables()
Beispiel #2
0
    def __init__(self, path, max_size=2 ** 36):
        '''
        :param path: A filename to the database.
        :param max_size: The maximum database size that the table will grow.
        '''

        KVPTable.__init__(self)
        self._max_size = max_size
        self._path = path
        self._create_tables()
Beispiel #3
0
 def __init__(self):
     KVPTable.__init__(self)
     self._table = collections.defaultdict(
         lambda: collections.defaultdict(dict))