Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-leroux/mongoz
A thin Zig wrapper around the MongoDB C driver
https://github.com/s-leroux/mongoz
client-library mongo mongodb zig ziglang
Last synced: about 1 month ago
JSON representation
A thin Zig wrapper around the MongoDB C driver
- Host: GitHub
- URL: https://github.com/s-leroux/mongoz
- Owner: s-leroux
- License: mit
- Created: 2022-04-26T18:03:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-01T18:19:09.000Z (over 2 years ago)
- Last Synced: 2023-03-23T13:33:03.343Z (almost 2 years ago)
- Topics: client-library, mongo, mongodb, zig, ziglang
- Language: Zig
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The goal of this project is to add a thin Zig wrapper arround the Mongo C driver to make it easier to use from Zig programs.
It is also an educatonal project while I learn the Zig languages --
don't hesitate to submit pull requests if you think I didn't do things the Idiomatic Zig way!## Run tests
### Debian```
apt-get install libmongoc-1.0-0 libmongoc-dev
zig build test
```The tests are in the `src/main.zig` source file.
They assume you have a clean MongoDB instance listening on 127.0.0.1:27017
and accessible with the mongoadmin/mongopass credentials.The easiest way to achieve that is starting a MongoDB Docker container as shown
in the `start-mongo.sh` shell script.