Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DocumentData) predicate.DocumentData
- func CreatedAt(v time.Time) predicate.DocumentData
- func CreatedAtEQ(v time.Time) predicate.DocumentData
- func CreatedAtGT(v time.Time) predicate.DocumentData
- func CreatedAtGTE(v time.Time) predicate.DocumentData
- func CreatedAtIn(vs ...time.Time) predicate.DocumentData
- func CreatedAtIsNil() predicate.DocumentData
- func CreatedAtLT(v time.Time) predicate.DocumentData
- func CreatedAtLTE(v time.Time) predicate.DocumentData
- func CreatedAtNEQ(v time.Time) predicate.DocumentData
- func CreatedAtNotIn(vs ...time.Time) predicate.DocumentData
- func CreatedAtNotNil() predicate.DocumentData
- func CreatedBy(v string) predicate.DocumentData
- func CreatedByContains(v string) predicate.DocumentData
- func CreatedByContainsFold(v string) predicate.DocumentData
- func CreatedByEQ(v string) predicate.DocumentData
- func CreatedByEqualFold(v string) predicate.DocumentData
- func CreatedByGT(v string) predicate.DocumentData
- func CreatedByGTE(v string) predicate.DocumentData
- func CreatedByHasPrefix(v string) predicate.DocumentData
- func CreatedByHasSuffix(v string) predicate.DocumentData
- func CreatedByIn(vs ...string) predicate.DocumentData
- func CreatedByIsNil() predicate.DocumentData
- func CreatedByLT(v string) predicate.DocumentData
- func CreatedByLTE(v string) predicate.DocumentData
- func CreatedByNEQ(v string) predicate.DocumentData
- func CreatedByNotIn(vs ...string) predicate.DocumentData
- func CreatedByNotNil() predicate.DocumentData
- func DeletedAt(v time.Time) predicate.DocumentData
- func DeletedAtEQ(v time.Time) predicate.DocumentData
- func DeletedAtGT(v time.Time) predicate.DocumentData
- func DeletedAtGTE(v time.Time) predicate.DocumentData
- func DeletedAtIn(vs ...time.Time) predicate.DocumentData
- func DeletedAtIsNil() predicate.DocumentData
- func DeletedAtLT(v time.Time) predicate.DocumentData
- func DeletedAtLTE(v time.Time) predicate.DocumentData
- func DeletedAtNEQ(v time.Time) predicate.DocumentData
- func DeletedAtNotIn(vs ...time.Time) predicate.DocumentData
- func DeletedAtNotNil() predicate.DocumentData
- func DeletedBy(v string) predicate.DocumentData
- func DeletedByContains(v string) predicate.DocumentData
- func DeletedByContainsFold(v string) predicate.DocumentData
- func DeletedByEQ(v string) predicate.DocumentData
- func DeletedByEqualFold(v string) predicate.DocumentData
- func DeletedByGT(v string) predicate.DocumentData
- func DeletedByGTE(v string) predicate.DocumentData
- func DeletedByHasPrefix(v string) predicate.DocumentData
- func DeletedByHasSuffix(v string) predicate.DocumentData
- func DeletedByIn(vs ...string) predicate.DocumentData
- func DeletedByIsNil() predicate.DocumentData
- func DeletedByLT(v string) predicate.DocumentData
- func DeletedByLTE(v string) predicate.DocumentData
- func DeletedByNEQ(v string) predicate.DocumentData
- func DeletedByNotIn(vs ...string) predicate.DocumentData
- func DeletedByNotNil() predicate.DocumentData
- func HasOwner() predicate.DocumentData
- func HasOwnerWith(preds ...predicate.Organization) predicate.DocumentData
- func HasTemplate() predicate.DocumentData
- func HasTemplateWith(preds ...predicate.Template) predicate.DocumentData
- func ID(id string) predicate.DocumentData
- func IDContainsFold(id string) predicate.DocumentData
- func IDEQ(id string) predicate.DocumentData
- func IDEqualFold(id string) predicate.DocumentData
- func IDGT(id string) predicate.DocumentData
- func IDGTE(id string) predicate.DocumentData
- func IDIn(ids ...string) predicate.DocumentData
- func IDLT(id string) predicate.DocumentData
- func IDLTE(id string) predicate.DocumentData
- func IDNEQ(id string) predicate.DocumentData
- func IDNotIn(ids ...string) predicate.DocumentData
- func MappingID(v string) predicate.DocumentData
- func MappingIDContains(v string) predicate.DocumentData
- func MappingIDContainsFold(v string) predicate.DocumentData
- func MappingIDEQ(v string) predicate.DocumentData
- func MappingIDEqualFold(v string) predicate.DocumentData
- func MappingIDGT(v string) predicate.DocumentData
- func MappingIDGTE(v string) predicate.DocumentData
- func MappingIDHasPrefix(v string) predicate.DocumentData
- func MappingIDHasSuffix(v string) predicate.DocumentData
- func MappingIDIn(vs ...string) predicate.DocumentData
- func MappingIDLT(v string) predicate.DocumentData
- func MappingIDLTE(v string) predicate.DocumentData
- func MappingIDNEQ(v string) predicate.DocumentData
- func MappingIDNotIn(vs ...string) predicate.DocumentData
- func Not(p predicate.DocumentData) predicate.DocumentData
- func Or(predicates ...predicate.DocumentData) predicate.DocumentData
- func OwnerID(v string) predicate.DocumentData
- func OwnerIDContains(v string) predicate.DocumentData
- func OwnerIDContainsFold(v string) predicate.DocumentData
- func OwnerIDEQ(v string) predicate.DocumentData
- func OwnerIDEqualFold(v string) predicate.DocumentData
- func OwnerIDGT(v string) predicate.DocumentData
- func OwnerIDGTE(v string) predicate.DocumentData
- func OwnerIDHasPrefix(v string) predicate.DocumentData
- func OwnerIDHasSuffix(v string) predicate.DocumentData
- func OwnerIDIn(vs ...string) predicate.DocumentData
- func OwnerIDIsNil() predicate.DocumentData
- func OwnerIDLT(v string) predicate.DocumentData
- func OwnerIDLTE(v string) predicate.DocumentData
- func OwnerIDNEQ(v string) predicate.DocumentData
- func OwnerIDNotIn(vs ...string) predicate.DocumentData
- func OwnerIDNotNil() predicate.DocumentData
- func TagsIsNil() predicate.DocumentData
- func TagsNotNil() predicate.DocumentData
- func TemplateID(v string) predicate.DocumentData
- func TemplateIDContains(v string) predicate.DocumentData
- func TemplateIDContainsFold(v string) predicate.DocumentData
- func TemplateIDEQ(v string) predicate.DocumentData
- func TemplateIDEqualFold(v string) predicate.DocumentData
- func TemplateIDGT(v string) predicate.DocumentData
- func TemplateIDGTE(v string) predicate.DocumentData
- func TemplateIDHasPrefix(v string) predicate.DocumentData
- func TemplateIDHasSuffix(v string) predicate.DocumentData
- func TemplateIDIn(vs ...string) predicate.DocumentData
- func TemplateIDLT(v string) predicate.DocumentData
- func TemplateIDLTE(v string) predicate.DocumentData
- func TemplateIDNEQ(v string) predicate.DocumentData
- func TemplateIDNotIn(vs ...string) predicate.DocumentData
- func UpdatedAt(v time.Time) predicate.DocumentData
- func UpdatedAtEQ(v time.Time) predicate.DocumentData
- func UpdatedAtGT(v time.Time) predicate.DocumentData
- func UpdatedAtGTE(v time.Time) predicate.DocumentData
- func UpdatedAtIn(vs ...time.Time) predicate.DocumentData
- func UpdatedAtIsNil() predicate.DocumentData
- func UpdatedAtLT(v time.Time) predicate.DocumentData
- func UpdatedAtLTE(v time.Time) predicate.DocumentData
- func UpdatedAtNEQ(v time.Time) predicate.DocumentData
- func UpdatedAtNotIn(vs ...time.Time) predicate.DocumentData
- func UpdatedAtNotNil() predicate.DocumentData
- func UpdatedBy(v string) predicate.DocumentData
- func UpdatedByContains(v string) predicate.DocumentData
- func UpdatedByContainsFold(v string) predicate.DocumentData
- func UpdatedByEQ(v string) predicate.DocumentData
- func UpdatedByEqualFold(v string) predicate.DocumentData
- func UpdatedByGT(v string) predicate.DocumentData
- func UpdatedByGTE(v string) predicate.DocumentData
- func UpdatedByHasPrefix(v string) predicate.DocumentData
- func UpdatedByHasSuffix(v string) predicate.DocumentData
- func UpdatedByIn(vs ...string) predicate.DocumentData
- func UpdatedByIsNil() predicate.DocumentData
- func UpdatedByLT(v string) predicate.DocumentData
- func UpdatedByLTE(v string) predicate.DocumentData
- func UpdatedByNEQ(v string) predicate.DocumentData
- func UpdatedByNotIn(vs ...string) predicate.DocumentData
- func UpdatedByNotNil() predicate.DocumentData
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the documentdata type in the database. Label = "document_data" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldTemplateID holds the string denoting the template_id field in the database. FieldTemplateID = "template_id" // FieldData holds the string denoting the data field in the database. FieldData = "data" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeTemplate holds the string denoting the template edge name in mutations. EdgeTemplate = "template" // Table holds the table name of the documentdata in the database. Table = "document_data" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "document_data" // OwnerInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OwnerInverseTable = "organizations" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" // TemplateTable is the table that holds the template relation/edge. TemplateTable = "document_data" // TemplateInverseTable is the table name for the Template entity. // It exists in this package in order to avoid circular dependency with the "template" package. TemplateInverseTable = "templates" // TemplateColumn is the table column denoting the template relation/edge. TemplateColumn = "template_id" )
Variables ¶
var ( Hooks [4]ent.Hook Interceptors [2]ent.Interceptor Policy ent.Policy // 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 // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/datumforge/datum/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldMappingID, FieldTags, FieldDeletedAt, FieldDeletedBy, FieldOwnerID, FieldTemplateID, FieldData, }
Columns holds all SQL columns for documentdata fields.
Functions ¶
func And ¶
func And(predicates ...predicate.DocumentData) predicate.DocumentData
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.DocumentData
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.DocumentData
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.DocumentData
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.DocumentData
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.DocumentData
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.DocumentData
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.DocumentData
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.DocumentData
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.DocumentData
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.DocumentData
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.DocumentData
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.DocumentData
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.DocumentData
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.DocumentData
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.DocumentData
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.DocumentData
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.DocumentData
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.DocumentData
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.DocumentData
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.DocumentData
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.DocumentData
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.DocumentData
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.DocumentData
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.DocumentData
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.DocumentData
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.DocumentData
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.DocumentData
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.DocumentData
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.DocumentData
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.DocumentData
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.DocumentData
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.DocumentData
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.DocumentData
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.DocumentData
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.DocumentData
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.DocumentData
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.DocumentData
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.DocumentData
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
func DeletedBy(v string) predicate.DocumentData
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
func DeletedByContains(v string) predicate.DocumentData
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
func DeletedByContainsFold(v string) predicate.DocumentData
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
func DeletedByEQ(v string) predicate.DocumentData
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
func DeletedByEqualFold(v string) predicate.DocumentData
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
func DeletedByGT(v string) predicate.DocumentData
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
func DeletedByGTE(v string) predicate.DocumentData
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
func DeletedByHasPrefix(v string) predicate.DocumentData
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
func DeletedByHasSuffix(v string) predicate.DocumentData
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
func DeletedByIn(vs ...string) predicate.DocumentData
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
func DeletedByIsNil() predicate.DocumentData
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
func DeletedByLT(v string) predicate.DocumentData
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
func DeletedByLTE(v string) predicate.DocumentData
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
func DeletedByNEQ(v string) predicate.DocumentData
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
func DeletedByNotIn(vs ...string) predicate.DocumentData
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
func DeletedByNotNil() predicate.DocumentData
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func HasOwner ¶ added in v0.6.1
func HasOwner() predicate.DocumentData
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶ added in v0.6.1
func HasOwnerWith(preds ...predicate.Organization) predicate.DocumentData
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasTemplate ¶
func HasTemplate() predicate.DocumentData
HasTemplate applies the HasEdge predicate on the "template" edge.
func HasTemplateWith ¶
func HasTemplateWith(preds ...predicate.Template) predicate.DocumentData
HasTemplateWith applies the HasEdge predicate on the "template" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.DocumentData
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.DocumentData
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.DocumentData
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.DocumentData
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.DocumentData
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.DocumentData
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.DocumentData
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.DocumentData
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.DocumentData
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.DocumentData
IDNotIn applies the NotIn predicate on the ID field.
func MappingID ¶ added in v0.5.0
func MappingID(v string) predicate.DocumentData
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶ added in v0.5.0
func MappingIDContains(v string) predicate.DocumentData
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶ added in v0.5.0
func MappingIDContainsFold(v string) predicate.DocumentData
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶ added in v0.5.0
func MappingIDEQ(v string) predicate.DocumentData
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶ added in v0.5.0
func MappingIDEqualFold(v string) predicate.DocumentData
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶ added in v0.5.0
func MappingIDGT(v string) predicate.DocumentData
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶ added in v0.5.0
func MappingIDGTE(v string) predicate.DocumentData
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶ added in v0.5.0
func MappingIDHasPrefix(v string) predicate.DocumentData
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶ added in v0.5.0
func MappingIDHasSuffix(v string) predicate.DocumentData
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶ added in v0.5.0
func MappingIDIn(vs ...string) predicate.DocumentData
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶ added in v0.5.0
func MappingIDLT(v string) predicate.DocumentData
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶ added in v0.5.0
func MappingIDLTE(v string) predicate.DocumentData
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶ added in v0.5.0
func MappingIDNEQ(v string) predicate.DocumentData
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶ added in v0.5.0
func MappingIDNotIn(vs ...string) predicate.DocumentData
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func Not ¶
func Not(p predicate.DocumentData) predicate.DocumentData
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DocumentData) predicate.DocumentData
Or groups predicates with the OR operator between them.
func OwnerID ¶ added in v0.6.1
func OwnerID(v string) predicate.DocumentData
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶ added in v0.6.1
func OwnerIDContains(v string) predicate.DocumentData
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶ added in v0.6.1
func OwnerIDContainsFold(v string) predicate.DocumentData
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEQ ¶ added in v0.6.1
func OwnerIDEQ(v string) predicate.DocumentData
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDEqualFold ¶ added in v0.6.1
func OwnerIDEqualFold(v string) predicate.DocumentData
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGT ¶ added in v0.6.1
func OwnerIDGT(v string) predicate.DocumentData
OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGTE ¶ added in v0.6.1
func OwnerIDGTE(v string) predicate.DocumentData
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶ added in v0.6.1
func OwnerIDHasPrefix(v string) predicate.DocumentData
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶ added in v0.6.1
func OwnerIDHasSuffix(v string) predicate.DocumentData
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIn ¶ added in v0.6.1
func OwnerIDIn(vs ...string) predicate.DocumentData
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDIsNil ¶ added in v0.6.1
func OwnerIDIsNil() predicate.DocumentData
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLT ¶ added in v0.6.1
func OwnerIDLT(v string) predicate.DocumentData
OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLTE ¶ added in v0.6.1
func OwnerIDLTE(v string) predicate.DocumentData
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶ added in v0.6.1
func OwnerIDNEQ(v string) predicate.DocumentData
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶ added in v0.6.1
func OwnerIDNotIn(vs ...string) predicate.DocumentData
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶ added in v0.6.1
func OwnerIDNotNil() predicate.DocumentData
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func TagsIsNil ¶ added in v0.5.2
func TagsIsNil() predicate.DocumentData
TagsIsNil applies the IsNil predicate on the "tags" field.
func TagsNotNil ¶ added in v0.5.2
func TagsNotNil() predicate.DocumentData
TagsNotNil applies the NotNil predicate on the "tags" field.
func TemplateID ¶
func TemplateID(v string) predicate.DocumentData
TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.
func TemplateIDContains ¶
func TemplateIDContains(v string) predicate.DocumentData
TemplateIDContains applies the Contains predicate on the "template_id" field.
func TemplateIDContainsFold ¶
func TemplateIDContainsFold(v string) predicate.DocumentData
TemplateIDContainsFold applies the ContainsFold predicate on the "template_id" field.
func TemplateIDEQ ¶
func TemplateIDEQ(v string) predicate.DocumentData
TemplateIDEQ applies the EQ predicate on the "template_id" field.
func TemplateIDEqualFold ¶
func TemplateIDEqualFold(v string) predicate.DocumentData
TemplateIDEqualFold applies the EqualFold predicate on the "template_id" field.
func TemplateIDGT ¶
func TemplateIDGT(v string) predicate.DocumentData
TemplateIDGT applies the GT predicate on the "template_id" field.
func TemplateIDGTE ¶
func TemplateIDGTE(v string) predicate.DocumentData
TemplateIDGTE applies the GTE predicate on the "template_id" field.
func TemplateIDHasPrefix ¶
func TemplateIDHasPrefix(v string) predicate.DocumentData
TemplateIDHasPrefix applies the HasPrefix predicate on the "template_id" field.
func TemplateIDHasSuffix ¶
func TemplateIDHasSuffix(v string) predicate.DocumentData
TemplateIDHasSuffix applies the HasSuffix predicate on the "template_id" field.
func TemplateIDIn ¶
func TemplateIDIn(vs ...string) predicate.DocumentData
TemplateIDIn applies the In predicate on the "template_id" field.
func TemplateIDLT ¶
func TemplateIDLT(v string) predicate.DocumentData
TemplateIDLT applies the LT predicate on the "template_id" field.
func TemplateIDLTE ¶
func TemplateIDLTE(v string) predicate.DocumentData
TemplateIDLTE applies the LTE predicate on the "template_id" field.
func TemplateIDNEQ ¶
func TemplateIDNEQ(v string) predicate.DocumentData
TemplateIDNEQ applies the NEQ predicate on the "template_id" field.
func TemplateIDNotIn ¶
func TemplateIDNotIn(vs ...string) predicate.DocumentData
TemplateIDNotIn applies the NotIn predicate on the "template_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.DocumentData
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.DocumentData
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.DocumentData
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.DocumentData
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.DocumentData
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.DocumentData
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.DocumentData
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.DocumentData
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.DocumentData
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.DocumentData
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.DocumentData
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.DocumentData
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.DocumentData
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.DocumentData
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.DocumentData
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.DocumentData
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.DocumentData
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.DocumentData
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.DocumentData
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.DocumentData
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.DocumentData
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.DocumentData
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.DocumentData
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.DocumentData
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.DocumentData
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.DocumentData
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.DocumentData
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 DocumentData queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingID ¶ added in v0.5.0
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByOwnerField ¶ added in v0.6.1
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶ added in v0.6.1
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByTemplateField ¶
func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
ByTemplateField orders the results by template field.
func ByTemplateID ¶
func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
ByTemplateID orders the results by the template_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.