summary refs log tree commit diff stats
path: root/lib/impure/db_mongo.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-11 21:56:05 +0100
committerAraq <rumpf_a@web.de>2014-01-11 21:56:05 +0100
commit346443d1b552574c1f259cd9e6080c2d0063fa9c (patch)
tree0f319406b8312ed325bbb1ef1ea5b7ef74662e07 /lib/impure/db_mongo.nim
parent437cfa73abd8fdf878cc2af2c44acbc4b6ec3a56 (diff)
downloadNim-346443d1b552574c1f259cd9e6080c2d0063fa9c.tar.gz
case consistency improvements
Diffstat (limited to 'lib/impure/db_mongo.nim')
-rw-r--r--lib/impure/db_mongo.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/impure/db_mongo.nim b/lib/impure/db_mongo.nim
index b11db78f8..d012f677f 100644
--- a/lib/impure/db_mongo.nim
+++ b/lib/impure/db_mongo.nim
@@ -47,12 +47,12 @@ proc dbError*(db: TDbConn, msg: string) {.noreturn.} =
     e.msg = $db.err & " " & msg
   raise e
 
-proc Close*(db: var TDbConn) {.tags: [FDB].} = 
+proc close*(db: var TDbConn) {.tags: [FDB].} = 
   ## closes the database connection.
   disconnect(db)
   destroy(db)
 
-proc Open*(host: string = defaultHost, port: int = defaultPort): TDbConn {.
+proc open*(host: string = defaultHost, port: int = defaultPort): TDbConn {.
   tags: [FDB].} =
   ## opens a database connection. Raises `EDb` if the connection could not
   ## be established.
@@ -113,7 +113,7 @@ proc getId*(obj: var TBSon): TOid =
   else:
     raise newException(EInvalidIndex, "_id not in object")
 
-proc insertID*(db: var TDbConn, namespace: string, data: PJsonNode): TOid {.
+proc insertId*(db: var TDbConn, namespace: string, data: PJsonNode): TOid {.
   tags: [FWriteDb].} =
   ## converts `data` to BSON format and inserts it in `namespace`. Returns
   ## the generated OID for the ``_id`` field.