Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model describes the data model for a table/object.
func New ¶
func New(schema interface{}, table string, mq ModelQueries) *Model
New creates a new Model for a specific table, along with the CRUD queries for interacting with that model.
type ModelQueries ¶
type ModelQueries struct {
Insert string
}
ModelQueries holds the different types of sql queries to perform tasks such as insert on a model
Click to show internal directories.
Click to hide internal directories.