mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-02 21:53:05 +00:00
change to generics
This commit is contained in:
parent
92dcbf70ae
commit
269aec68f3
@ -15,7 +15,7 @@ export backend, sqlitedsdb
|
||||
push: {.upraises: [].}
|
||||
|
||||
type
|
||||
SQLiteBackend*[K, V] = object
|
||||
SQLiteBackend*[K: DbKey, V: DbVal] = object
|
||||
db: SQLiteDsDb[K, V]
|
||||
|
||||
proc path*[K,V](self: SQLiteBackend[K,V]): string =
|
||||
|
||||
@ -26,7 +26,7 @@ type
|
||||
EndStmt* = NoParamsStmt
|
||||
RollbackStmt* = NoParamsStmt
|
||||
|
||||
SQLiteDsDb*[K,V] = object
|
||||
SQLiteDsDb*[K: DbKey, V: DbVal] = object
|
||||
readOnly*: bool
|
||||
dbPath*: DataBuffer
|
||||
containsStmt*: ContainsStmt[K]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user