project

package
v0.0.0-...-661c6f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the project type in the database.
	Label = "project"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldProjectName holds the string denoting the project_name field in the database.
	FieldProjectName = "project_name"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldCredentials holds the string denoting the credentials field in the database.
	FieldCredentials = "credentials"
	// FieldClientKey holds the string denoting the client_key field in the database.
	FieldClientKey = "client_key"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the project in the database.
	Table = "projects"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "projects"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() util.Datetime
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() util.Datetime
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() util.Datetime
	// ProjectNameValidator is a validator for the "project_name" field. It is called by the builders before save.
	ProjectNameValidator func(string) error
	// ProjectIDValidator is a validator for the "project_id" field. It is called by the builders before save.
	ProjectIDValidator func(string) error
	// CredentialsValidator is a validator for the "credentials" field. It is called by the builders before save.
	CredentialsValidator func([]byte) error
	// DefaultClientKey holds the default value on creation for the "client_key" field.
	DefaultClientKey func() string
	// ClientKeyValidator is a validator for the "client_key" field. It is called by the builders before save.
	ClientKeyValidator func(string) error
	// UserIDValidator is a validator for the "user_id" field. It is called by the builders before save.
	UserIDValidator func(int) error
)

Columns holds all SQL columns for project fields.

Functions

func And

func And(predicates ...predicate.Project) predicate.Project

And groups predicates with the AND operator between them.

func ClientKey

func ClientKey(v string) predicate.Project

ClientKey applies equality check predicate on the "client_key" field. It's identical to ClientKeyEQ.

func ClientKeyContains

func ClientKeyContains(v string) predicate.Project

ClientKeyContains applies the Contains predicate on the "client_key" field.

func ClientKeyContainsFold

func ClientKeyContainsFold(v string) predicate.Project

ClientKeyContainsFold applies the ContainsFold predicate on the "client_key" field.

func ClientKeyEQ

func ClientKeyEQ(v string) predicate.Project

ClientKeyEQ applies the EQ predicate on the "client_key" field.

func ClientKeyEqualFold

func ClientKeyEqualFold(v string) predicate.Project

ClientKeyEqualFold applies the EqualFold predicate on the "client_key" field.

func ClientKeyGT

func ClientKeyGT(v string) predicate.Project

ClientKeyGT applies the GT predicate on the "client_key" field.

func ClientKeyGTE

func ClientKeyGTE(v string) predicate.Project

ClientKeyGTE applies the GTE predicate on the "client_key" field.

func ClientKeyHasPrefix

func ClientKeyHasPrefix(v string) predicate.Project

ClientKeyHasPrefix applies the HasPrefix predicate on the "client_key" field.

func ClientKeyHasSuffix

func ClientKeyHasSuffix(v string) predicate.Project

ClientKeyHasSuffix applies the HasSuffix predicate on the "client_key" field.

func ClientKeyIn

func ClientKeyIn(vs ...string) predicate.Project

ClientKeyIn applies the In predicate on the "client_key" field.

func ClientKeyLT

func ClientKeyLT(v string) predicate.Project

ClientKeyLT applies the LT predicate on the "client_key" field.

func ClientKeyLTE

func ClientKeyLTE(v string) predicate.Project

ClientKeyLTE applies the LTE predicate on the "client_key" field.

func ClientKeyNEQ

func ClientKeyNEQ(v string) predicate.Project

ClientKeyNEQ applies the NEQ predicate on the "client_key" field.

func ClientKeyNotIn

func ClientKeyNotIn(vs ...string) predicate.Project

ClientKeyNotIn applies the NotIn predicate on the "client_key" field.

func CreatedAt

func CreatedAt(v util.Datetime) predicate.Project

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

func CreatedAtEQ

func CreatedAtEQ(v util.Datetime) predicate.Project

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

func CreatedAtGT

func CreatedAtGT(v util.Datetime) predicate.Project

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

func CreatedAtGTE

func CreatedAtGTE(v util.Datetime) predicate.Project

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

func CreatedAtIn

func CreatedAtIn(vs ...util.Datetime) predicate.Project

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

func CreatedAtLT

func CreatedAtLT(v util.Datetime) predicate.Project

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

func CreatedAtLTE

func CreatedAtLTE(v util.Datetime) predicate.Project

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

func CreatedAtNEQ

func CreatedAtNEQ(v util.Datetime) predicate.Project

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

func CreatedAtNotIn

func CreatedAtNotIn(vs ...util.Datetime) predicate.Project

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

func Credentials

func Credentials(v []byte) predicate.Project

Credentials applies equality check predicate on the "credentials" field. It's identical to CredentialsEQ.

func CredentialsEQ

func CredentialsEQ(v []byte) predicate.Project

CredentialsEQ applies the EQ predicate on the "credentials" field.

func CredentialsGT

func CredentialsGT(v []byte) predicate.Project

CredentialsGT applies the GT predicate on the "credentials" field.

func CredentialsGTE

func CredentialsGTE(v []byte) predicate.Project

CredentialsGTE applies the GTE predicate on the "credentials" field.

func CredentialsIn

func CredentialsIn(vs ...[]byte) predicate.Project

CredentialsIn applies the In predicate on the "credentials" field.

func CredentialsLT

func CredentialsLT(v []byte) predicate.Project

CredentialsLT applies the LT predicate on the "credentials" field.

func CredentialsLTE

func CredentialsLTE(v []byte) predicate.Project

CredentialsLTE applies the LTE predicate on the "credentials" field.

func CredentialsNEQ

func CredentialsNEQ(v []byte) predicate.Project

CredentialsNEQ applies the NEQ predicate on the "credentials" field.

