Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Scope) predicate.Scope
- func CreatedAt(v time.Time) predicate.Scope
- func CreatedAtEQ(v time.Time) predicate.Scope
- func CreatedAtGT(v time.Time) predicate.Scope
- func CreatedAtGTE(v time.Time) predicate.Scope
- func CreatedAtIn(vs ...time.Time) predicate.Scope
- func CreatedAtLT(v time.Time) predicate.Scope
- func CreatedAtLTE(v time.Time) predicate.Scope
- func CreatedAtNEQ(v time.Time) predicate.Scope
- func CreatedAtNotIn(vs ...time.Time) predicate.Scope
- func CustomID(v string) predicate.Scope
- func CustomIDContains(v string) predicate.Scope
- func CustomIDContainsFold(v string) predicate.Scope
- func CustomIDEQ(v string) predicate.Scope
- func CustomIDEqualFold(v string) predicate.Scope
- func CustomIDGT(v string) predicate.Scope
- func CustomIDGTE(v string) predicate.Scope
- func CustomIDHasPrefix(v string) predicate.Scope
- func CustomIDHasSuffix(v string) predicate.Scope
- func CustomIDIn(vs ...string) predicate.Scope
- func CustomIDLT(v string) predicate.Scope
- func CustomIDLTE(v string) predicate.Scope
- func CustomIDNEQ(v string) predicate.Scope
- func CustomIDNotIn(vs ...string) predicate.Scope
- func DeletedAt(v time.Time) predicate.Scope
- func DeletedAtEQ(v time.Time) predicate.Scope
- func DeletedAtGT(v time.Time) predicate.Scope
- func DeletedAtGTE(v time.Time) predicate.Scope
- func DeletedAtIn(vs ...time.Time) predicate.Scope
- func DeletedAtIsNil() predicate.Scope
- func DeletedAtLT(v time.Time) predicate.Scope
- func DeletedAtLTE(v time.Time) predicate.Scope
- func DeletedAtNEQ(v time.Time) predicate.Scope
- func DeletedAtNotIn(vs ...time.Time) predicate.Scope
- func DeletedAtNotNil() predicate.Scope
- func Domain(v string) predicate.Scope
- func DomainContains(v string) predicate.Scope
- func DomainContainsFold(v string) predicate.Scope
- func DomainEQ(v string) predicate.Scope
- func DomainEqualFold(v string) predicate.Scope
- func DomainGT(v string) predicate.Scope
- func DomainGTE(v string) predicate.Scope
- func DomainHasPrefix(v string) predicate.Scope
- func DomainHasSuffix(v string) predicate.Scope
- func DomainIn(vs ...string) predicate.Scope
- func DomainLT(v string) predicate.Scope
- func DomainLTE(v string) predicate.Scope
- func DomainNEQ(v string) predicate.Scope
- func DomainNotIn(vs ...string) predicate.Scope
- func HasFacts() predicate.Scope
- func HasFactsWith(preds ...predicate.Fact) predicate.Scope
- func ID(id string) predicate.Scope
- func IDContainsFold(id string) predicate.Scope
- func IDEQ(id string) predicate.Scope
- func IDEqualFold(id string) predicate.Scope
- func IDGT(id string) predicate.Scope
- func IDGTE(id string) predicate.Scope
- func IDIn(ids ...string) predicate.Scope
- func IDLT(id string) predicate.Scope
- func IDLTE(id string) predicate.Scope
- func IDNEQ(id string) predicate.Scope
- func IDNotIn(ids ...string) predicate.Scope
- func Nonce(v string) predicate.Scope
- func NonceContains(v string) predicate.Scope
- func NonceContainsFold(v string) predicate.Scope
- func NonceEQ(v string) predicate.Scope
- func NonceEqualFold(v string) predicate.Scope
- func NonceGT(v string) predicate.Scope
- func NonceGTE(v string) predicate.Scope
- func NonceHasPrefix(v string) predicate.Scope
- func NonceHasSuffix(v string) predicate.Scope
- func NonceIn(vs ...string) predicate.Scope
- func NonceLT(v string) predicate.Scope
- func NonceLTE(v string) predicate.Scope
- func NonceNEQ(v string) predicate.Scope
- func NonceNotIn(vs ...string) predicate.Scope
- func Not(p predicate.Scope) predicate.Scope
- func Or(predicates ...predicate.Scope) predicate.Scope
- func UpdatedAt(v time.Time) predicate.Scope
- func UpdatedAtEQ(v time.Time) predicate.Scope
- func UpdatedAtGT(v time.Time) predicate.Scope
- func UpdatedAtGTE(v time.Time) predicate.Scope
- func UpdatedAtIn(vs ...time.Time) predicate.Scope
- func UpdatedAtLT(v time.Time) predicate.Scope
- func UpdatedAtLTE(v time.Time) predicate.Scope
- func UpdatedAtNEQ(v time.Time) predicate.Scope
- func UpdatedAtNotIn(vs ...time.Time) predicate.Scope
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCustomID(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDomain(opts ...sql.OrderTermOption) OrderOption
- func ByFacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFactsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNonce(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the scope type in the database. Label = "scope" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldCustomID holds the string denoting the custom_id field in the database. FieldCustomID = "custom_id" // FieldNonce holds the string denoting the nonce field in the database. FieldNonce = "nonce" // FieldDomain holds the string denoting the domain field in the database. FieldDomain = "domain" // EdgeFacts holds the string denoting the facts edge name in mutations. EdgeFacts = "facts" // Table holds the table name of the scope in the database. Table = "scopes" // FactsTable is the table that holds the facts relation/edge. FactsTable = "facts" // FactsInverseTable is the table name for the Fact entity. // It exists in this package in order to avoid circular dependency with the "fact" package. FactsInverseTable = "facts" // FactsColumn is the table column denoting the facts relation/edge. FactsColumn = "scope_facts" )
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 // DefaultNonce holds the default value on creation for the "nonce" field. DefaultNonce func() string // DefaultID holds the default value on creation for the "id" field. DefaultID func() string // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldCustomID, FieldNonce, FieldDomain, }
Columns holds all SQL columns for scope 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 CustomID ¶
CustomID applies equality check predicate on the "custom_id" field. It's identical to CustomIDEQ.
func CustomIDContains ¶
CustomIDContains applies the Contains predicate on the "custom_id" field.
func CustomIDContainsFold ¶
CustomIDContainsFold applies the ContainsFold predicate on the "custom_id" field.
func CustomIDEQ ¶
CustomIDEQ applies the EQ predicate on the "custom_id" field.
func CustomIDEqualFold ¶
CustomIDEqualFold applies the EqualFold predicate on the "custom_id" field.
func CustomIDGT ¶
CustomIDGT applies the GT predicate on the "custom_id" field.
func CustomIDGTE ¶
CustomIDGTE applies the GTE predicate on the "custom_id" field.
func CustomIDHasPrefix ¶
CustomIDHasPrefix applies the HasPrefix predicate on the "custom_id" field.
func CustomIDHasSuffix ¶
CustomIDHasSuffix applies the HasSuffix predicate on the "custom_id" field.
func CustomIDIn ¶
CustomIDIn applies the In predicate on the "custom_id" field.
func CustomIDLT ¶
CustomIDLT applies the LT predicate on the "custom_id" field.
func CustomIDLTE ¶
CustomIDLTE applies the LTE predicate on the "custom_id" field.
func CustomIDNEQ ¶
CustomIDNEQ applies the NEQ predicate on the "custom_id" field.
func CustomIDNotIn ¶
CustomIDNotIn applies the NotIn predicate on the "custom_id" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_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 HasFactsWith ¶
HasFactsWith applies the HasEdge predicate on the "facts" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func Nonce ¶
Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.
func NonceContains ¶
NonceContains applies the Contains predicate on the "nonce" field.
func NonceContainsFold ¶
NonceContainsFold applies the ContainsFold predicate on the "nonce" field.
func NonceEqualFold ¶
NonceEqualFold applies the EqualFold predicate on the "nonce" field.
func NonceHasPrefix ¶
NonceHasPrefix applies the HasPrefix predicate on the "nonce" field.
func NonceHasSuffix ¶
NonceHasSuffix applies the HasSuffix predicate on the "nonce" field.
func NonceNotIn ¶
NonceNotIn applies the NotIn predicate on the "nonce" field.
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 Scope queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCustomID ¶
func ByCustomID(opts ...sql.OrderTermOption) OrderOption
ByCustomID orders the results by the custom_id field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDomain ¶
func ByDomain(opts ...sql.OrderTermOption) OrderOption
ByDomain orders the results by the domain field.
func ByFacts ¶
func ByFacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFacts orders the results by facts terms.
func ByFactsCount ¶
func ByFactsCount(opts ...sql.OrderTermOption) OrderOption
ByFactsCount orders the results by facts count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNonce ¶
func ByNonce(opts ...sql.OrderTermOption) OrderOption
ByNonce orders the results by the nonce field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.