Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Araq/ormin

Ormin -- An ORM for Nim.
https://github.com/Araq/ormin

Last synced: 10 days ago
JSON representation

Ormin -- An ORM for Nim.

Awesome Lists containing this project

README

        

ormin
=====

Prepared SQL statement generator for Nim. A lightweight ORM.

Features:

- Compile time query checking: Types as well as table
and column names are checked, no surprises at runtime!
- Automatic join generation: Ormin knows the table
relations and can compute the "natural" join for you!
- Nim based DSL for queries: No syntax errors at runtime,
no SQL injections possible.
- Generated prepared statements: As fast as low level
hand written API calls!
- First class JSON support: No explicit conversions
from rows to JSON objects required.

Todo:

- Add support for UNION, INTERSECT and EXCEPT.
- Better support for complex nested queries.
- Write mysql backend.

Copyright (c) 2017 Andreas Rumpf.
All rights reserved.