Zig relational mapper.
Find a file
Madeorsk edcc75f003
Add visual diagrams for relationships.
Visual diagrams could help readers to understand associations between models more easily.

Closes #10
2024-11-27 19:49:56 +01:00
docs Add visual diagrams for relationships. 2024-11-27 19:49:56 +01:00
src Rename relations to relationships. 2024-11-27 15:26:20 +01:00
tests Rename relations to relationships. 2024-11-27 15:26:20 +01:00
.gitignore Create ZRM, repositories and its related queries. 2024-10-16 12:01:16 +02:00
build.zig Create ZRM, repositories and its related queries. 2024-10-16 12:01:16 +02:00
build.zig.zon Update pg.zig to latest 0.13 version. 2024-11-26 16:01:43 +01:00
LICENSE Create ZRM, repositories and its related queries. 2024-10-16 12:01:16 +02:00
logo.svg Setup and write documentation website, logo update. 2024-11-27 17:34:00 +01:00
README.md Add links to official documentation in README. 2024-11-27 17:56:09 +01:00

ZRM logo

ZRM

Documentation | API

Zig relational mapper

ZRM is part of zedd, a collection of useful libraries for zig.

ZRM

ZRM provides a simple interface to relational databases in Zig. Define your repositories and easily write queries to retrieve and save complex Zig structures.

Versions

ZRM 0.2.0 is made and tested with zig 0.13.0.

Work in progress

ZRM aims to handle a lot for you, but it takes time to make. Have a look to the issues to see what is currently planned or being worked on.

How to use

Install

In your project directory:

$ zig fetch --save https://code.zeptotech.net/zedd/zrm/archive/v0.2.0.tar.gz

In build.zig:

// Add zrm dependency.
const zrm = b.dependency("zrm", .{
	.target = target,
	.optimize = optimize,
});
exe.root_module.addImport("zrm", zrm.module("zrm"));

Documentation

A full documentation can be found on zedd.zeptotech.net/zrm.

Examples

Some examples can be found in tests directory: