Discover Packages
github.com/lancer-kit/armory
internal
examples
package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Nov 24, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type User struct {
ID int64 `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Email string `db:"email" json:"email"`
Age int `db:"age" json:"age"`
RowCount int64 `db:"row_count" json:"-"`
}
UserQ is a interface for
interacting with the `users` table.
NewUserQ returns the new instance of the `UserQ`.
ByAge adds in the query filter by the `age` column.
Insert adds new row into the `users` table.
SetPage sets the limitation of select
by the parameters from `db.PageQuery`.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.