{"repo":"Tony-ArtZ/zorm","free":true,"listed":false,"github":"https://github.com/Tony-ArtZ/zorm","clone":"git clone https://github.com/Tony-ArtZ/zorm.git","description":"A Zig ORM with custom schema support","language":"Zig","stars":38,"topics":["database","mongodb","mongodb-atlas","orm","orm-library","orms","pgadmin4","postgres","postgresql","sql"],"license":"MIT","category":"databases-storage","readme_excerpt":"ZORM Note: ZORM is a work in progress (WIP). For schema syntax highlighting and LSP support, check out the ZORM VSCode Extension and the Github repo. ZORM is a Zig ORM library with a custom schema file support. You can define your schema in a readable .zorm file and let the zorm-generator generate the necessary typings for you. Currently ZORM only supports Postgres and Sqlite3 . More functionality and backends are being worked on. Features - Static library for embedding in Zig projects - Generator tool to convert .zorm schema files to Zig code - Supports both SQLite and PostgreSQL backends - Easily extensible and integrates with Zig build system Getting Started 1. Add as Dependency Add ZORM to your build.zig.zon using : 2. Add ZORM to your build.zig 3. Generating the schema You have two options to generate Zig code from your .zorm schema: Option 1: Build and run the generator executable 1. Add Generator Artifact to your build step: 2. Run the generator with your schema and output paths: Option 2: Use the generator programmatically in Zig Import and call the generator in your Zig code: Important: When building your executable, make sure to link the appropriate C library headers for your backend (SQLite or PostgreSQL). For SQLite, link -lsqlite3 ; for PostgreSQL, link -lpq and ensure the headers are available. This is required for successful compilation and runtime. Schema Definition ( schema.zorm ) Define your data models and backend in a .zorm file. For example: - The [config","default_branch":null,"files":null,"tree":[],"storefront":"/r/Tony-ArtZ","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Tony-ArtZ/zorm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}