genmai
genmai copied to clipboard
Simple, better and easy-to-use ORM library for Golang
It's really easy to use, but the reflection is really slow.
this project is cool, but it has bug everywhere! I tried two function with Mysql, it has two bugs. i fixed one. ``` diff --git a/genmai.go b/genmai.go index 0a2b972..19226c8 100644...
``` type Test { Reference string `db:"unique" column:"reference"` Starts time.Time `column:"starts"` Ends time.Time `column:"ends"` } ``` The above stores fine but upon querying I get: ``` ERROR: sql: Scan error...
I implemented _GROUP BY_ clause referring _ORDER BY_ clause. To be useful with GroupBy, I think we need to give the built in function in sql with columns. genmai already...
For model update test, I want to mock current time getter function, but now, it's private. Could you make it public? e.g. https://github.com/dgrijalva/jwt-go/blob/master/token.go
If primarykey is an integer , will be removed also have been included in the structure , I want to directly INSERT an integer value . Use for example, INSERT...
will the before or after hook method be called if the insert occours from some other connection but the present connection is still open.