The mongodm package is an object document mapper (ODM) for mongodb written in Go which uses the official mgo adapter.
https://github.com/zebresel-com/mongodm
Features
- 1:1, 1:n struct relation mapping and embedding
- call
Save()
,Update()
,Delete()
andPopulate()
directly on document instances - call
Select()
,Sort()
,Limit()
,Skip()
andPopulate()
directly on querys - validation (default and custom with regular expressions) followed by translated error list (customizable)
- population instruction possible before and after querys
Find()
,FindOne()
andFindID()
- default handling for
ID
,CreatedAt
,UpdatedAt
andDeleted
attribute - extends
*mgo.Collection
- default localisation (fallback if none specified)
- database authentication (user and password)
- multiple database hosts on connection
There is no ads to display, Please add some