Official Go language binding for Kuzu. Kuzu an embeddable property graph database management system built for query speed and scalability. For more information, please visit the Kuzu GitHub repository or the Kuzu website.
go get github.com/kuzudb/go-kuzu
An example project is available in the example directory.
To run the example project, you can use the following command:
cd example
go run main.go
The full documentation is available at pkg.go.dev.
To run the tests, you can use the following command:
go test -v
For Cgo to properly work on Windows, MSYS2 with UCRT64
environment is required. You can follow the instructions below to set it up:
- Install MSYS2 from here.
- Install Microsoft Visual C++ 2015-2022 Redistributable (x64) from here.
- Install the required packages by running the following command in the MSYS2 terminal:
pacman -S mingw-w64-ucrt-x86_64-go mingw-w64-ucrt-x86_64-gcc
- Add the path to
kuzu_shared.dll
to yourPATH
environment variable. You can do this by running the following command in the MSYS2 terminal:This is required to run the test cases and examples. If you are deploying your application, you can also copy theexport PATH="$(pwd)/lib/dynamic/windows:$PATH"
kuzu_shared.dll
file to the same directory as your executable or to a directory that is already in thePATH
.
For an example of how to properly set up the environment, you can also refer to our CI configuration file here.
We welcome contributions to go-kuzu. By contributing to go-kuzu, you agree that your contributions will be licensed under the MIT License. Please read the contributing guide for more information.