Last active
January 22, 2019 04:48
-
-
Save shanev/53f261482d709082c1259380d1f50177 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RegisterModel creates a table for a type. | |
// A table is automatically created based on the passed in struct fields. | |
func (c *Client) RegisterModel(model interface{}) error { | |
return c.CreateTable(model, &orm.CreateTableOptions{ | |
Temp: false, | |
IfNotExists: true, | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment