Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func GithubID(v int64) predicate.User
- func GithubIDEQ(v int64) predicate.User
- func GithubIDGT(v int64) predicate.User
- func GithubIDGTE(v int64) predicate.User
- func GithubIDIn(vs ...int64) predicate.User
- func GithubIDLT(v int64) predicate.User
- func GithubIDLTE(v int64) predicate.User
- func GithubIDNEQ(v int64) predicate.User
- func GithubIDNotIn(vs ...int64) predicate.User
- func GithubLogin(v string) predicate.User
- func GithubLoginContains(v string) predicate.User
- func GithubLoginContainsFold(v string) predicate.User
- func GithubLoginEQ(v string) predicate.User
- func GithubLoginEqualFold(v string) predicate.User
- func GithubLoginGT(v string) predicate.User
- func GithubLoginGTE(v string) predicate.User
- func GithubLoginHasPrefix(v string) predicate.User
- func GithubLoginHasSuffix(v string) predicate.User
- func GithubLoginIn(vs ...string) predicate.User
- func GithubLoginLT(v string) predicate.User
- func GithubLoginLTE(v string) predicate.User
- func GithubLoginNEQ(v string) predicate.User
- func GithubLoginNotIn(vs ...string) predicate.User
- func GithubName(v string) predicate.User
- func GithubNameContains(v string) predicate.User
- func GithubNameContainsFold(v string) predicate.User
- func GithubNameEQ(v string) predicate.User
- func GithubNameEqualFold(v string) predicate.User
- func GithubNameGT(v string) predicate.User
- func GithubNameGTE(v string) predicate.User
- func GithubNameHasPrefix(v string) predicate.User
- func GithubNameHasSuffix(v string) predicate.User
- func GithubNameIn(vs ...string) predicate.User
- func GithubNameLT(v string) predicate.User
- func GithubNameLTE(v string) predicate.User
- func GithubNameNEQ(v string) predicate.User
- func GithubNameNotIn(vs ...string) predicate.User
- func GithubOauthToken(v string) predicate.User
- func GithubOauthTokenContains(v string) predicate.User
- func GithubOauthTokenContainsFold(v string) predicate.User
- func GithubOauthTokenEQ(v string) predicate.User
- func GithubOauthTokenEqualFold(v string) predicate.User
- func GithubOauthTokenGT(v string) predicate.User
- func GithubOauthTokenGTE(v string) predicate.User
- func GithubOauthTokenHasPrefix(v string) predicate.User
- func GithubOauthTokenHasSuffix(v string) predicate.User
- func GithubOauthTokenIn(vs ...string) predicate.User
- func GithubOauthTokenLT(v string) predicate.User
- func GithubOauthTokenLTE(v string) predicate.User
- func GithubOauthTokenNEQ(v string) predicate.User
- func GithubOauthTokenNotIn(vs ...string) predicate.User
- func HasDevices() predicate.User
- func HasDevicesWith(preds ...predicate.Device) predicate.User
- func HasMessages() predicate.User
- func HasMessagesWith(preds ...predicate.Message) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Secret(v string) predicate.User
- func SecretContains(v string) predicate.User
- func SecretContainsFold(v string) predicate.User
- func SecretEQ(v string) predicate.User
- func SecretEqualFold(v string) predicate.User
- func SecretGT(v string) predicate.User
- func SecretGTE(v string) predicate.User
- func SecretHasPrefix(v string) predicate.User
- func SecretHasSuffix(v string) predicate.User
- func SecretIn(vs ...string) predicate.User
- func SecretLT(v string) predicate.User
- func SecretLTE(v string) predicate.User
- func SecretNEQ(v string) predicate.User
- func SecretNotIn(vs ...string) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldSecret holds the string denoting the secret field in the database. FieldSecret = "secret" // FieldGithubID holds the string denoting the githubid field in the database. FieldGithubID = "github_id" // FieldGithubName holds the string denoting the githubname field in the database. FieldGithubName = "github_name" // FieldGithubLogin holds the string denoting the githublogin field in the database. FieldGithubLogin = "github_login" // FieldGithubOauthToken holds the string denoting the githuboauthtoken field in the database. FieldGithubOauthToken = "github_oauth_token" // EdgeDevices holds the string denoting the devices edge name in mutations. EdgeDevices = "devices" // EdgeMessages holds the string denoting the messages edge name in mutations. EdgeMessages = "messages" // Table holds the table name of the user in the database. Table = "users" // DevicesTable is the table that holds the devices relation/edge. DevicesTable = "devices" // DevicesInverseTable is the table name for the Device entity. // It exists in this package in order to avoid circular dependency with the "device" package. DevicesInverseTable = "devices" // DevicesColumn is the table column denoting the devices relation/edge. DevicesColumn = "user_devices" // MessagesTable is the table that holds the messages relation/edge. MessagesTable = "messages" // MessagesInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. MessagesInverseTable = "messages" // MessagesColumn is the table column denoting the messages relation/edge. MessagesColumn = "user_messages" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // GithubLoginValidator is a validator for the "githubLogin" field. It is called by the builders before save. GithubLoginValidator func(string) error // GithubOauthTokenValidator is a validator for the "githubOauthToken" field. It is called by the builders before save. GithubOauthTokenValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldSecret, FieldGithubID, FieldGithubName, FieldGithubLogin, FieldGithubOauthToken, }
Columns holds all SQL columns for user fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func GithubID ¶
GithubID applies equality check predicate on the "githubID" field. It's identical to GithubIDEQ.
func GithubIDEQ ¶
GithubIDEQ applies the EQ predicate on the "githubID" field.
func GithubIDGT ¶
GithubIDGT applies the GT predicate on the "githubID" field.
func GithubIDGTE ¶
GithubIDGTE applies the GTE predicate on the "githubID" field.
func GithubIDIn ¶
GithubIDIn applies the In predicate on the "githubID" field.
func GithubIDLT ¶
GithubIDLT applies the LT predicate on the "githubID" field.
func GithubIDLTE ¶
GithubIDLTE applies the LTE predicate on the "githubID" field.
func GithubIDNEQ ¶
GithubIDNEQ applies the NEQ predicate on the "githubID" field.
func GithubIDNotIn ¶
GithubIDNotIn applies the NotIn predicate on the "githubID" field.
func GithubLogin ¶
GithubLogin applies equality check predicate on the "githubLogin" field. It's identical to GithubLoginEQ.
func GithubLoginContains ¶
GithubLoginContains applies the Contains predicate on the "githubLogin" field.
func GithubLoginContainsFold ¶
GithubLoginContainsFold applies the ContainsFold predicate on the "githubLogin" field.
func GithubLoginEQ ¶
GithubLoginEQ applies the EQ predicate on the "githubLogin" field.
func GithubLoginEqualFold ¶
GithubLoginEqualFold applies the EqualFold predicate on the "githubLogin" field.
func GithubLoginGT ¶
GithubLoginGT applies the GT predicate on the "githubLogin" field.
func GithubLoginGTE ¶
GithubLoginGTE applies the GTE predicate on the "githubLogin" field.
func GithubLoginHasPrefix ¶
GithubLoginHasPrefix applies the HasPrefix predicate on the "githubLogin" field.
func GithubLoginHasSuffix ¶
GithubLoginHasSuffix applies the HasSuffix predicate on the "githubLogin" field.
func GithubLoginIn ¶
GithubLoginIn applies the In predicate on the "githubLogin" field.
func GithubLoginLT ¶
GithubLoginLT applies the LT predicate on the "githubLogin" field.
func GithubLoginLTE ¶
GithubLoginLTE applies the LTE predicate on the "githubLogin" field.
func GithubLoginNEQ ¶
GithubLoginNEQ applies the NEQ predicate on the "githubLogin" field.
func GithubLoginNotIn ¶
GithubLoginNotIn applies the NotIn predicate on the "githubLogin" field.
func GithubName ¶
GithubName applies equality check predicate on the "githubName" field. It's identical to GithubNameEQ.
func GithubNameContains ¶
GithubNameContains applies the Contains predicate on the "githubName" field.
func GithubNameContainsFold ¶
GithubNameContainsFold applies the ContainsFold predicate on the "githubName" field.
func GithubNameEQ ¶
GithubNameEQ applies the EQ predicate on the "githubName" field.
func GithubNameEqualFold ¶
GithubNameEqualFold applies the EqualFold predicate on the "githubName" field.
func GithubNameGT ¶
GithubNameGT applies the GT predicate on the "githubName" field.
func GithubNameGTE ¶
GithubNameGTE applies the GTE predicate on the "githubName" field.
func GithubNameHasPrefix ¶
GithubNameHasPrefix applies the HasPrefix predicate on the "githubName" field.
func GithubNameHasSuffix ¶
GithubNameHasSuffix applies the HasSuffix predicate on the "githubName" field.
func GithubNameIn ¶
GithubNameIn applies the In predicate on the "githubName" field.
func GithubNameLT ¶
GithubNameLT applies the LT predicate on the "githubName" field.
func GithubNameLTE ¶
GithubNameLTE applies the LTE predicate on the "githubName" field.
func GithubNameNEQ ¶
GithubNameNEQ applies the NEQ predicate on the "githubName" field.
func GithubNameNotIn ¶
GithubNameNotIn applies the NotIn predicate on the "githubName" field.
func GithubOauthToken ¶
GithubOauthToken applies equality check predicate on the "githubOauthToken" field. It's identical to GithubOauthTokenEQ.
func GithubOauthTokenContains ¶
GithubOauthTokenContains applies the Contains predicate on the "githubOauthToken" field.
func GithubOauthTokenContainsFold ¶
GithubOauthTokenContainsFold applies the ContainsFold predicate on the "githubOauthToken" field.
func GithubOauthTokenEQ ¶
GithubOauthTokenEQ applies the EQ predicate on the "githubOauthToken" field.
func GithubOauthTokenEqualFold ¶
GithubOauthTokenEqualFold applies the EqualFold predicate on the "githubOauthToken" field.
func GithubOauthTokenGT ¶
GithubOauthTokenGT applies the GT predicate on the "githubOauthToken" field.
func GithubOauthTokenGTE ¶
GithubOauthTokenGTE applies the GTE predicate on the "githubOauthToken" field.
func GithubOauthTokenHasPrefix ¶
GithubOauthTokenHasPrefix applies the HasPrefix predicate on the "githubOauthToken" field.
func GithubOauthTokenHasSuffix ¶
GithubOauthTokenHasSuffix applies the HasSuffix predicate on the "githubOauthToken" field.
func GithubOauthTokenIn ¶
GithubOauthTokenIn applies the In predicate on the "githubOauthToken" field.
func GithubOauthTokenLT ¶
GithubOauthTokenLT applies the LT predicate on the "githubOauthToken" field.
func GithubOauthTokenLTE ¶
GithubOauthTokenLTE applies the LTE predicate on the "githubOauthToken" field.
func GithubOauthTokenNEQ ¶
GithubOauthTokenNEQ applies the NEQ predicate on the "githubOauthToken" field.
func GithubOauthTokenNotIn ¶
GithubOauthTokenNotIn applies the NotIn predicate on the "githubOauthToken" field.
func HasDevices ¶
HasDevices applies the HasEdge predicate on the "devices" edge.
func HasDevicesWith ¶
HasDevicesWith applies the HasEdge predicate on the "devices" edge with a given conditions (other predicates).
func HasMessages ¶
HasMessages applies the HasEdge predicate on the "messages" edge.
func HasMessagesWith ¶
HasMessagesWith applies the HasEdge predicate on the "messages" edge with a given conditions (other predicates).
func Secret ¶
Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func SecretContains ¶
SecretContains applies the Contains predicate on the "secret" field.
func SecretContainsFold ¶
SecretContainsFold applies the ContainsFold predicate on the "secret" field.
func SecretEqualFold ¶
SecretEqualFold applies the EqualFold predicate on the "secret" field.
func SecretHasPrefix ¶
SecretHasPrefix applies the HasPrefix predicate on the "secret" field.
func SecretHasSuffix ¶
SecretHasSuffix applies the HasSuffix predicate on the "secret" field.
func SecretNotIn ¶
SecretNotIn applies the NotIn predicate on the "secret" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.