don't store string

This commit is contained in:
Jaremy Creechley 2023-09-21 17:21:20 -07:00
parent b224c1ce3e
commit 113f59cecc
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
5 changed files with 6 additions and 6 deletions

View File

@ -4,4 +4,4 @@ import ./datastore/sql
import ./datastore/mountedds
import ./datastore/tieredds
export datastore, fsds, mountedds, tieredds, sql
export datastore, fsds, mountedds, tieredds

View File

@ -214,7 +214,7 @@ proc contains*(self: SQLiteDatastore, key: DbKey): bool =
proc new*(T: type SQLiteDatastore,
path: string,
readOnly = false): ?!T =
readOnly = false): ?!SQLiteDatastore =
let
flags =

View File

@ -29,7 +29,7 @@ type
SQLiteDsDb* = object
readOnly*: bool
dbPath*: string
dbPath*: DataBuffer
containsStmt*: ContainsStmt
deleteStmt*: DeleteStmt
env*: SQLite
@ -311,7 +311,7 @@ proc open*(
success SQLiteDsDb(
readOnly: readOnly,
dbPath: path,
dbPath: DataBuffer.new path,
containsStmt: containsStmt,
deleteStmt: deleteStmt,
env: env.release,

View File

@ -22,7 +22,7 @@ type
AutoDisposed*[T: ptr|ref] = object
val*: T
DataProc* = proc(s: RawStmtPtr) {.closure, gcsafe.}
DataProc* = proc(s: RawStmtPtr) {.gcsafe.}
NoParams* = tuple # empty tuple

View File

@ -5,7 +5,7 @@ import pkg/chronos
import pkg/stew/results
import pkg/questionable/results
import pkg/datastore
import pkg/datastore/datastore
proc basicStoreTests*(
ds: Datastore,