feat: zig-sqlite.

This commit is contained in:
2026-04-24 17:26:20 -04:00
parent 8d1b0ffa2d
commit 41944af80c
36 changed files with 22057 additions and 1 deletions

View File

@@ -26,6 +26,11 @@ pub fn build(b: *std.Build) void {
.target = target,
});
const sqlite = b.dependency("sqlite", .{
.target = target,
.optimize = optimize,
});
// This creates a module, which represents a collection of source files alongside
// some compilation options, such as optimization mode and linked system libraries.
// Zig modules are the preferred way of making Zig code available to consumers.
@@ -49,6 +54,8 @@ pub fn build(b: *std.Build) void {
},
});
mod.addImport("sqlite", sqlite.module("sqlite"));
// Here we define an executable. An executable needs to have a root module
// which needs to expose a `main` function. While we could add a main function
// to the module defined above, it's sometimes preferable to split business