mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-09 09:03:07 +00:00
fix dep versions
This commit is contained in:
parent
956a25b350
commit
b0f7d79dae
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
os: windows,
|
os: windows,
|
||||||
shell: msys2
|
shell: msys2
|
||||||
}
|
}
|
||||||
nim: [1.6.18, 2.0.14]
|
nim: [2.0.14]
|
||||||
name: ${{ matrix.platform.icon }} ${{ matrix.platform.label }} - Nim v${{ matrix.nim }}
|
name: ${{ matrix.platform.icon }} ${{ matrix.platform.label }} - Nim v${{ matrix.nim }}
|
||||||
runs-on: ${{ matrix.platform.os }}-latest
|
runs-on: ${{ matrix.platform.os }}-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@ -6,14 +6,14 @@ author = "Status Research & Development GmbH"
|
|||||||
description = "Simple, unified API for multiple data stores"
|
description = "Simple, unified API for multiple data stores"
|
||||||
license = "Apache License 2.0 or MIT"
|
license = "Apache License 2.0 or MIT"
|
||||||
|
|
||||||
requires "nim >= 1.2.0",
|
requires "nim >= 2.0.14",
|
||||||
"asynctest >= 0.5.2 & < 0.6.0",
|
"asynctest >= 0.5.2 & < 0.6.0",
|
||||||
"chronos >= 4.0.3 & < 5.0.0",
|
"chronos >= 4.0.3 & < 5.0.0",
|
||||||
"questionable >= 0.10.15 & < 0.11.0",
|
"questionable >= 0.10.15 & < 0.11.0",
|
||||||
"sqlite3_abi == 3.47.0.0",
|
"sqlite3_abi >= 3.47.0.0 & < 4.0.0.0",
|
||||||
"leveldbstatic >= 0.2.0 & < 1.0.0",
|
"leveldbstatic >= 0.2.0 & < 1.0.0",
|
||||||
"stew >= 0.2.0",
|
"stew >= 0.2.0 & < 0.3.0",
|
||||||
"unittest2 >= 0.2.3"
|
"unittest2 >= 0.2.3 & < 0.3.0"
|
||||||
|
|
||||||
task coverage, "generates code coverage report":
|
task coverage, "generates code coverage report":
|
||||||
var (output, exitCode) = gorgeEx("which lcov")
|
var (output, exitCode) = gorgeEx("which lcov")
|
||||||
|
|||||||
@ -19,7 +19,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) {.closure, gcsafe, raises: [].}
|
||||||
|
|
||||||
NoParams* = tuple # empty tuple
|
NoParams* = tuple # empty tuple
|
||||||
|
|
||||||
@ -241,10 +241,7 @@ proc query*[P](
|
|||||||
|
|
||||||
case v
|
case v
|
||||||
of SQLITE_ROW:
|
of SQLITE_ROW:
|
||||||
try:
|
onData(s)
|
||||||
onData(s)
|
|
||||||
except Exception as err:
|
|
||||||
return failure("sqliteutils.query (stmt) exception: " & $err.msg)
|
|
||||||
res = success true
|
res = success true
|
||||||
of SQLITE_DONE:
|
of SQLITE_DONE:
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user