Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Account) predicate.Account
- func CreatedAt(v time.Time) predicate.Account
- func CreatedAtEQ(v time.Time) predicate.Account
- func CreatedAtGT(v time.Time) predicate.Account
- func CreatedAtGTE(v time.Time) predicate.Account
- func CreatedAtIn(vs ...time.Time) predicate.Account
- func CreatedAtLT(v time.Time) predicate.Account
- func CreatedAtLTE(v time.Time) predicate.Account
- func CreatedAtNEQ(v time.Time) predicate.Account
- func CreatedAtNotIn(vs ...time.Time) predicate.Account
- func Follower(v int64) predicate.Account
- func FollowerEQ(v int64) predicate.Account
- func FollowerGT(v int64) predicate.Account
- func FollowerGTE(v int64) predicate.Account
- func FollowerIn(vs ...int64) predicate.Account
- func FollowerLT(v int64) predicate.Account
- func FollowerLTE(v int64) predicate.Account
- func FollowerNEQ(v int64) predicate.Account
- func FollowerNotIn(vs ...int64) predicate.Account
- func Following(v int64) predicate.Account
- func FollowingEQ(v int64) predicate.Account
- func FollowingGT(v int64) predicate.Account
- func FollowingGTE(v int64) predicate.Account
- func FollowingIn(vs ...int64) predicate.Account
- func FollowingLT(v int64) predicate.Account
- func FollowingLTE(v int64) predicate.Account
- func FollowingNEQ(v int64) predicate.Account
- func FollowingNotIn(vs ...int64) predicate.Account
- func ID(id int64) predicate.Account
- func IDEQ(id int64) predicate.Account
- func IDGT(id int64) predicate.Account
- func IDGTE(id int64) predicate.Account
- func IDIn(ids ...int64) predicate.Account
- func IDLT(id int64) predicate.Account
- func IDLTE(id int64) predicate.Account
- func IDNEQ(id int64) predicate.Account
- func IDNotIn(ids ...int64) predicate.Account
- func IsPrivate(v bool) predicate.Account
- func IsPrivateEQ(v bool) predicate.Account
- func IsPrivateNEQ(v bool) predicate.Account
- func Not(p predicate.Account) predicate.Account
- func Or(predicates ...predicate.Account) predicate.Account
- func Owner(v string) predicate.Account
- func OwnerContains(v string) predicate.Account
- func OwnerContainsFold(v string) predicate.Account
- func OwnerEQ(v string) predicate.Account
- func OwnerEqualFold(v string) predicate.Account
- func OwnerGT(v string) predicate.Account
- func OwnerGTE(v string) predicate.Account
- func OwnerHasPrefix(v string) predicate.Account
- func OwnerHasSuffix(v string) predicate.Account
- func OwnerIn(vs ...string) predicate.Account
- func OwnerLT(v string) predicate.Account
- func OwnerLTE(v string) predicate.Account
- func OwnerNEQ(v string) predicate.Account
- func OwnerNotIn(vs ...string) predicate.Account
- func PhotoDir(v string) predicate.Account
- func PhotoDirContains(v string) predicate.Account
- func PhotoDirContainsFold(v string) predicate.Account
- func PhotoDirEQ(v string) predicate.Account
- func PhotoDirEqualFold(v string) predicate.Account
- func PhotoDirGT(v string) predicate.Account
- func PhotoDirGTE(v string) predicate.Account
- func PhotoDirHasPrefix(v string) predicate.Account
- func PhotoDirHasSuffix(v string) predicate.Account
- func PhotoDirIn(vs ...string) predicate.Account
- func PhotoDirIsNil() predicate.Account
- func PhotoDirLT(v string) predicate.Account
- func PhotoDirLTE(v string) predicate.Account
- func PhotoDirNEQ(v string) predicate.Account
- func PhotoDirNotIn(vs ...string) predicate.Account
- func PhotoDirNotNil() predicate.Account
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the account type in the database. Label = "account" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // FieldIsPrivate holds the string denoting the is_private field in the database. FieldIsPrivate = "is_private" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldFollower holds the string denoting the follower field in the database. FieldFollower = "follower" // FieldFollowing holds the string denoting the following field in the database. FieldFollowing = "following" // FieldPhotoDir holds the string denoting the photo_dir field in the database. FieldPhotoDir = "photo_dir" // Table holds the table name of the account in the database. Table = "accounts" )
Variables ¶
var ( // OwnerValidator is a validator for the "owner" field. It is called by the builders before save. OwnerValidator func(string) error // DefaultIsPrivate holds the default value on creation for the "is_private" field. DefaultIsPrivate bool // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time // DefaultFollower holds the default value on creation for the "follower" field. DefaultFollower int64 // DefaultFollowing holds the default value on creation for the "following" field. DefaultFollowing int64 // PhotoDirValidator is a validator for the "photo_dir" field. It is called by the builders before save. PhotoDirValidator func(string) error )
var Columns = []string{ FieldID, FieldOwner, FieldIsPrivate, FieldCreatedAt, FieldFollower, FieldFollowing, FieldPhotoDir, }
Columns holds all SQL columns for account 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 Follower ¶
Follower applies equality check predicate on the "follower" field. It's identical to FollowerEQ.
func FollowerEQ ¶
FollowerEQ applies the EQ predicate on the "follower" field.
func FollowerGT ¶
FollowerGT applies the GT predicate on the "follower" field.
func FollowerGTE ¶
FollowerGTE applies the GTE predicate on the "follower" field.
func FollowerIn ¶
FollowerIn applies the In predicate on the "follower" field.
func FollowerLT ¶
FollowerLT applies the LT predicate on the "follower" field.
func FollowerLTE ¶
FollowerLTE applies the LTE predicate on the "follower" field.
func FollowerNEQ ¶
FollowerNEQ applies the NEQ predicate on the "follower" field.
func FollowerNotIn ¶
FollowerNotIn applies the NotIn predicate on the "follower" field.
func Following ¶
Following applies equality check predicate on the "following" field. It's identical to FollowingEQ.
func FollowingEQ ¶
FollowingEQ applies the EQ predicate on the "following" field.
func FollowingGT ¶
FollowingGT applies the GT predicate on the "following" field.
func FollowingGTE ¶
FollowingGTE applies the GTE predicate on the "following" field.
func FollowingIn ¶
FollowingIn applies the In predicate on the "following" field.
func FollowingLT ¶
FollowingLT applies the LT predicate on the "following" field.
func FollowingLTE ¶
FollowingLTE applies the LTE predicate on the "following" field.
func FollowingNEQ ¶
FollowingNEQ applies the NEQ predicate on the "following" field.
func FollowingNotIn ¶
FollowingNotIn applies the NotIn predicate on the "following" field.
func IsPrivate ¶
IsPrivate applies equality check predicate on the "is_private" field. It's identical to IsPrivateEQ.
func IsPrivateEQ ¶
IsPrivateEQ applies the EQ predicate on the "is_private" field.
func IsPrivateNEQ ¶
IsPrivateNEQ applies the NEQ predicate on the "is_private" field.
func Owner ¶
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerContains ¶
OwnerContains applies the Contains predicate on the "owner" field.
func OwnerContainsFold ¶
OwnerContainsFold applies the ContainsFold predicate on the "owner" field.
func OwnerEqualFold ¶
OwnerEqualFold applies the EqualFold predicate on the "owner" field.
func OwnerHasPrefix ¶
OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.
func OwnerHasSuffix ¶
OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.
func OwnerNotIn ¶
OwnerNotIn applies the NotIn predicate on the "owner" field.
func PhotoDir ¶
PhotoDir applies equality check predicate on the "photo_dir" field. It's identical to PhotoDirEQ.
func PhotoDirContains ¶
PhotoDirContains applies the Contains predicate on the "photo_dir" field.
func PhotoDirContainsFold ¶
PhotoDirContainsFold applies the ContainsFold predicate on the "photo_dir" field.
func PhotoDirEQ ¶
PhotoDirEQ applies the EQ predicate on the "photo_dir" field.
func PhotoDirEqualFold ¶
PhotoDirEqualFold applies the EqualFold predicate on the "photo_dir" field.
func PhotoDirGT ¶
PhotoDirGT applies the GT predicate on the "photo_dir" field.
func PhotoDirGTE ¶
PhotoDirGTE applies the GTE predicate on the "photo_dir" field.
func PhotoDirHasPrefix ¶
PhotoDirHasPrefix applies the HasPrefix predicate on the "photo_dir" field.
func PhotoDirHasSuffix ¶
PhotoDirHasSuffix applies the HasSuffix predicate on the "photo_dir" field.
func PhotoDirIn ¶
PhotoDirIn applies the In predicate on the "photo_dir" field.
func PhotoDirIsNil ¶
PhotoDirIsNil applies the IsNil predicate on the "photo_dir" field.
func PhotoDirLT ¶
PhotoDirLT applies the LT predicate on the "photo_dir" field.
func PhotoDirLTE ¶
PhotoDirLTE applies the LTE predicate on the "photo_dir" field.
func PhotoDirNEQ ¶
PhotoDirNEQ applies the NEQ predicate on the "photo_dir" field.
func PhotoDirNotIn ¶
PhotoDirNotIn applies the NotIn predicate on the "photo_dir" field.
func PhotoDirNotNil ¶
PhotoDirNotNil applies the NotNil predicate on the "photo_dir" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.