jianghuren

package
v0.0.0-...-52c565a Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the jianghuren type in the database.
	Label = "jiang_hu_ren"
	// FieldID holds the string denoting the id field in the database.
	FieldID        = "id"         // FieldCreatedAt holds the string denoting the created_at vertex property in the database.
	FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at vertex property in the database.
	FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name vertex property in the database.
	FieldName      = "name"       // FieldAge holds the string denoting the age vertex property in the database.
	FieldAge       = "age"        // FieldSex holds the string denoting the sex vertex property in the database.
	FieldSex       = "sex"

	// EdgeWeapon holds the string denoting the weapon edge name in mutations.
	EdgeWeapon = "weapon"
	// EdgeMenpai holds the string denoting the menpai edge name in mutations.
	EdgeMenpai = "menpai"
	// EdgeSpouse holds the string denoting the spouse edge name in mutations.
	EdgeSpouse = "spouse"
	// EdgeMaster holds the string denoting the master edge name in mutations.
	EdgeMaster = "master"
	// EdgeApprentices holds the string denoting the apprentices edge name in mutations.
	EdgeApprentices = "apprentices"
	// EdgeFollowers holds the string denoting the followers edge name in mutations.
	EdgeFollowers = "followers"
	// EdgeFollowing holds the string denoting the following edge name in mutations.
	EdgeFollowing = "following"
	// EdgeFriends holds the string denoting the friends edge name in mutations.
	EdgeFriends = "friends"

	// Table holds the table name of the jianghuren in the database.
	Table = "jiang_hu_rens"
	// WeaponTable is the table the holds the weapon relation/edge.
	WeaponTable = "weapons"
	// WeaponInverseTable is the table name for the Weapon entity.
	// It exists in this package in order to avoid circular dependency with the "weapon" package.
	WeaponInverseTable = "weapons"
	// WeaponColumn is the table column denoting the weapon relation/edge.
	WeaponColumn = "jiang_hu_ren_weapon"
	// MenpaiTable is the table the holds the menpai relation/edge.
	MenpaiTable = "jiang_hu_rens"
	// MenpaiInverseTable is the table name for the MenPai entity.
	// It exists in this package in order to avoid circular dependency with the "menpai" package.
	MenpaiInverseTable = "men_pais"
	// MenpaiColumn is the table column denoting the menpai relation/edge.
	MenpaiColumn = "men_pai_disciples"
	// SpouseTable is the table the holds the spouse relation/edge.
	SpouseTable = "jiang_hu_rens"
	// SpouseColumn is the table column denoting the spouse relation/edge.
	SpouseColumn = "jiang_hu_ren_spouse"
	// MasterTable is the table the holds the master relation/edge.
	MasterTable = "jiang_hu_rens"
	// MasterColumn is the table column denoting the master relation/edge.
	MasterColumn = "jiang_hu_ren_apprentices"
	// ApprenticesTable is the table the holds the apprentices relation/edge.
	ApprenticesTable = "jiang_hu_rens"
	// ApprenticesColumn is the table column denoting the apprentices relation/edge.
	ApprenticesColumn = "jiang_hu_ren_apprentices"
	// FollowersTable is the table the holds the followers relation/edge. The primary key declared below.
	FollowersTable = "jiang_hu_ren_following"
	// FollowingTable is the table the holds the following relation/edge. The primary key declared below.
	FollowingTable = "jiang_hu_ren_following"
	// FriendsTable is the table the holds the friends relation/edge. The primary key declared below.
	FriendsTable = "jiang_hu_ren_friends"
)

Variables

View Source
var (
	// FollowersPrimaryKey and FollowersColumn2 are the table columns denoting the
	// primary key for the followers relation (M2M).
	FollowersPrimaryKey = []string{"jiang_hu_ren_id", "follower_id"}
	// FollowingPrimaryKey and FollowingColumn2 are the table columns denoting the
	// primary key for the following relation (M2M).
	FollowingPrimaryKey = []string{"jiang_hu_ren_id", "follower_id"}
	// FriendsPrimaryKey and FriendsColumn2 are the table columns denoting the
	// primary key for the friends relation (M2M).
	FriendsPrimaryKey = []string{"jiang_hu_ren_id", "friend_id"}
)
View Source
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
)

Columns holds all SQL columns for jianghuren fields.

View Source
var ForeignKeys = []string{
	"jiang_hu_ren_spouse",
	"jiang_hu_ren_apprentices",
	"men_pai_disciples",
}

ForeignKeys holds the SQL foreign-keys that are owned by the JiangHuRen type.

Functions

func Age

func Age(v uint) predicate.JiangHuRen

Age applies equality check predicate on the "age" field. It's identical to AgeEQ.

func AgeEQ

func AgeEQ(v uint) predicate.JiangHuRen

AgeEQ applies the EQ predicate on the "age" field.

func AgeGT

func AgeGT(v uint) predicate.JiangHuRen

AgeGT applies the GT predicate on the "age" field.

func AgeGTE

func AgeGTE(v uint) predicate.JiangHuRen

AgeGTE applies the GTE predicate on the "age" field.

func AgeIn

