diff options
| author | 2021-08-27 03:43:30 +0900 | |
|---|---|---|
| committer | 2021-08-27 03:43:30 +0900 | |
| commit | 17ecc483cf725f370d0bceda414fec4aed8dc331 (patch) | |
| tree | fb7c3a3dd19f69cdba4c573f4f3f119760e914db /error.zig | |
| parent | sqlite: expose c import, add 'shared_cache' to init flags (diff) | |
| download | zig-sqlite-17ecc483cf725f370d0bceda414fec4aed8dc331.tar.gz zig-sqlite-17ecc483cf725f370d0bceda414fec4aed8dc331.tar.xz zig-sqlite-17ecc483cf725f370d0bceda414fec4aed8dc331.zip | |
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,
});
Diffstat (limited to 'error.zig')
0 files changed, 0 insertions, 0 deletions