mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-07 16:13:07 +00:00
don't store string
This commit is contained in:
parent
b224c1ce3e
commit
113f59cecc
@ -4,4 +4,4 @@ import ./datastore/sql
|
||||
import ./datastore/mountedds
|
||||
import ./datastore/tieredds
|
||||
|
||||
export datastore, fsds, mountedds, tieredds, sql
|
||||
export datastore, fsds, mountedds, tieredds
|
||||
|
||||
@ -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 =
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user