| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | 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, }); | |||||
| * | 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. | |||||
| * | 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 | ||
| | | ||||||
| * | Merge pull request #36 from nektro/master | 2021-08-12 | 1 | -11/+10 | ||
| |\ | | | | | Various fixes | |||||
| | * | update tests for new use of `Db.init` | 2021-08-11 | 1 | -6/+2 | ||
| | | | ||||||
| | * | adding allocator to Db.QueryOptions was a mistake | 2021-08-11 | 1 | -1/+0 | ||
| | | | ||||||
| | * | 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 | ||
| | | | ||||||
| * | | 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 | ||
| | | | ||||||
| * | | document the ZeroBlob type | 2021-08-09 | 1 | -0/+17 | ||
| | | | ||||||
| * | | clarify the OpenFlags | 2021-08-09 | 1 | -0/+5 | ||
| | | | ||||||
| * | | clarify Mode documentation | 2021-08-09 | 1 | -0/+4 | ||
| |/ | ||||||
| * | modify exec to take a QueryOptions | 2021-08-02 | 1 | -21/+47 | ||
| | | | | | Fixes #35 | |||||
| * | fix 'unused variable' errors | 2021-06-25 | 1 | -6/+1 | ||
| | | ||||||
| * | fix 'redundant comptile' error | 2021-06-25 | 1 | -2/+2 | ||
| | | ||||||
| * | fix 'unused function parameter' error | 2021-06-25 | 1 | -0/+5 | ||
| | | ||||||
| * | set the eval branch quota in the return type block | 2021-05-30 | 1 | -5/+10 | ||
| | | | | | | | | | | | `prepare` and `prepareWithDiags` parse the query at comptime in the return type definition. This exceeds the branch quota since https://github.com/ziglang/zig/commit/b11ac9c5bfb4048eb4aa561f8b3b058a76787f7e. Use a block and `@setEvalBranchQuota` to work around this. Fixes #30. | |||||
| * | all: fix tests for latest zig | 2021-05-09 | 1 | -77/+77 | ||
| | | ||||||
| * | attempt to make the threading mode error clearer | 2021-05-03 | 1 | -1/+1 | ||
| | | ||||||
| * | workaround compiler bug | 2021-04-27 | 1 | -3/+9 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | This workaround allows one to write this: const Foobar = struct { foo: usize, bar: []const u8, }; const row = try stmt.one(Foobar); Where the first field in the struct (here `foo`) is either an integer type, a float type or a boolean. Moving the first field of this type to second position resolves the bug. This is because readInt, readFloat and readBool have an empty error set and cause this bug to trigger. Removing the error altogether also triggers the bug so we define an explicit error set. If we actually want to return an error from these functions we'll simply remove the workaround. See https://github.com/ziglang/zig/issues/5149 | |||||
| * | fix error name | 2021-04-23 | 1 | -1/+1 | ||
| | | ||||||
| * | Allow reading into static size arrays as long as size matches | 2021-04-23 | 1 | -11/+12 | ||
| | | ||||||
| * | improve logs in Statement.deinit and Statement.reset | 2021-04-17 | 1 | -3/+6 | ||
| | | ||||||
| * | fix DetailedError and Diagnostics formatting | 2021-04-17 | 1 | -4/+8 | ||
| | | ||||||
| * | replace the pragma argument with a nullable string | 2021-04-17 | 1 | -18/+15 | ||
| | | ||||||
| * | fix documentation | 2021-04-17 | 1 | -1/+1 | ||
| | | ||||||
| * | simplify iterator usage in code and doc | 2021-02-27 | 1 | -10/+5 | ||
| | | ||||||
| * | add Diagnostics | 2021-02-27 | 1 | -11/+130 | ||
| | | ||||||
| * | store the database handle in Iterator and Statement | 2021-02-27 | 1 | -0/+4 | ||
| | | ||||||
| * | add Blob.reopen | 2021-01-31 | 1 | -17/+53 | ||
| | | ||||||
| * | add incremental i/o on blob | 2021-01-31 | 1 | -0/+204 | ||
| | | ||||||
| * | add the Db.getLastInsertRowID method | 2021-01-31 | 1 | -1/+24 | ||
| | | ||||||
| * | rework of the test database initialization | 2021-01-24 | 1 | -45/+48 | ||
| | | | | | | | | | The hardcoded path we used is invalid on Windows, instead use a temp directory from std.testing.tmpDir. Need to do some refactoring too because now we compute the database file path and therefore need an allocator while the Mode is in use in Db.init. | |||||
| * | allow binding and reading optionals | 2021-01-06 | 1 | -2/+32 | ||
| | | | | | Also allow binding the '(null)' value. | |||||
| * | add a test for optionals | 2021-01-06 | 1 | -0/+27 | ||
| | | ||||||
| * | fix compile error in readField | 2021-01-06 | 1 | -1/+1 | ||
| | | ||||||
| * | add a test that reads only pointers | 2021-01-06 | 1 | -0/+35 | ||
| | | ||||||
| * | implement reading a value into a one-element pointer | 2021-01-06 | 1 | -1/+6 | ||
| | | ||||||
| * | add readField | 2021-01-06 | 1 | -15/+20 | ||
| | | ||||||
| * | reorder fields to workaround a compiler bug | 2021-01-06 | 1 | -17/+17 | ||
| | | ||||||
| * | logging file open {} -> {s} | 2021-01-05 | 1 | -1/+1 | ||
| | | ||||||