Nim bindings to the LadybugDB embedded graph database. https://ladybugdb.com/
Find a file
mahlon 6d34b081bb Work on prepared statements.
(Still not working 100%, but getting close.)

Additionally, start on the README, fix some type member visibility, add some
additional tests, tag some FIXMEs for where type conversions will take
place, and add `#rewind` for the query iterator.

FossilOrigin-Name: 490f27a4792d5243d82d90dcb12be1074c945c74d7fa63dd5baaf942ac42d7c9
2025-03-23 21:21:05 +00:00
experiments/imdb Start adding tests, using testament. 2025-03-18 02:21:06 +00:00
src Work on prepared statements. 2025-03-23 21:21:05 +00:00
tests Work on prepared statements. 2025-03-23 21:21:05 +00:00
tmp Initial commit, adding work to date. 2025-03-15 20:26:58 +00:00
kuzu.nimble Work on prepared statements. 2025-03-23 21:21:05 +00:00
README.md Work on prepared statements. 2025-03-23 21:21:05 +00:00

Nim Kuzu

home
https://code.martini.nu/fossil/nim-kuzu
github_mirror
https://github.com/mahlonsmith/nim-kuzu

Description

This is a Nim binding for the Kuzu graph database library.

Kuzu is an embedded graph database built for query speed and scalability. It is optimized for handling complex join-heavy analytical workloads on very large graphs, with the following core feature set:

  • Property Graph data model and Cypher query language
  • Embedded (in-process) integration with applications
  • Columnar disk-based storage
  • Columnar, compressed sparse row-based (CSR) adjacency list/join indices
  • Vectorized and factorized query processor
  • Novel and very fast join algorithms
  • Multi-core query parallelism
  • Serializable ACID transactions

For more information about Kuzu itself, see its documentation.

Prerequisites

  • A functioning Nim >= 2 installation

Installation

$ nimble install kuzu

Usage

[!TODO]- Human readable usage docs!

... The nim generated source isn't great when pulling in the C wrapper auto-gen stuff.

If you're here and reading this before I have proper docs written, see the tests/ for some working examples.

Contributing

You can check out the current development source with Fossil via its home repo, or with Git/Jujutsu at its project mirror

After checking out the source, uncomment the development dependencies from the kuzu.nimble file, and run:

$ nimble setup

This will install dependencies, and do any other necessary setup for development.

Authors

A note of thanks to @mantielero on Github, who has a Kuzu binding for an early KuzuDB (0.4.x) that I found after starting this project.

License

Copyright (c) 2025 Mahlon E. Smith All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of the author/s, nor the names of the project's contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.