Skip to content

Araq/ormin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.