From a628abca2ad93a87cbf35edce4bcd8ce3cf57a31 Mon Sep 17 00:00:00 2001 From: mahlon Date: Wed, 2 Apr 2025 02:19:34 +0000 Subject: [PATCH] Minor update for Kuzu 0.9.0 release. FossilOrigin-Name: c215238d4ec01e47721f6786183244a71ab2befaad28416633f0fe41ba88a974 --- History.md | 10 ++++++++++ README.md | 2 +- USAGE.md | 1 + experiments/prepared-test.c | 2 ++ src/kuzu.nim | 4 ++-- src/kuzu/{0.8.2.nim => 0.9.0.nim} | 2 +- src/kuzu/constants.nim | 2 +- 7 files changed, 18 insertions(+), 5 deletions(-) rename src/kuzu/{0.8.2.nim => 0.9.0.nim} (99%) diff --git a/History.md b/History.md index e915e5f..2437125 100644 --- a/History.md +++ b/History.md @@ -1,5 +1,15 @@ # Release History for nim-kuzu +--- +## v0.2.0 [2025-04-01] Mahlon E. Smith + +Well that didn't take long! Update for Kuzu 0.9.0. + +No practical changes, but there was a prepared statements +binding bugfix in the underlying lib that was biting us, +so update version to reflect the 0.9.0 release. + + --- ## v0.1.0 [2025-03-31] Mahlon E. Smith diff --git a/README.md b/README.md index 1914ff6..9d42ed0 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ For more information about Kuzu itself, see its $ nimble install kuzu -The current version of this library is built for Kuzu v0.8.2. +The current version of this library is built for Kuzu v0.9.0. ## Usage diff --git a/USAGE.md b/USAGE.md index 9fa0314..2c94e94 100644 --- a/USAGE.md +++ b/USAGE.md @@ -32,6 +32,7 @@ versions might work. Don't count too heavily on it. :-) | Kuzu Library Version | Nim Kuzu Version | | -------------------- | ---------------- | | v0.8.2 | v0.1.0 | +| v0.9.0 | v0.2.0 | You can use the `kuzuVersionCompatible()` function (along with the `kuzuGetVersion()` and the `KUZU_VERSION` constant) to quickly check if things diff --git a/experiments/prepared-test.c b/experiments/prepared-test.c index ed0149f..c828f72 100644 --- a/experiments/prepared-test.c +++ b/experiments/prepared-test.c @@ -6,6 +6,8 @@ weird prepared statement binding behavior? I don't know. Maybe it's just me. +NOTE: This was verified and fixed in Kuzu 0.9.0! + https://docs.kuzudb.com/get-started/prepared-statements/ % clang -lkuzu -o prepared-test prepared-test.c diff --git a/src/kuzu.nim b/src/kuzu.nim index e4a5e9e..cbd94ff 100644 --- a/src/kuzu.nim +++ b/src/kuzu.nim @@ -7,10 +7,10 @@ when defined( futharkWrap ): import futhark, os importc: - outputPath currentSourcePath.parentDir / "kuzu" / "0.8.2.nim" + outputPath currentSourcePath.parentDir / "kuzu" / "0.9.0.nim" "kuzu.h" else: - include "kuzu/0.8.2.nim" + include "kuzu/0.9.0.nim" import std/strformat, diff --git a/src/kuzu/0.8.2.nim b/src/kuzu/0.9.0.nim similarity index 99% rename from src/kuzu/0.8.2.nim rename to src/kuzu/0.9.0.nim index 25f9c71..4d30327 100644 --- a/src/kuzu/0.8.2.nim +++ b/src/kuzu/0.9.0.nim @@ -131,7 +131,7 @@ type kuzu_data_type_id_570425859 = enum_kuzu_data_type_id_570425858 ## Generated based on /usr/include/kuzu.h:319:3 kuzu_state_570425863 = enum_kuzu_state_570425862 ## Generated based on /usr/include/kuzu.h:324:49 struct_tm_570425865 {.pure, inheritable, bycopy.} = object - tm_sec*: cint ## Generated based on /usr/include/bits/types/struct_tm.h:7:8 + tm_sec*: cint ## Generated based on /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8 tm_min*: cint tm_hour*: cint tm_mday*: cint diff --git a/src/kuzu/constants.nim b/src/kuzu/constants.nim index 60645c4..bbf848c 100644 --- a/src/kuzu/constants.nim +++ b/src/kuzu/constants.nim @@ -1,7 +1,7 @@ # vim: set et sta sw=4 ts=4 : const KUZU_VERSION* = "0.1.0" -const KUZU_EXPECTED_LIBVERSION* = "0.8.2" +const KUZU_EXPECTED_LIBVERSION* = "0.9.0" let KUZU_DEFAULT_CONFIG* = kuzu_default_system_config()