Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func FirstName(v string) predicate.User
- func FirstNameContains(v string) predicate.User
- func FirstNameContainsFold(v string) predicate.User
- func FirstNameEQ(v string) predicate.User
- func FirstNameEqualFold(v string) predicate.User
- func FirstNameGT(v string) predicate.User
- func FirstNameGTE(v string) predicate.User
- func FirstNameHasPrefix(v string) predicate.User
- func FirstNameHasSuffix(v string) predicate.User
- func FirstNameIn(vs ...string) predicate.User
- func FirstNameLT(v string) predicate.User
- func FirstNameLTE(v string) predicate.User
- func FirstNameNEQ(v string) predicate.User
- func FirstNameNotIn(vs ...string) predicate.User
- func GithubToken(v string) predicate.User
- func GithubTokenContains(v string) predicate.User
- func GithubTokenContainsFold(v string) predicate.User
- func GithubTokenEQ(v string) predicate.User
- func GithubTokenEqualFold(v string) predicate.User
- func GithubTokenGT(v string) predicate.User
- func GithubTokenGTE(v string) predicate.User
- func GithubTokenHasPrefix(v string) predicate.User
- func GithubTokenHasSuffix(v string) predicate.User
- func GithubTokenIn(vs ...string) predicate.User
- func GithubTokenIsNil() predicate.User
- func GithubTokenLT(v string) predicate.User
- func GithubTokenLTE(v string) predicate.User
- func GithubTokenNEQ(v string) predicate.User
- func GithubTokenNotIn(vs ...string) predicate.User
- func GithubTokenNotNil() predicate.User
- func ID(id int64) predicate.User
- func IDEQ(id int64) predicate.User
- func IDGT(id int64) predicate.User
- func IDGTE(id int64) predicate.User
- func IDIn(ids ...int64) predicate.User
- func IDLT(id int64) predicate.User
- func IDLTE(id int64) predicate.User
- func IDNEQ(id int64) predicate.User
- func IDNotIn(ids ...int64) predicate.User
- func LastName(v string) predicate.User
- func LastNameContains(v string) predicate.User
- func LastNameContainsFold(v string) predicate.User
- func LastNameEQ(v string) predicate.User
- func LastNameEqualFold(v string) predicate.User
- func LastNameGT(v string) predicate.User
- func LastNameGTE(v string) predicate.User
- func LastNameHasPrefix(v string) predicate.User
- func LastNameHasSuffix(v string) predicate.User
- func LastNameIn(vs ...string) predicate.User
- func LastNameLT(v string) predicate.User
- func LastNameLTE(v string) predicate.User
- func LastNameNEQ(v string) predicate.User
- func LastNameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldGithubToken holds the string denoting the github_token field in the database. FieldGithubToken = "github_token" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldUsername, FieldFirstName, FieldLastName, FieldGithubToken, }
Columns holds all SQL columns for user fields.
Functions ¶
func FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func GithubToken ¶
GithubToken applies equality check predicate on the "github_token" field. It's identical to GithubTokenEQ.
func GithubTokenContains ¶
GithubTokenContains applies the Contains predicate on the "github_token" field.
func GithubTokenContainsFold ¶
GithubTokenContainsFold applies the ContainsFold predicate on the "github_token" field.
func GithubTokenEQ ¶
GithubTokenEQ applies the EQ predicate on the "github_token" field.
func GithubTokenEqualFold ¶
GithubTokenEqualFold applies the EqualFold predicate on the "github_token" field.
func GithubTokenGT ¶
GithubTokenGT applies the GT predicate on the "github_token" field.
func GithubTokenGTE ¶
GithubTokenGTE applies the GTE predicate on the "github_token" field.
func GithubTokenHasPrefix ¶
GithubTokenHasPrefix applies the HasPrefix predicate on the "github_token" field.
func GithubTokenHasSuffix ¶
GithubTokenHasSuffix applies the HasSuffix predicate on the "github_token" field.
func GithubTokenIn ¶
GithubTokenIn applies the In predicate on the "github_token" field.
func GithubTokenIsNil ¶
GithubTokenIsNil applies the IsNil predicate on the "github_token" field.
func GithubTokenLT ¶
GithubTokenLT applies the LT predicate on the "github_token" field.
func GithubTokenLTE ¶
GithubTokenLTE applies the LTE predicate on the "github_token" field.
func GithubTokenNEQ ¶
GithubTokenNEQ applies the NEQ predicate on the "github_token" field.
func GithubTokenNotIn ¶
GithubTokenNotIn applies the NotIn predicate on the "github_token" field.
func GithubTokenNotNil ¶
GithubTokenNotNil applies the NotNil predicate on the "github_token" field.
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_name" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByFirstName ¶
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_name field.
func ByGithubToken ¶
func ByGithubToken(opts ...sql.OrderTermOption) OrderOption
ByGithubToken orders the results by the github_token field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastName ¶
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.