naturalperson

package
v0.0.0-...-3ebf473 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the naturalperson type in the database.
	Label = "natural_person"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDisplayname holds the string denoting the displayname field in the database.
	FieldDisplayname = "displayname"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// 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"
	// EdgeKeys holds the string denoting the keys edge name in mutations.
	EdgeKeys = "keys"
	// EdgeCredentials holds the string denoting the credentials edge name in mutations.
	EdgeCredentials = "credentials"
	// Table holds the table name of the naturalperson in the database.
	Table = "natural_persons"
	// KeysTable is the table that holds the keys relation/edge.
	KeysTable = "private_keys"
	// KeysInverseTable is the table name for the PrivateKey entity.
	// It exists in this package in order to avoid circular dependency with the "privatekey" package.
	KeysInverseTable = "private_keys"
	// KeysColumn is the table column denoting the keys relation/edge.
	KeysColumn = "natural_person_keys"
	// CredentialsTable is the table that holds the credentials relation/edge.
	CredentialsTable = "credentials"
	// CredentialsInverseTable is the table name for the Credential entity.
	// It exists in this package in order to avoid circular dependency with the "credential" package.
	CredentialsInverseTable = "credentials"
	// CredentialsColumn is the table column denoting the credentials relation/edge.
	CredentialsColumn = "natural_person_credentials"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func([]byte) error
	// 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
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for naturalperson fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.NaturalPerson

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.NaturalPerson

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.NaturalPerson

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.NaturalPerson

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.NaturalPerson

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.NaturalPerson

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.NaturalPerson

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

func CreatedAtNotIn

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

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

func Displayname

func Displayname(v string) predicate.NaturalPerson

Displayname applies equality check predicate on the "displayname" field. It's identical to DisplaynameEQ.

func DisplaynameContains

func DisplaynameContains(v string) predicate.NaturalPerson

DisplaynameContains applies the Contains predicate on the "displayname" field.

func DisplaynameContainsFold

func DisplaynameContainsFold(v string) predicate.NaturalPerson

DisplaynameContainsFold applies the ContainsFold predicate on the "displayname" field.

func DisplaynameEQ

func DisplaynameEQ(v string) predicate.NaturalPerson

DisplaynameEQ applies the EQ predicate on the "displayname" field.

func DisplaynameEqualFold

func DisplaynameEqualFold(v string) predicate.NaturalPerson

DisplaynameEqualFold applies the EqualFold predicate on the "displayname" field.

func DisplaynameGT

func DisplaynameGT(v string) predicate.NaturalPerson

DisplaynameGT applies the GT predicate on the "displayname" field.

func DisplaynameGTE

func DisplaynameGTE(v string) predicate.NaturalPerson

DisplaynameGTE applies the GTE predicate on the "displayname" field.

func DisplaynameHasPrefix

func DisplaynameHasPrefix(v string) predicate.NaturalPerson

DisplaynameHasPrefix applies the HasPrefix predicate on the "displayname" field.

func DisplaynameHasSuffix

func DisplaynameHasSuffix(v string) predicate.NaturalPerson

DisplaynameHasSuffix applies the HasSuffix predicate on the "displayname" field.

func DisplaynameIn

func DisplaynameIn(vs ...string) predicate.NaturalPerson

DisplaynameIn applies the In predicate on the "displayname" field.

func DisplaynameIsNil

func DisplaynameIsNil() predicate.NaturalPerson

DisplaynameIsNil applies the IsNil predicate on the "displayname" field.

func DisplaynameLT

func DisplaynameLT(v string) predicate.NaturalPerson

DisplaynameLT applies the LT predicate on the "displayname" field.

func DisplaynameLTE

func DisplaynameLTE(v string) predicate.NaturalPerson

DisplaynameLTE applies the LTE predicate on the "displayname" field.

func DisplaynameNEQ

func DisplaynameNEQ(v string) predicate.NaturalPerson

DisplaynameNEQ applies the NEQ predicate on the "displayname" field.

func DisplaynameNotIn

func DisplaynameNotIn(vs ...string) predicate.NaturalPerson

DisplaynameNotIn applies the NotIn predicate on the "displayname" field.

func DisplaynameNotNil

func DisplaynameNotNil() predicate.NaturalPerson

DisplaynameNotNil applies the NotNil predicate on the "displayname" field.

func HasCredentials

func HasCredentials() predicate.NaturalPerson

HasCredentials applies the HasEdge predicate on the "credentials" edge.

func HasCredentialsWith

func HasCredentialsWith(preds ...predicate.Credential) predicate.NaturalPerson

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

func HasKeys

func HasKeys() predicate.NaturalPerson

HasKeys applies the HasEdge predicate on the "keys" edge.

func HasKeysWith

func HasKeysWith(preds ...predicate.PrivateKey) predicate.NaturalPerson

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.NaturalPerson

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.NaturalPerson

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.NaturalPerson

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.NaturalPerson

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.NaturalPerson

IDNotIn applies the NotIn predicate on the ID field.

func Name

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

func NameContains

func NameContains(v string) predicate.NaturalPerson

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

func NameContainsFold

func NameContainsFold(v string) predicate.NaturalPerson

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

func NameEQ

func NameEQ(v string) predicate.NaturalPerson

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

func NameEqualFold

func NameEqualFold(v string) predicate.NaturalPerson

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

func NameGT

func NameGT(v string) predicate.NaturalPerson

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

func NameGTE

func NameGTE(v string) predicate.NaturalPerson

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.NaturalPerson

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.NaturalPerson

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.NaturalPerson

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

func NameLTE

func NameLTE(v string) predicate.NaturalPerson

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

func NameNEQ

func NameNEQ(v string) predicate.NaturalPerson

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Password

func Password(v []byte) predicate.NaturalPerson

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordEQ

func PasswordEQ(v []byte) predicate.NaturalPerson

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordGT

func PasswordGT(v []byte) predicate.NaturalPerson

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v []byte) predicate.NaturalPerson

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...[]byte) predicate.NaturalPerson

PasswordIn applies the In predicate on the "password" field.

func PasswordLT

func PasswordLT(v []byte) predicate.NaturalPerson

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v []byte) predicate.NaturalPerson

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v []byte) predicate.NaturalPerson

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...[]byte) predicate.NaturalPerson

PasswordNotIn applies the NotIn predicate on the "password" field.

func Type

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.NaturalPerson

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.NaturalPerson

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.NaturalPerson

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.NaturalPerson

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.NaturalPerson

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.NaturalPerson

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.NaturalPerson

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.NaturalPerson

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.NaturalPerson

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.NaturalPerson

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.NaturalPerson

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.NaturalPerson

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.NaturalPerson

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.NaturalPerson

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.NaturalPerson

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.NaturalPerson

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.NaturalPerson

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.NaturalPerson

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.NaturalPerson

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.NaturalPerson

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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