blog

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the blog type in the database.
	Label = "blog"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOid holds the string denoting the oid field in the database.
	FieldOid = "oid"
	// EdgeAdmins holds the string denoting the admins edge name in mutations.
	EdgeAdmins = "admins"
	// UserFieldID holds the string denoting the ID field of the User.
	UserFieldID = "oid"
	// Table holds the table name of the blog in the database.
	Table = "blogs"
	// AdminsTable is the table that holds the admins relation/edge.
	AdminsTable = "users"
	// AdminsInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	AdminsInverseTable = "users"
	// AdminsColumn is the table column denoting the admins relation/edge.
	AdminsColumn = "blog_admins"
)

Variables

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

Columns holds all SQL columns for blog fields.

Functions

func And

func And(predicates ...predicate.Blog) predicate.Blog

And groups predicates with the AND operator between them.

func HasAdmins

func HasAdmins() predicate.Blog

HasAdmins applies the HasEdge predicate on the "admins" edge.

func HasAdminsWith

func HasAdminsWith(preds ...predicate.User) predicate.Blog

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

func ID

func ID(id int) predicate.Blog

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Blog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Blog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Blog

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Blog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Blog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Blog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Oid added in v0.11.5

func Oid(v int) predicate.Blog

Oid applies equality check predicate on the "oid" field. It's identical to OidEQ.

func OidEQ added in v0.11.5

func OidEQ(v int) predicate.Blog

OidEQ applies the EQ predicate on the "oid" field.

func OidGT added in v0.11.5

func OidGT(v int) predicate.Blog

OidGT applies the GT predicate on the "oid" field.

func OidGTE added in v0.11.5

func OidGTE(v int) predicate.Blog

OidGTE applies the GTE predicate on the "oid" field.

func OidIn added in v0.11.5

func OidIn(vs ...int) predicate.Blog

OidIn applies the In predicate on the "oid" field.

func OidLT added in v0.11.5

func OidLT(v int) predicate.Blog

OidLT applies the LT predicate on the "oid" field.

func OidLTE added in v0.11.5

func OidLTE(v int) predicate.Blog

OidLTE applies the LTE predicate on the "oid" field.

func OidNEQ added in v0.11.5

func OidNEQ(v int) predicate.Blog

OidNEQ applies the NEQ predicate on the "oid" field.

func OidNotIn added in v0.11.5

func OidNotIn(vs ...int) predicate.Blog

OidNotIn applies the NotIn predicate on the "oid" field.

func Or

func Or(predicates ...predicate.Blog) predicate.Blog

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