Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dataset) predicate.Dataset
- func CreatedAt(v time.Time) predicate.Dataset
- func CreatedAtEQ(v time.Time) predicate.Dataset
- func CreatedAtGT(v time.Time) predicate.Dataset
- func CreatedAtGTE(v time.Time) predicate.Dataset
- func CreatedAtIn(vs ...time.Time) predicate.Dataset
- func CreatedAtIsNil() predicate.Dataset
- func CreatedAtLT(v time.Time) predicate.Dataset
- func CreatedAtLTE(v time.Time) predicate.Dataset
- func CreatedAtNEQ(v time.Time) predicate.Dataset
- func CreatedAtNotIn(vs ...time.Time) predicate.Dataset
- func CreatedAtNotNil() predicate.Dataset
- func Description(v string) predicate.Dataset
- func DescriptionContains(v string) predicate.Dataset
- func DescriptionContainsFold(v string) predicate.Dataset
- func DescriptionEQ(v string) predicate.Dataset
- func DescriptionEqualFold(v string) predicate.Dataset
- func DescriptionGT(v string) predicate.Dataset
- func DescriptionGTE(v string) predicate.Dataset
- func DescriptionHasPrefix(v string) predicate.Dataset
- func DescriptionHasSuffix(v string) predicate.Dataset
- func DescriptionIn(vs ...string) predicate.Dataset
- func DescriptionLT(v string) predicate.Dataset
- func DescriptionLTE(v string) predicate.Dataset
- func DescriptionNEQ(v string) predicate.Dataset
- func DescriptionNotIn(vs ...string) predicate.Dataset
- func ID(id int) predicate.Dataset
- func IDEQ(id int) predicate.Dataset
- func IDGT(id int) predicate.Dataset
- func IDGTE(id int) predicate.Dataset
- func IDIn(ids ...int) predicate.Dataset
- func IDLT(id int) predicate.Dataset
- func IDLTE(id int) predicate.Dataset
- func IDNEQ(id int) predicate.Dataset
- func IDNotIn(ids ...int) predicate.Dataset
- func IndexerIsNil() predicate.Dataset
- func IndexerNotNil() predicate.Dataset
- func Name(v string) predicate.Dataset
- func NameContains(v string) predicate.Dataset
- func NameContainsFold(v string) predicate.Dataset
- func NameEQ(v string) predicate.Dataset
- func NameEqualFold(v string) predicate.Dataset
- func NameGT(v string) predicate.Dataset
- func NameGTE(v string) predicate.Dataset
- func NameHasPrefix(v string) predicate.Dataset
- func NameHasSuffix(v string) predicate.Dataset
- func NameIn(vs ...string) predicate.Dataset
- func NameLT(v string) predicate.Dataset
- func NameLTE(v string) predicate.Dataset
- func NameNEQ(v string) predicate.Dataset
- func NameNotIn(vs ...string) predicate.Dataset
- func Nanoid(v string) predicate.Dataset
- func NanoidContains(v string) predicate.Dataset
- func NanoidContainsFold(v string) predicate.Dataset
- func NanoidEQ(v string) predicate.Dataset
- func NanoidEqualFold(v string) predicate.Dataset
- func NanoidGT(v string) predicate.Dataset
- func NanoidGTE(v string) predicate.Dataset
- func NanoidHasPrefix(v string) predicate.Dataset
- func NanoidHasSuffix(v string) predicate.Dataset
- func NanoidIn(vs ...string) predicate.Dataset
- func NanoidIsNil() predicate.Dataset
- func NanoidLT(v string) predicate.Dataset
- func NanoidLTE(v string) predicate.Dataset
- func NanoidNEQ(v string) predicate.Dataset
- func NanoidNotIn(vs ...string) predicate.Dataset
- func NanoidNotNil() predicate.Dataset
- func Not(p predicate.Dataset) predicate.Dataset
- func Or(predicates ...predicate.Dataset) predicate.Dataset
- func Path(v string) predicate.Dataset
- func PathContains(v string) predicate.Dataset
- func PathContainsFold(v string) predicate.Dataset
- func PathEQ(v string) predicate.Dataset
- func PathEqualFold(v string) predicate.Dataset
- func PathGT(v string) predicate.Dataset
- func PathGTE(v string) predicate.Dataset
- func PathHasPrefix(v string) predicate.Dataset
- func PathHasSuffix(v string) predicate.Dataset
- func PathIn(vs ...string) predicate.Dataset
- func PathIsNil() predicate.Dataset
- func PathLT(v string) predicate.Dataset
- func PathLTE(v string) predicate.Dataset
- func PathNEQ(v string) predicate.Dataset
- func PathNotIn(vs ...string) predicate.Dataset
- func PathNotNil() predicate.Dataset
- func TypeEQ(v Type) predicate.Dataset
- func TypeIn(vs ...Type) predicate.Dataset
- func TypeNEQ(v Type) predicate.Dataset
- func TypeNotIn(vs ...Type) predicate.Dataset
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.Dataset
- func UpdatedAtEQ(v time.Time) predicate.Dataset
- func UpdatedAtGT(v time.Time) predicate.Dataset
- func UpdatedAtGTE(v time.Time) predicate.Dataset
- func UpdatedAtIn(vs ...time.Time) predicate.Dataset
- func UpdatedAtIsNil() predicate.Dataset
- func UpdatedAtLT(v time.Time) predicate.Dataset
- func UpdatedAtLTE(v time.Time) predicate.Dataset
- func UpdatedAtNEQ(v time.Time) predicate.Dataset
- func UpdatedAtNotIn(vs ...time.Time) predicate.Dataset
- func UpdatedAtNotNil() predicate.Dataset
- func ValidColumn(column string) bool
- func ValuesIsNil() predicate.Dataset
- func ValuesNotNil() predicate.Dataset
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNanoid(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the dataset type in the database. Label = "dataset" // 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" // FieldNanoid holds the string denoting the nanoid field in the database. FieldNanoid = "nanoid" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldIndexer holds the string denoting the indexer field in the database. FieldIndexer = "indexer" // FieldValues holds the string denoting the values field in the database. FieldValues = "values" // Table holds the table name of the dataset in the database. Table = "datasets" )
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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldNanoid, FieldName, FieldPath, FieldDescription, FieldType, FieldIndexer, FieldValues, }
Columns holds all SQL columns for dataset 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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func IndexerIsNil ¶
IndexerIsNil applies the IsNil predicate on the "indexer" field.
func IndexerNotNil ¶
IndexerNotNil applies the NotNil predicate on the "indexer" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Nanoid ¶
Nanoid applies equality check predicate on the "nanoid" field. It's identical to NanoidEQ.
func NanoidContains ¶
NanoidContains applies the Contains predicate on the "nanoid" field.
func NanoidContainsFold ¶
NanoidContainsFold applies the ContainsFold predicate on the "nanoid" field.
func NanoidEqualFold ¶
NanoidEqualFold applies the EqualFold predicate on the "nanoid" field.
func NanoidHasPrefix ¶
NanoidHasPrefix applies the HasPrefix predicate on the "nanoid" field.
func NanoidHasSuffix ¶
NanoidHasSuffix applies the HasSuffix predicate on the "nanoid" field.
func NanoidIsNil ¶
NanoidIsNil applies the IsNil predicate on the "nanoid" field.
func NanoidNotIn ¶
NanoidNotIn applies the NotIn predicate on the "nanoid" field.
func NanoidNotNil ¶
NanoidNotNil applies the NotNil predicate on the "nanoid" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func PathNotNil ¶
PathNotNil applies the NotNil predicate on the "path" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func ValuesIsNil ¶
ValuesIsNil applies the IsNil predicate on the "values" field.
func ValuesNotNil ¶
ValuesNotNil applies the NotNil predicate on the "values" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Dataset queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNanoid ¶
func ByNanoid(opts ...sql.OrderTermOption) OrderOption
ByNanoid orders the results by the nanoid field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.