| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |/ |
|
| | |
|
| | |
|
| | |
|
| |\
| |
| | |
Allow `bind` to accept options and add BaseType handling for structs
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| |/
|/| |
readme: fix git submodule setup instructions
|
| |/
|
|
| |
Fixes #54
|
| |\
| |
| | |
stop using anytype for options
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The need for using `options: anytype` in readXYZ functions is so that
they can be used both when called by `one`/`next` or `oneAlloc`/`nextAlloc`.
In the first case there won't be an allocator member in the tuple, in
the latter there will be.
But, since the public API takes an explicit allocator argument in
`oneAlloc`/`nextAlloc` there's no need to take a `anytype` options in
the public API.
This commit changes the public API to always use `QueryOptions`.
This commit also adds a bunch of explicit comptime checks to validate
the options type passed to the readXYZ functions. Especially important
is checking the presence of the `allocator` field if the function
requires an allocator.
Finally, cleanup some stuff and reorder arguments in `readPointer`.
|
| |\
| |
| | |
fix for ziglang/zig#9618
|
| |/ |
|
| |\ |
|
| |/ |
|
| |\ |
|
| |/ |
|
| |\ |
|
| | |
| |
| |
| |
| | |
oneAlloc/nextAlloc can allocate memory so are allowed to use text
backed enums.
|
| |/
|
|
| |
one/next can't alloc so they are limited to integer values.
|
| | |
|
| |\
| |
| | |
sqlite: interpret database path in init flags as uri
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
To avoid the need for introducing multiple sqlite.Mode's for addressing
all the different possible ways one may initialize a SQLite database,
enable the flag SQLITE_OPEN_URI by default.
This allows for initialization options which are not addressed by
InitFlags as of yet, such as the option to initialize a shared in-memory
SQLite database instance that may be shared across connections in the
same address space, to be set via. URI query parameters.
e.g.
sqlite.Db.init({
.mode = .{ .File = "file:hello.db?mode=memory&cache=shared" },
.open_flags = .{ .create = true, .write = true },
.threading_mode = .MultiThread,
});
|
| |\|
| |
| | |
sqlite: expose c import, add 'shared_cache' to init flags
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
Expose the C import to sqlite.h. Making a separate call to @cImport
outside of the library will cause Zig to regenerate all definitions in
sqlite.h. The regenerated definitions (i.e. structs, enums) would not
be equivalent to the definitions imported in by this library. This
causes problems in the case one wants to manually wrap SQLite structs,
pointers, and enums with the helpers provided in this library.
Added 'shared_cache' to init flags in order to allow having the same
backing table and statement cache shared amongst all connections pointed
to the same database file.
|
| |\
| |
| | |
Add support for enum backed columns
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| | |
enable CI for macOS
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
We don't do much when choosing in memory or not, sqlite does all the
work of managing the data, so there's not much point for us testing both
modes.
This will also have the benefit of reducing the time needed to run the
CI, especially for aarch64 which is super slow.
|
| | | |
|
| |/ |
|
| |\
| |
| | |
Various fixes
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|