Skip to content

Commit

Permalink
more type hints; prepare for release (#60)
Browse files Browse the repository at this point in the history
* more type hints; prepare for release

* add writemap

* add auto-reusing database factory
  • Loading branch information
oberstet committed Jul 5, 2022
1 parent 36ac73e commit 32ed7f7
Show file tree
Hide file tree
Showing 4 changed files with 328 additions and 97 deletions.
7 changes: 3 additions & 4 deletions zlmdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
MapBytes20Bytes20FlatBuffers, \
MapBytes20StringFlatBuffers

from ._transaction import Transaction, TransactionStats, walltime
from ._transaction import Transaction, TransactionStats
from ._database import Database
from ._schema import Schema

Expand All @@ -128,7 +128,6 @@
'Database',
'Transaction',
'TransactionStats',
'walltime',
'MapSlotUuidUuid',
'table',

Expand Down Expand Up @@ -262,9 +261,9 @@
'MapBytes16TimestampUuidFlatBuffers',
)

TABLES_BY_UUID = {} # type: Dict[uuid.UUID, object]
TABLES_BY_UUID: Dict[uuid.UUID, PersistentMap] = {}
"""
Map of table UUIDs to persistant maps stored in slots in a KV store.
Map of table UUIDs to persistent maps stored in slots in a KV store.
"""


Expand Down

0 comments on commit 32ed7f7

Please sign in to comment.