https://github.com/dennis-krasnov/sqlitez
Another thin SQLite wrapper for Zig
https://github.com/dennis-krasnov/sqlitez
sqlite zig
Last synced: 11 months ago
JSON representation
Another thin SQLite wrapper for Zig
- Host: GitHub
- URL: https://github.com/dennis-krasnov/sqlitez
- Owner: Dennis-Krasnov
- License: 0bsd
- Created: 2025-07-12T15:44:35.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-07-13T16:51:04.000Z (12 months ago)
- Last Synced: 2025-07-13T18:37:35.902Z (12 months ago)
- Topics: sqlite, zig
- Language: C
- Homepage:
- Size: 2.38 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlitez
- Inspired by https://github.com/karlseguin/zqlite.zig
- Vendors the latest version of sqlite
- Fork if you want different SQLite compilation flags
## Zig Version
sqlitez targets Zig 0.14.
## Installation
1. Add gibe as a dependency in your `build.zig.zon`:
```bash
zig fetch --save git+https://github.com/Dennis-Krasnov/sqlitez#master
```
2. In your `build.zig`, add the `sqlitez` module as a dependency you your program:
```zig
const httpz = b.dependency("sqlitez", .{
.target = target,
.optimize = optimize,
});
exe_mod.addImport("sqlitez", gibe.module("sqlitez"));
```
Update by re-running step 1.
## Test
```bash
zig build test --summary all
```
## Examples
```bash
zig build run-single-row
zig build run-many-rows
zig build run-mutation
zig build run-disk
zig build test-examples --summary all
```