share

package
v0.0.0-...-bf2c6c7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the share type in the database.
	Label = "share"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEndAt holds the string denoting the end_at field in the database.
	FieldEndAt = "end_at"
	// EdgeView holds the string denoting the view edge name in mutations.
	EdgeView = "view"
	// EdgeCreator holds the string denoting the creator edge name in mutations.
	EdgeCreator = "creator"
	// Table holds the table name of the share in the database.
	Table = "shares"
	// ViewTable is the table the holds the view relation/edge.
	ViewTable = "shares"
	// ViewInverseTable is the table name for the View entity.
	// It exists in this package in order to avoid circular dependency with the "view" package.
	ViewInverseTable = "views"
	// ViewColumn is the table column denoting the view relation/edge.
	ViewColumn = "view_share"
	// CreatorTable is the table the holds the creator relation/edge.
	CreatorTable = "shares"
	// CreatorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	CreatorInverseTable = "users"
	// CreatorColumn is the table column denoting the creator relation/edge.
	CreatorColumn = "user_share"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldEndAt,
}

Columns holds all SQL columns for share fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "shares" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Share) predicate.Share

And groups predicates with the AND operator between them.

func EndAt

func EndAt(v time.Time) predicate.Share

EndAt applies equality check predicate on the "end_at" field. It's identical to EndAtEQ.

func EndAtEQ

func EndAtEQ(v time.Time) predicate.Share

EndAtEQ applies the EQ predicate on the "end_at" field.

func EndAtGT

func EndAtGT(v time.Time) predicate.Share

EndAtGT applies the GT predicate on the "end_at" field.

func EndAtGTE

func EndAtGTE(v time.Time) predicate.Share

EndAtGTE applies the GTE predicate on the "end_at" field.

func EndAtIn

func EndAtIn(vs ...time.Time) predicate.Share

EndAtIn applies the In predicate on the "end_at" field.

func EndAtLT

func EndAtLT(v time.Time) predicate.Share

EndAtLT applies the LT predicate on the "end_at" field.

func EndAtLTE

func EndAtLTE(v time.Time) predicate.Share

EndAtLTE applies the LTE predicate on the "end_at" field.

func EndAtNEQ

func EndAtNEQ(v time.Time) predicate.Share

EndAtNEQ applies the NEQ predicate on the "end_at" field.

func EndAtNotIn

func EndAtNotIn(vs ...time.Time) predicate.Share

EndAtNotIn applies the NotIn predicate on the "end_at" field.

func HasCreator

func HasCreator() predicate.Share

HasCreator applies the HasEdge predicate on the "creator" edge.

func HasCreatorWith

func HasCreatorWith(preds ...predicate.User) predicate.Share

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

func HasView

func HasView() predicate.Share

HasView applies the HasEdge predicate on the "view" edge.

func HasViewWith

func HasViewWith(preds ...predicate.View) predicate.Share

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

func ID

func ID(id int) predicate.Share

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Share

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Share

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Share

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Share

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Share

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Share

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

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