Permalink
Browse files

added open() function for creation and opening collection

  • Loading branch information...
1 parent 8e26077 commit 8ffdeaf4fbfb90184881b519e90c2b78acf9ead5 @ownport committed Sep 7, 2012
Showing with 12 additions and 1 deletion.
  1. +12 −1 kvlite.py
View
@@ -69,8 +69,19 @@ class ConnectionError(Exception): pass
# -----------------------------------------------------------------
-# KVLite tools
+# KVLite utils
# -----------------------------------------------------------------
+def open(uri):
+ '''
+ open collection by URI,
+ if collection does not exist kvlite will try to create it
+
+ in case of successful opening or creation new collection
+ return Collection object
+ '''
+ raise NotImplementedError('kvlite.open()')
+
+
def parse_uri(uri):
''' parse URI

0 comments on commit 8ffdeaf

Please sign in to comment.