func AgeIn(vs ...uint) predicate.JiangHuRen

AgeIn applies the In predicate on the "age" field.

func AgeLT

func AgeLT(v uint) predicate.JiangHuRen

AgeLT applies the LT predicate on the "age" field.

func AgeLTE

func AgeLTE(v uint) predicate.JiangHuRen

AgeLTE applies the LTE predicate on the "age" field.

func AgeNEQ

func AgeNEQ(v uint) predicate.JiangHuRen

AgeNEQ applies the NEQ predicate on the "age" field.

func AgeNotIn

func AgeNotIn(vs ...uint) predicate.JiangHuRen

AgeNotIn applies the NotIn predicate on the "age" field.

func And

func And(predicates ...predicate.JiangHuRen) predicate.JiangHuRen

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.JiangHuRen

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.JiangHuRen

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.JiangHuRen

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.JiangHuRen

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.JiangHuRen

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.JiangHuRen

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.JiangHuRen

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

func CreatedAtNotIn

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

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

func HasApprentices

func HasApprentices() predicate.JiangHuRen

HasApprentices applies the HasEdge predicate on the "apprentices" edge.

func HasApprenticesWith

func HasApprenticesWith(preds ...predicate.JiangHuRen) predicate.JiangHuRen

HasApprenticesWith applies the HasEdge predicate on the "apprentices" edge with a given conditions (other predicates).

func HasFollowers

func HasFollowers() predicate.JiangHuRen

HasFollowers applies the HasEdge predicate on the "followers" edge.

func HasFollowersWith

func HasFollowersWith(preds ...predicate.JiangHuRen) predicate.JiangHuRen

HasFollowersWith applies the HasEdge predicate on the "followers" edge with a given conditions (other predicates).

func HasFollowing

func HasFollowing() predicate.JiangHuRen

HasFollowing applies the HasEdge predicate on the "following" edge.

func HasFollowingWith

func HasFollowingWith(preds ...predicate.JiangHuRen) predicate.JiangHuRen

HasFollowingWith applies the HasEdge predicate on the "following" edge with a given conditions (other predicates).

func HasFriends

func HasFriends() predicate.JiangHuRen

HasFriends applies the HasEdge predicate on the "friends" edge.

func HasFriendsWith

func HasFriendsWith(preds ...predicate.JiangHuRen) predicate.JiangHuRen

HasFriendsWith applies the HasEdge predicate on the "friends" edge with a given conditions (other predicates).

func HasMaster

func HasMaster() predicate.JiangHuRen

HasMaster applies the HasEdge predicate on the "master" edge.

func HasMasterWith

func HasMasterWith(preds ...predicate.JiangHuRen) predicate.JiangHuRen

HasMasterWith applies the HasEdge predicate on the "master" edge with a given conditions (other predicates).

func HasMenpai

func HasMenpai() predicate.JiangHuRen

HasMenpai applies the HasEdge predicate on the "menpai" edge.

func HasMenpaiWith

func HasMenpaiWith(preds ...predicate.MenPai) predicate.JiangHuRen

HasMenpaiWith applies the HasEdge predicate on the "menpai" edge with a given conditions (other predicates).

func HasSpouse

func HasSpouse() predicate.JiangHuRen

HasSpouse applies the HasEdge predicate on the "spouse" edge.

func HasSpouseWith

func HasSpouseWith(preds ...predicate.JiangHuRen) predicate.JiangHuRen

HasSpouseWith applies the HasEdge predicate on the "spouse" edge with a given conditions (other predicates).

func HasWeapon

func HasWeapon() predicate.JiangHuRen

HasWeapon applies the HasEdge predicate on the "weapon" edge.

func HasWeaponWith

func HasWeaponWith(preds ...predicate.Weapon) predicate.JiangHuRen

HasWeaponWith applies the HasEdge predicate on the "weapon" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.JiangHuRen

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.JiangHuRen

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.JiangHuRen

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.JiangHuRen

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.JiangHuRen

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.JiangHuRen

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.JiangHuRen

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.JiangHuRen

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.JiangHuRen

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.JiangHuRen

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.JiangHuRen

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.JiangHuRen

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.JiangHuRen

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.JiangHuRen

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.JiangHuRen

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.JiangHuRen

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.JiangHuRen

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.JiangHuRen

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.JiangHuRen

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.JiangHuRen

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.JiangHuRen

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.JiangHuRen

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.JiangHuRen

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.JiangHuRen) predicate.JiangHuRen

Or groups list of predicates with the OR operator between them.

func Sex

func Sex(v bool) predicate.JiangHuRen

Sex applies equality check predicate on the "sex" field. It's identical to SexEQ.

func SexEQ

func SexEQ(v bool) predicate.JiangHuRen

SexEQ applies the EQ predicate on the "sex" field.

func SexNEQ

func SexNEQ(v bool) predicate.JiangHuRen

SexNEQ applies the NEQ predicate on the "sex" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.JiangHuRen

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.JiangHuRen

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.JiangHuRen

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.JiangHuRen

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.JiangHuRen

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.JiangHuRen

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.JiangHuRen

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.JiangHuRen

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.JiangHuRen

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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