change to generics

This commit is contained in:
Jaremy Creechley 2023-09-25 17:51:54 -07:00
parent 92dcbf70ae
commit 269aec68f3
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 2 additions and 2 deletions

View File

@ -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 =

View File

@ -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]