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/mountedds
import ./datastore/tieredds 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, proc new*(T: type SQLiteDatastore,
path: string, path: string,
readOnly = false): ?!T = readOnly = false): ?!SQLiteDatastore =
let let
flags = flags =

View File

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

View File

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

View File

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