func CredentialsNotIn

func CredentialsNotIn(vs ...[]byte) predicate.Project

CredentialsNotIn applies the NotIn predicate on the "credentials" field.

func HasUser

func HasUser() predicate.Project

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Project

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

func ID

func ID(id int) predicate.Project

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Project

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Project

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Project

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Project

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Project

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Project

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Project) predicate.Project

Or groups predicates with the OR operator between them.

func ProjectID

func ProjectID(v string) predicate.Project

ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.

func ProjectIDContains

func ProjectIDContains(v string) predicate.Project

ProjectIDContains applies the Contains predicate on the "project_id" field.

func ProjectIDContainsFold

func ProjectIDContainsFold(v string) predicate.Project

ProjectIDContainsFold applies the ContainsFold predicate on the "project_id" field.

func ProjectIDEQ

func ProjectIDEQ(v string) predicate.Project

ProjectIDEQ applies the EQ predicate on the "project_id" field.

func ProjectIDEqualFold

func ProjectIDEqualFold(v string) predicate.Project

ProjectIDEqualFold applies the EqualFold predicate on the "project_id" field.

func ProjectIDGT

func ProjectIDGT(v string) predicate.Project

ProjectIDGT applies the GT predicate on the "project_id" field.

func ProjectIDGTE

func ProjectIDGTE(v string) predicate.Project

ProjectIDGTE applies the GTE predicate on the "project_id" field.

func ProjectIDHasPrefix

func ProjectIDHasPrefix(v string) predicate.Project

ProjectIDHasPrefix applies the HasPrefix predicate on the "project_id" field.

func ProjectIDHasSuffix

func ProjectIDHasSuffix(v string) predicate.Project

ProjectIDHasSuffix applies the HasSuffix predicate on the "project_id" field.

func ProjectIDIn

func ProjectIDIn(vs ...string) predicate.Project

ProjectIDIn applies the In predicate on the "project_id" field.

func ProjectIDLT

func ProjectIDLT(v string) predicate.Project

ProjectIDLT applies the LT predicate on the "project_id" field.

func ProjectIDLTE

func ProjectIDLTE(v string) predicate.Project

ProjectIDLTE applies the LTE predicate on the "project_id" field.

func ProjectIDNEQ

func ProjectIDNEQ(v string) predicate.Project

ProjectIDNEQ applies the NEQ predicate on the "project_id" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...string) predicate.Project

ProjectIDNotIn applies the NotIn predicate on the "project_id" field.

func ProjectName

func ProjectName(v string) predicate.Project

ProjectName applies equality check predicate on the "project_name" field. It's identical to ProjectNameEQ.

func ProjectNameContains

func ProjectNameContains(v string) predicate.Project

ProjectNameContains applies the Contains predicate on the "project_name" field.

func ProjectNameContainsFold

func ProjectNameContainsFold(v string) predicate.Project

ProjectNameContainsFold applies the ContainsFold predicate on the "project_name" field.

func ProjectNameEQ

func ProjectNameEQ(v string) predicate.Project

ProjectNameEQ applies the EQ predicate on the "project_name" field.

func ProjectNameEqualFold

func ProjectNameEqualFold(v string) predicate.Project

ProjectNameEqualFold applies the EqualFold predicate on the "project_name" field.

func ProjectNameGT

func ProjectNameGT(v string) predicate.Project

ProjectNameGT applies the GT predicate on the "project_name" field.

func ProjectNameGTE

func ProjectNameGTE(v string) predicate.Project

ProjectNameGTE applies the GTE predicate on the "project_name" field.

func ProjectNameHasPrefix

func ProjectNameHasPrefix(v string) predicate.Project

ProjectNameHasPrefix applies the HasPrefix predicate on the "project_name" field.

func ProjectNameHasSuffix

func ProjectNameHasSuffix(v string) predicate.Project

ProjectNameHasSuffix applies the HasSuffix predicate on the "project_name" field.

func ProjectNameIn

func ProjectNameIn(vs ...string) predicate.Project

ProjectNameIn applies the In predicate on the "project_name" field.

func ProjectNameLT

func ProjectNameLT(v string) predicate.Project

ProjectNameLT applies the LT predicate on the "project_name" field.

func ProjectNameLTE

func ProjectNameLTE(v string) predicate.Project

ProjectNameLTE applies the LTE predicate on the "project_name" field.

func ProjectNameNEQ

func ProjectNameNEQ(v string) predicate.Project

ProjectNameNEQ applies the NEQ predicate on the "project_name" field.

func ProjectNameNotIn

func ProjectNameNotIn(vs ...string) predicate.Project

ProjectNameNotIn applies the NotIn predicate on the "project_name" field.

func UpdatedAt

func UpdatedAt(v util.Datetime) predicate.Project

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

func UpdatedAtEQ

func UpdatedAtEQ(v util.Datetime) predicate.Project

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

func UpdatedAtGT

func UpdatedAtGT(v util.Datetime) predicate.Project

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

func UpdatedAtGTE

func UpdatedAtGTE(v util.Datetime) predicate.Project

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

func UpdatedAtIn

func UpdatedAtIn(vs ...util.Datetime) predicate.Project

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

func UpdatedAtLT

func UpdatedAtLT(v util.Datetime) predicate.Project

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

func UpdatedAtLTE

func UpdatedAtLTE(v util.Datetime) predicate.Project

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v util.Datetime) predicate.Project

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...util.Datetime) predicate.Project

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

func UserID

func UserID(v int) predicate.Project

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.Project

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.Project

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.Project

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.Project

UserIDNotIn applies the NotIn predicate on the "user_id" 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