My qslite 0.14.dev

Hello:

I thank “nDimensional
it is on this basis that I undertook to work, it remains simple, it is not a real duplication, because I updated so that it works from zig 0.14.dev.
I added some functions:

pub isDir( vdir : []const u8) bool ...

pub isDbxist( vdir : []const u8, fn_file_name:[]const u8) bool ...

pub open(vdir : []const u8, name: []const u8) !Database ...

pub fn open(vdir : []const u8, name: []const u8) !Database ...

pub fn openTmp(tDir: std.fs.Dir, name: []const u8) !Database ...

pub fn cbool(data : i32 ) bool ...

TEST. Testsql.zig :

a complete test cycle is made available to you
and functional.

zig_sqlite

2 Likes

hello

switch (binding.type) {
                        .int32 => try stmt.bindInt32(idx, @intCast(value)),
                        .int64 => try stmt.bindInt64(idx, @intCast(value)),
                        .float64 => try stmt.bindFloat64(idx, @floatCast(value)),
                        .blob => try stmt.bindBlob(idx, value),
                        .text => try stmt.bindText(idx, value),
                        .numeric => try stmt.bindNumeric(idx, value),
                        .date => try stmt.bindDate(idx, value),
                        .boolean => try stmt.bindBoolean(idx, value),
                    }

pub const Blob = struct { data: const u8 };
pub const Text = struct { data: const u8 };
pub const Numeric = struct { data: const u8 };
pub const Date = struct { data: const u8 };
pub const Bool = struct { data: bool};

2025-01-07 01:00 update Implementation of extended procedures of the zig “libsql” lib while respecting the structure of SQLITE3