diff --git a/datastore/sql/sqliteds.nim b/datastore/sql/sqliteds.nim index 4b79391..24d23c6 100644 --- a/datastore/sql/sqliteds.nim +++ b/datastore/sql/sqliteds.nim @@ -68,6 +68,10 @@ method get*(self: SQLiteDatastore, key: Key): Future[?!seq[byte]] {.async.} = method put*(self: SQLiteDatastore, key: Key, data: seq[byte]): Future[?!void] {.async.} = return self.db.putStmt.exec((key.id, @data, timestamp())) +method close*(self: SQLiteDatastore): Future[?!void] {.async.} = + self.db.close() + return success() + # iterator query*( # self: SQLiteDatastore, # query: Query): Future[QueryResponse] =