Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Sites) predicate.Sites
- func CreatedAt(v time.Time) predicate.Sites
- func CreatedAtEQ(v time.Time) predicate.Sites
- func CreatedAtGT(v time.Time) predicate.Sites
- func CreatedAtGTE(v time.Time) predicate.Sites
- func CreatedAtIn(vs ...time.Time) predicate.Sites
- func CreatedAtLT(v time.Time) predicate.Sites
- func CreatedAtLTE(v time.Time) predicate.Sites
- func CreatedAtNEQ(v time.Time) predicate.Sites
- func CreatedAtNotIn(vs ...time.Time) predicate.Sites
- func Domain(v string) predicate.Sites
- func DomainContains(v string) predicate.Sites
- func DomainContainsFold(v string) predicate.Sites
- func DomainEQ(v string) predicate.Sites
- func DomainEqualFold(v string) predicate.Sites
- func DomainGT(v string) predicate.Sites
- func DomainGTE(v string) predicate.Sites
- func DomainHasPrefix(v string) predicate.Sites
- func DomainHasSuffix(v string) predicate.Sites
- func DomainIn(vs ...string) predicate.Sites
- func DomainLT(v string) predicate.Sites
- func DomainLTE(v string) predicate.Sites
- func DomainNEQ(v string) predicate.Sites
- func DomainNotIn(vs ...string) predicate.Sites
- func HasBlocks() predicate.Sites
- func HasBlocksWith(preds ...predicate.Blocks) predicate.Sites
- func HasCategories() predicate.Sites
- func HasCategoriesWith(preds ...predicate.Categories) predicate.Sites
- func HasSitesCategories() predicate.Sites
- func HasSitesCategoriesWith(preds ...predicate.SitesCategories) predicate.Sites
- func ID(id int) predicate.Sites
- func IDEQ(id int) predicate.Sites
- func IDGT(id int) predicate.Sites
- func IDGTE(id int) predicate.Sites
- func IDIn(ids ...int) predicate.Sites
- func IDLT(id int) predicate.Sites
- func IDLTE(id int) predicate.Sites
- func IDNEQ(id int) predicate.Sites
- func IDNotIn(ids ...int) predicate.Sites
- func Not(p predicate.Sites) predicate.Sites
- func Or(predicates ...predicate.Sites) predicate.Sites
- func UpdatedAt(v time.Time) predicate.Sites
- func UpdatedAtEQ(v time.Time) predicate.Sites
- func UpdatedAtGT(v time.Time) predicate.Sites
- func UpdatedAtGTE(v time.Time) predicate.Sites
- func UpdatedAtIn(vs ...time.Time) predicate.Sites
- func UpdatedAtLT(v time.Time) predicate.Sites
- func UpdatedAtLTE(v time.Time) predicate.Sites
- func UpdatedAtNEQ(v time.Time) predicate.Sites
- func UpdatedAtNotIn(vs ...time.Time) predicate.Sites
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlocks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlocksCount(opts ...sql.OrderTermOption) OrderOption
- func ByCategories(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCategoriesCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDomain(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySitesCategories(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySitesCategoriesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var ( // CategoriesPrimaryKey and CategoriesColumn2 are the table columns denoting the // primary key for the categories relation (M2M). CategoriesPrimaryKey = []string{"sites_id", "categories_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDomain, }
Columns holds all SQL columns for sites fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Domain ¶
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEqualFold ¶
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainHasPrefix ¶
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainNotIn ¶
DomainNotIn applies the NotIn predicate on the "domain" field.
func HasBlocksWith ¶
HasBlocksWith applies the HasEdge predicate on the "blocks" edge with a given conditions (other predicates).
func HasCategories ¶
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 ¶
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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.