/s3db.zig

Zig wrapper of SQLite/Go extension that stores tables in an S3-compatible object store

Primary LanguageZigMIT LicenseMIT

s3db.zig

zig version reference Zig License: MIT

Zig wrapper lib/sample for SQLite/Go extension that stores tables in an S3-compatible object store

usage

var db = try sqlite.Db.init(.{
    .mode = sqlite.Db.Mode{ .Memory = {} },
    .open_flags = .{ .write = true },
});
defer db.deinit();
try s3db.load(db);

try db.exec("CREATE VIRTUAL TABLE user USING s3db (columns='id integer primary key, age integer, name text')", .{}, .{});
...