| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | add inserting and reading test for struct BaseType support | 2021-10-06 | 1 | -0/+57 | ||
| | | | ||||||
| | * | add BaseType support for structs | 2021-09-23 | 1 | -0/+7 | ||
| | | | ||||||
| | * | add iteratorAlloc and execAlloc | 2021-09-23 | 1 | -2/+30 | ||
| | | | ||||||
| | * | add options parameter to bind/bindField | 2021-09-23 | 1 | -9/+9 | ||
| | | | ||||||
| * | | build: fix for latest zig | 2021-10-05 | 1 | -2/+3 | ||
| | | | ||||||
| * | | Merge pull request #55 from vrischmann/fix-readme | 2021-10-01 | 1 | -1/+2 | ||
| |\ \ | |/ |/| | readme: fix git submodule setup instructions | |||||
| | * | readme: fix git submodule setup instructions | 2021-10-01 | 1 | -1/+2 | ||
| |/ | | | | Fixes #54 | |||||
| * | Merge pull request #48 from vrischmann/clarify-options | 2021-09-07 | 1 | -40/+54 | ||
| |\ | | | | | stop using anytype for options | |||||
| | * | more minor cleanups | 2021-09-07 | 1 | -10/+4 | ||
| | | | ||||||
| | * | Stop using anytype in the public API. | 2021-09-07 | 1 | -32/+52 | ||
| |/ | | | | | | | | | | | | | | | | | | | | | 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`. | |||||
| * | Merge pull request #47 from vrischmann/fix-usingnamespace | 2021-09-04 | 2 | -12/+15 | ||
| |\ | | | | | fix for ziglang/zig#9618 | |||||
| | * | fix for ziglang/zig#9618 | 2021-09-04 | 2 | -12/+15 | ||
| |/ | ||||||
| * | Merge branch 'fix-read-array' | 2021-08-31 | 1 | -2/+2 | ||
| |\ | ||||||
| | * | fix the compile error from readArray | 2021-08-31 | 1 | -2/+2 | ||
| |/ | ||||||
| * | Merge branch 'fix-latest-zig' | 2021-08-27 | 1 | -2/+5 | ||
| |\ | ||||||
| | * | fix build script for latest zig | 2021-08-27 | 1 | -2/+5 | ||
| |/ | ||||||
| * | Merge branch 'read-direct-enum' | 2021-08-26 | 1 | -1/+99 | ||
| |\ | ||||||
| | * | implement reading a text column into an enum value directly | 2021-08-26 | 1 | -0/+39 | ||
| | | | | | | | | | | | oneAlloc/nextAlloc can allocate memory so are allowed to use text backed enums. | |||||
| | * | implement reading an integer column into an enum value directly | 2021-08-26 | 1 | -1/+60 | ||
| |/ | | | | one/next can't alloc so they are limited to integer values. | |||||
| * | fix documentation | 2021-08-26 | 1 | -4/+2 | ||
| | | ||||||
| * | Merge pull request #44 from lithdew/master | 2021-08-26 | 1 | -1/+1 | ||
| |\ | | | | | sqlite: interpret database path in init flags as uri | |||||
| | * | sqlite: interpret database path in init flags as uri | 2021-08-27 | 1 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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, }); | |||||
| * | | Merge pull request #43 from lithdew/master | 2021-08-25 | 1 | -1/+10 | ||
| |\| | | | | | sqlite: expose c import, add 'shared_cache' to init flags | |||||
| | * | sqlite: expose c import, add 'shared_cache' to init flags | 2021-08-26 | 1 | -1/+10 | ||
| |/ | | | | | | | | | | | | | 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. | |||||
| * | Merge pull request #42 from nektro/master | 2021-08-25 | 3 | -16/+71 | ||
| |\ | | | | | Add support for enum backed columns | |||||
| | * | dry up the updated constraint check | 2021-08-24 | 1 | -14/+11 | ||
| | | | ||||||
| | * | fix type constraint checks for container and non-container types | 2021-08-24 | 1 | -2/+18 | ||
| | | | ||||||
| | * | enum tests now pass without orelse in read | 2021-08-24 | 1 | -1/+1 | ||
| | | | ||||||
| | * | fix bind index | 2021-08-24 | 1 | -2/+2 | ||
| | | | ||||||
| | * | tests- add enum field cases | 2021-08-23 | 1 | -12/+31 | ||
| | | | ||||||
| | * | tests- use select * when pulling into a struct | 2021-08-23 | 1 | -2/+2 | ||
| | | | ||||||
| | * | add support for enum fields and lay groundwork for #39 | 2021-08-23 | 1 | -1/+21 | ||
| | | | ||||||
| | * | add zigmod to gitignore | 2021-08-23 | 2 | -0/+3 | ||
| |/ | ||||||
| * | Merge pull request #38 from vrischmann/ci-macos | 2021-08-18 | 6 | -40/+12 | ||
| |\ | | | | | enable CI for macOS | |||||
| | * | ci: stop testing both memory and filesystem | 2021-08-18 | 5 | -39/+3 | ||
| | | | | | | | | | | | | | | | | | | | 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. | |||||
| | * | ci: enable macOS | 2021-08-18 | 1 | -2/+2 | ||
| | | | ||||||
| | * | build: handle macos in the test targets | 2021-08-18 | 1 | -0/+8 | ||
| |/ | ||||||
| * | Merge pull request #36 from nektro/master | 2021-08-12 | 4 | -13/+14 | ||
| |\ | | | | | Various fixes | |||||
| | * | update README with new init syntax as well | 2021-08-11 | 1 | -2/+1 | ||
| | | | ||||||
| | * | update tests for new use of `Db.init` | 2021-08-11 | 1 | -6/+2 | ||
| | | | ||||||
| | * | actions- add `fail-fast: false` to matrix steps | 2021-08-11 | 1 | -0/+2 | ||
| | | | ||||||
| | * | adding allocator to Db.QueryOptions was a mistake | 2021-08-11 | 1 | -1/+0 | ||
| | | | ||||||
| | * | git- ignore zig-cache and zig-out | 2021-08-11 | 1 | -0/+1 | ||
| | | | ||||||
| | * | clarify bind marker len compile error | 2021-08-09 | 1 | -1/+4 | ||
| | | | ||||||
| | * | options asks for `allocator` field but its not there | 2021-08-09 | 1 | -0/+1 | ||
| | | | ||||||
| | * | iterator- pass along options object | 2021-08-09 | 1 | -1/+1 | ||
| | | | ||||||
| | * | make `init` return a Self instead of updating a pointer | 2021-08-09 | 1 | -3/+3 | ||
| | | | ||||||
| * | | Merge pull request #37 from vrischmann/improve-doc | 2021-08-09 | 1 | -18/+52 | ||
| |\ \ | |/ |/| | Improve doc | |||||
| | * | move the documentation to Db.openBlob since that is the method user will call | 2021-08-09 | 1 | -19/+26 | ||
| | | | ||||||
| | * | clarify Blob.open | 2021-08-09 | 1 | -0/+1 | ||
| | | | ||||||