Skip to content

A thin Zig wrapper around the MongoDB C driver

License

Notifications You must be signed in to change notification settings

trashbirdecology/mongoz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 done the 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.

About

A thin Zig wrapper around the MongoDB C driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Zig 97.4%
  • Shell 2.6%