Initial commit, adding work to date.
FossilOrigin-Name: e866fb59b96496de50c85d483ec89bdb8f48fb2d24c43b8bfecdc0a968962114
This commit is contained in:
parent
ef8d5a489e
commit
9ee085d86b
12 changed files with 2486 additions and 0 deletions
36
src/kuzu.nim
Normal file
36
src/kuzu.nim
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# vim: set et sta sw=4 ts=4 :
|
||||
#
|
||||
|
||||
{.passL:"-lkuzu".}
|
||||
|
||||
when defined( futharkWrap ):
|
||||
import futhark, os
|
||||
|
||||
importc:
|
||||
outputPath currentSourcePath.parentDir / "kuzu" / "0.8.2.nim"
|
||||
"kuzu.h"
|
||||
else:
|
||||
include "kuzu/0.8.2.nim"
|
||||
|
||||
import
|
||||
std/strformat
|
||||
|
||||
include
|
||||
"kuzu/constants.nim",
|
||||
"kuzu/types.nim",
|
||||
"kuzu/config.nim",
|
||||
"kuzu/database.nim",
|
||||
"kuzu/connection.nim",
|
||||
"kuzu/queries.nim"
|
||||
|
||||
when isMainModule:
|
||||
echo "Nim-Kuzu version: ", KUZU_VERSION,
|
||||
". Expected library version: ", KUZU_EXPECTED_LIBVERSION, "."
|
||||
echo "Installed Kuzu library version ", KUZU_LIBVERSION,
|
||||
" (storage version ", KUZU_STORAGE_VERSION, ")"
|
||||
if KUZU_EXPECTED_LIBVERSION == KUZU_LIBVERSION:
|
||||
echo "Versions match!"
|
||||
else:
|
||||
echo "This library wraps a different version of Kuzu than what is installed."
|
||||
echo "Behavior may be unexpected!"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue