access

package
v0.0.0-...-fb67617 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the access type in the database.
	Label = "access"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreator holds the string denoting the creator field in the database.
	FieldCreator = "creator"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"

	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"

	// Table holds the table name of the access in the database.
	Table = "accesses"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "accesses"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_accesses"
)

Variables

View Source
var (
	// CreatorValidator is a validator for the "creator" field. It is called by the builders before save.
	CreatorValidator func(string) error
	// 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 access fields.

View Source
var ForeignKeys = []string{
	"user_accesses",
}

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

Functions

func And

func And(predicates ...predicate.Access) predicate.Access

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

func CreatedAt

func CreatedAt(v int64) predicate.Access

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

func CreatedAtEQ

func CreatedAtEQ(v int64) predicate.Access

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

func CreatedAtGT

func CreatedAtGT(v int64) predicate.Access

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

func CreatedAtGTE

func CreatedAtGTE(v int64) predicate.Access

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

func CreatedAtIn

func CreatedAtIn(vs ...int64) predicate.Access

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

func CreatedAtLT

func CreatedAtLT(v int64) predicate.Access

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

func CreatedAtLTE

func CreatedAtLTE(v int64) predicate.Access

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

func CreatedAtNEQ

func CreatedAtNEQ(v int64) predicate.Access

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

func CreatedAtNotIn

func CreatedAtNotIn(vs ...int64) predicate.Access

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

func Creator

func Creator(v string) predicate.Access

Creator applies equality check predicate on the "creator" field. It's identical to CreatorEQ.

func CreatorContains

func CreatorContains(v string) predicate.Access

CreatorContains applies the Contains predicate on the "creator" field.

func CreatorContainsFold

func CreatorContainsFold(v string) predicate.Access

CreatorContainsFold applies the ContainsFold predicate on the "creator" field.

func CreatorEQ

func CreatorEQ(v string) predicate.Access

CreatorEQ applies the EQ predicate on the "creator" field.

func CreatorEqualFold

func CreatorEqualFold(v string) predicate.Access

CreatorEqualFold applies the EqualFold predicate on the "creator" field.

func CreatorGT

func CreatorGT(v string) predicate.Access

CreatorGT applies the GT predicate on the "creator" field.

func CreatorGTE

func CreatorGTE(v string) predicate.Access

CreatorGTE applies the GTE predicate on the "creator" field.

func CreatorHasPrefix

func CreatorHasPrefix(v string) predicate.Access

CreatorHasPrefix applies the HasPrefix predicate on the "creator" field.

func CreatorHasSuffix

func CreatorHasSuffix(v string) predicate.Access

CreatorHasSuffix applies the HasSuffix predicate on the "creator" field.

func CreatorIn

func CreatorIn(vs ...string) predicate.Access

CreatorIn applies the In predicate on the "creator" field.

func CreatorLT

func CreatorLT(v string) predicate.Access

CreatorLT applies the LT predicate on the "creator" field.

func CreatorLTE

func CreatorLTE(v string) predicate.Access

CreatorLTE applies the LTE predicate on the "creator" field.

func CreatorNEQ

func CreatorNEQ(v string) predicate.Access

CreatorNEQ applies the NEQ predicate on the "creator" field.

func CreatorNotIn

func CreatorNotIn(vs ...string) predicate.Access

CreatorNotIn applies the NotIn predicate on the "creator" field.

func HasOwner

func HasOwner() predicate.Access

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Access

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

func ID

func ID(id string) predicate.Access

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.Access

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Access

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Access

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Access

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Access

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Access

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Access) predicate.Access

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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