sites

package
v0.0.0-...-fa2c683 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sites type in the database.
	Label = "sites"
	// 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"
	// FieldDomain holds the string denoting the domain field in the database.
	FieldDomain = "domain"
	// EdgeBlocks holds the string denoting the blocks edge name in mutations.
	EdgeBlocks = "blocks"
	// EdgeCategories holds the string denoting the categories edge name in mutations.
	EdgeCategories = "categories"
	// EdgeSitesCategories holds the string denoting the sites_categories edge name in mutations.
	EdgeSitesCategories = "sites_categories"
	// Table holds the table name of the sites in the database.
	Table = "sites"
	// BlocksTable is the table that holds the blocks relation/edge.
	BlocksTable = "blocks"
	// BlocksInverseTable is the table name for the Blocks entity.
	// It exists in this package in order to avoid circular dependency with the "blocks" package.
	BlocksInverseTable = "blocks"
	// BlocksColumn is the table column denoting the blocks relation/edge.
	BlocksColumn = "site_id"
	// CategoriesTable is the table that holds the categories relation/edge. The primary key declared below.
	CategoriesTable = "sites_categories"
	// CategoriesInverseTable is the table name for the Categories entity.
	// It exists in this package in order to avoid circular dependency with the "categories" package.
	CategoriesInverseTable = "categories"
	// SitesCategoriesTable is the table that holds the sites_categories relation/edge.
	SitesCategoriesTable = "sites_categories"
	// SitesCategoriesInverseTable is the table name for the SitesCategories entity.
	// It exists in this package in order to avoid circular dependency with the "sitescategories" package.
	SitesCategoriesInverseTable = "sites_categories"
	// SitesCategoriesColumn is the table column denoting the sites_categories relation/edge.
	SitesCategoriesColumn = "sites_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)
View Source
var (
	// CategoriesPrimaryKey and CategoriesColumn2 are the table columns denoting the
	// primary key for the categories relation (M2M).
	CategoriesPrimaryKey = []string{"sites_id", "categories_id"}
)

Columns holds all SQL columns for sites fields.

Functions

func And

func And(predicates ...predicate.Sites) predicate.Sites

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Sites

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Sites

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Sites

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Sites

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

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Sites

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Sites

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Sites

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Sites

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

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Sites

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

func Domain

func Domain(v string) predicate.Sites

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.Sites

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.Sites

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.Sites

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.Sites

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.Sites

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.Sites

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Sites

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Sites

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.Sites

DomainIn applies the In predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.Sites

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.Sites

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.Sites

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.Sites

DomainNotIn applies the NotIn predicate on the "domain" field.

func HasBlocks

func HasBlocks() predicate.Sites

HasBlocks applies the HasEdge predicate on the "blocks" edge.

func HasBlocksWith

func HasBlocksWith(preds ...predicate.Blocks) predicate.Sites

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

func HasCategories

func HasCategories() predicate.Sites

HasCategories applies the HasEdge predicate on the "categories" edge.

func HasCategoriesWith

func HasCategoriesWith(preds ...predicate.Categories) predicate.Sites

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

func HasSitesCategories

func HasSitesCategories() predicate.Sites

HasSitesCategories applies the HasEdge predicate on the "sites_categories" edge.

func HasSitesCategoriesWith

func HasSitesCategoriesWith(preds ...predicate.SitesCategories) predicate.Sites

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

func ID

func ID(id int) predicate.Sites

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Sites

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Sites

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Sites

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Sites

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Sites

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Sites

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Sites

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Sites

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Sites

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Sites

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

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Sites

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Sites

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Sites

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Sites

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Sites

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

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 Sites queries.

func ByBlocks

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

ByBlocks orders the results by blocks terms.

func ByBlocksCount

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

ByBlocksCount orders the results by blocks count.

func ByCategories

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

ByCategories orders the results by categories terms.

func ByCategoriesCount

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

ByCategoriesCount orders the results by categories count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDomain

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

ByDomain orders the results by the domain field.

func ByID

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

ByID orders the results by the id field.

func BySitesCategories

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

BySitesCategories orders the results by sites_categories terms.

func BySitesCategoriesCount

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

BySitesCategoriesCount orders the results by sites_categories count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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