mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-05 23:23:10 +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/mountedds
|
||||||
import ./datastore/tieredds
|
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,
|
proc new*(T: type SQLiteDatastore,
|
||||||
path: string,
|
path: string,
|
||||||
readOnly = false): ?!T =
|
readOnly = false): ?!SQLiteDatastore =
|
||||||
|
|
||||||
let
|
let
|
||||||
flags =
|
flags =
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user