From e03df9a2e8a12b445da21e3d3a8fb5f2809db631 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 10 Oct 2023 09:26:46 +0100 Subject: [PATCH] Adjust to Syndicate API --- sqlite_actor.nimble | 2 +- src/sqlite_actor.nim | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sqlite_actor.nimble b/sqlite_actor.nimble index 6c43a63..ba08d1f 100644 --- a/sqlite_actor.nimble +++ b/sqlite_actor.nimble @@ -1,4 +1,4 @@ -version = "20230527" +version = "20231010" author = "Emery Hemingway" description = "Syndicate Actor for accessing SQLite databases" license = "Unlicense" diff --git a/src/sqlite_actor.nim b/src/sqlite_actor.nim index 3c9ae22..4c1d385 100644 --- a/src/sqlite_actor.nim +++ b/src/sqlite_actor.nim @@ -51,7 +51,7 @@ proc finalize(stmt: Stmt): cint {.importSqlite3.} doAssert libversion_number() == SQLITE_VERSION_NUMBER -import preserves, syndicate +import preserves, syndicate, syndicate/relays import ./sql proc logError(db: Sqlite3; context: string) = @@ -61,7 +61,7 @@ type Value = Preserve[void] Args {.preservesDictionary.} = object database: string - dataspace: Ref + dataspace: Cap proc extractValue(stmt: Stmt; col: cint): Value = case column_type(stmt, col) @@ -84,9 +84,9 @@ proc extractRecord(stmt: Stmt; label: Value, arity: cint): Value = result = initRecord(label, arity) for col in 0..