Atılgan aka Enterprise is a new ORM for postgresql databases. For speed and lightness.
Features
A small number of auto generated database model structs and methods
Create, Get, Update, Delete and List functions on table
It can load Relation tables and filter them with single query
Developer friendly helper methods on models
Simple aggregate functionality
Simple transaction commit and rollback
Customizable hooks
Atlas migrations
Unique Relation system
Fastest ORM in golang for postgresql
Generating Models
First create a package. Create one file for every table. The function name and file name should match.
After write your models. We recommend to create a new package with name generate and put a generate.go for generating models you want.
It will go to create a models package and write files in to it. For examples Enterprise Example.
Migration
For migration we recommend to create a migrate named package and put this script into it.
Execute the script and it will create a directory called migrations and write raw sql for migration.
Further questions please look to Atlas.
RoadMap
Version 1.0.0 Roadmap
V0.1.0-alpha
Add simple unit tests
Hook system functions to every model db operation.
Pk and fk on migration table
V0.1.0
Add bulk Insert
V0.2.0
Choose Join Type
V0.3.0
Json field
[]byte field
V0.4.0
Use different clients on Read and Write db operations
V0.5.0
Custom go type on DB
V0.6.0
Nested Transactions, Save Point, RollbackTo to Saved Point