account

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for account fields.

Functions

func And

func And(predicates ...predicate.Account) predicate.Account

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Account

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Account

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Account

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Account

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Account

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Account

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Account

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Account

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Account

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Follower

func Follower(v int64) predicate.Account

Follower applies equality check predicate on the "follower" field. It's identical to FollowerEQ.

func FollowerEQ

func FollowerEQ(v int64) predicate.Account

FollowerEQ applies the EQ predicate on the "follower" field.

func FollowerGT

func FollowerGT(v int64) predicate.Account

FollowerGT applies the GT predicate on the "follower" field.

func FollowerGTE

func FollowerGTE(v int64) predicate.Account

FollowerGTE applies the GTE predicate on the "follower" field.

func FollowerIn

func FollowerIn(vs ...int64) predicate.Account

FollowerIn applies the In predicate on the "follower" field.

func FollowerLT

func FollowerLT(v int64) predicate.Account

FollowerLT applies the LT predicate on the "follower" field.

func FollowerLTE

func FollowerLTE(v int64) predicate.Account

FollowerLTE applies the LTE predicate on the "follower" field.

func FollowerNEQ

func FollowerNEQ(v int64) predicate.Account

FollowerNEQ applies the NEQ predicate on the "follower" field.

func FollowerNotIn

func FollowerNotIn(vs ...int64) predicate.Account

FollowerNotIn applies the NotIn predicate on the "follower" field.

func Following

func Following(v int64) predicate.Account

Following applies equality check predicate on the "following" field. It's identical to FollowingEQ.

func FollowingEQ

func FollowingEQ(v int64) predicate.Account

FollowingEQ applies the EQ predicate on the "following" field.

func FollowingGT

func FollowingGT(v int64) predicate.Account

FollowingGT applies the GT predicate on the "following" field.

func FollowingGTE

func FollowingGTE(v int64) predicate.Account

FollowingGTE applies the GTE predicate on the "following" field.

func FollowingIn

func FollowingIn(vs ...int64) predicate.Account

FollowingIn applies the In predicate on the "following" field.

func FollowingLT

func FollowingLT(v int64) predicate.Account

FollowingLT applies the LT predicate on the "following" field.

func FollowingLTE

func FollowingLTE(v int64) predicate.Account

FollowingLTE applies the LTE predicate on the "following" field.

func FollowingNEQ

func FollowingNEQ(v int64) predicate.Account

FollowingNEQ applies the NEQ predicate on the "following" field.

func FollowingNotIn

func FollowingNotIn(vs ...int64) predicate.Account

FollowingNotIn applies the NotIn predicate on the "following" field.

func ID

func ID(id int64) predicate.Account

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Account

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Account

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Account

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Account

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Account

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Account

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Account

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Account

IDNotIn applies the NotIn predicate on the ID field.

func IsPrivate

func IsPrivate(v bool) predicate.Account

IsPrivate applies equality check predicate on the "is_private" field. It's identical to IsPrivateEQ.

func IsPrivateEQ

func IsPrivateEQ(v bool) predicate.Account

IsPrivateEQ applies the EQ predicate on the "is_private" field.

func IsPrivateNEQ

func IsPrivateNEQ(v bool) predicate.Account

IsPrivateNEQ applies the NEQ predicate on the "is_private" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Account) predicate.Account

Or groups predicates with the OR operator between them.

func Owner

func Owner(v string) predicate.Account

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains

func OwnerContains(v string) predicate.Account

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.Account

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ

func OwnerEQ(v string) predicate.Account

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.Account

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT

func OwnerGT(v string) predicate.Account

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE

func OwnerGTE(v string) predicate.Account

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.Account

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.Account

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...string) predicate.Account

OwnerIn applies the In predicate on the "owner" field.

func OwnerLT

func OwnerLT(v string) predicate.Account

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE

func OwnerLTE(v string) predicate.Account

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v string) predicate.Account

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...string) predicate.Account

OwnerNotIn applies the NotIn predicate on the "owner" field.

func PhotoDir

func PhotoDir(v string) predicate.Account

PhotoDir applies equality check predicate on the "photo_dir" field. It's identical to PhotoDirEQ.

func PhotoDirContains

func PhotoDirContains(v string) predicate.Account

PhotoDirContains applies the Contains predicate on the "photo_dir" field.

func PhotoDirContainsFold

func PhotoDirContainsFold(v string) predicate.Account

PhotoDirContainsFold applies the ContainsFold predicate on the "photo_dir" field.

func PhotoDirEQ

func PhotoDirEQ(v string) predicate.Account

PhotoDirEQ applies the EQ predicate on the "photo_dir" field.

func PhotoDirEqualFold

func PhotoDirEqualFold(v string) predicate.Account

PhotoDirEqualFold applies the EqualFold predicate on the "photo_dir" field.

func PhotoDirGT

func PhotoDirGT(v string) predicate.Account

PhotoDirGT applies the GT predicate on the "photo_dir" field.

func PhotoDirGTE

func PhotoDirGTE(v string) predicate.Account

PhotoDirGTE applies the GTE predicate on the "photo_dir" field.

func PhotoDirHasPrefix

func PhotoDirHasPrefix(v string) predicate.Account

PhotoDirHasPrefix applies the HasPrefix predicate on the "photo_dir" field.

func PhotoDirHasSuffix

func PhotoDirHasSuffix(v string) predicate.Account

PhotoDirHasSuffix applies the HasSuffix predicate on the "photo_dir" field.

func PhotoDirIn

func PhotoDirIn(vs ...string) predicate.Account

PhotoDirIn applies the In predicate on the "photo_dir" field.

func PhotoDirIsNil

func PhotoDirIsNil() predicate.Account

PhotoDirIsNil applies the IsNil predicate on the "photo_dir" field.

func PhotoDirLT

func PhotoDirLT(v string) predicate.Account

PhotoDirLT applies the LT predicate on the "photo_dir" field.

func PhotoDirLTE

func PhotoDirLTE(v string) predicate.Account

PhotoDirLTE applies the LTE predicate on the "photo_dir" field.

func PhotoDirNEQ

func PhotoDirNEQ(v string) predicate.Account

PhotoDirNEQ applies the NEQ predicate on the "photo_dir" field.

func PhotoDirNotIn

func PhotoDirNotIn(vs ...string) predicate.Account

PhotoDirNotIn applies the NotIn predicate on the "photo_dir" field.

func PhotoDirNotNil

func PhotoDirNotNil() predicate.Account

PhotoDirNotNil applies the NotNil predicate on the "photo_dir" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL