blog

package
v0.0.0-...-90870c5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 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

func Oid(v int) predicate.Blog

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

func OidEQ

func OidEQ(v int) predicate.Blog

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

func OidGT

func OidGT(v int) predicate.Blog

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

func OidGTE

func OidGTE(v int) predicate.Blog

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

func OidIn

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

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

func OidLT

func OidLT(v int) predicate.Blog

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

func OidLTE

func OidLTE(v int) predicate.Blog

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

func OidNEQ

func OidNEQ(v int) predicate.Blog

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

func OidNotIn

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Blog queries.

func ByAdmins

func ByAdmins(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAdmins orders the results by admins terms.

func ByAdminsCount

func ByAdminsCount(opts ...sql.OrderTermOption) OrderOption

ByAdminsCount orders the results by admins count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByOid

func ByOid(opts ...sql.OrderTermOption) OrderOption

ByOid orders the results by the oid field.

Jump to

Keyboard shortcuts

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