Something went wrong. Try again.
An example backend for sqlite
Something went wrong. Try again.
jetkv-SQLite build.zig
1234567891011121314151617181920212223242526272829const std = @import("std");
pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{});
const jetkv = b.dependency("jetkv", .{ .target = target, .optimize = optimize }).module("jetkv"); const zqlite = b.dependency("zqlite", .{ .target = target, .optimize = optimize }).module("zqlite");
const mod = b.addModule("SQLite", .{ .root_source_file = b.path("src/root.zig"), .target = target, .imports = &.{ .{ .name = "jetkv", .module = jetkv }, .{ .name = "zqlite", .module = zqlite }, }, });
const test_step = b.step("test", "Run unit tests"); test_step.dependOn( &b.addRunArtifact( b.addTest(.{ .name = "sqlite", .root_module = mod, }), ).step, );}