{"repo":"karlseguin/zuckdb.zig","free":true,"listed":false,"github":"https://github.com/karlseguin/zuckdb.zig","clone":"git clone https://github.com/karlseguin/zuckdb.zig.git","description":"A DuckDB driver for Zig","language":"C","stars":186,"topics":["duckdb","zig","zig-library","duckdb-driver","zig-package"],"license":"MIT","category":"data-pipelines","readme_excerpt":"Zig driver for DuckDB. Zig Version This is for Zig 0.16.0. Use the zig-0.15 branch for Zig 0.15 or the dev which may or may not be up to date with zig dev. Quick Example Any non-primitive value that you get from the row are valid only until the next call to next or deinit . Install This library is tested with DuckDB 1.5.2. You can either link to an existing libduckdb on your system, or have zuckdb download and build DuckDB for you (this will take time.) 1) Add zuckdb as a dependency in your build.zig.zon : Link to libduckdb 1) Download the libduckdb from the DuckDB download page . 2) Place the duckdb.h file and the libduckdb.so (linux) or libduckdb.dylib (mac) in your project's lib folder. 3) Add this in build.zig : Automatically fetch and buikd DuckDB 1) Add this in build.zig : Static Linking It's also possible to statically link DuckDB. In order to do this, you must build DuckDB yourself, in order to compile it using Zig C++ and using the bundle-library target When this finished (it will take several minutes), you can copy build/release/libduckdb bundle.a and src/include/duckdb.h to your project's lib folder. Rename libduckdb bundle.a to libduckdb.a . Finally, Add the following to your build.zig : DB The DB is used to initialize the database, open connections and, optionally, create a connection pool. init Creates or opens the database. The 3rd parameter is for options. The available options, with their default, are: access mode - Sets the access mode DuckDB configuration. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/karlseguin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/karlseguin/zuckdb.zig/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}