Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DataSource) predicate.DataSource
- func Config(v string) predicate.DataSource
- func ConfigContains(v string) predicate.DataSource
- func ConfigContainsFold(v string) predicate.DataSource
- func ConfigEQ(v string) predicate.DataSource
- func ConfigEqualFold(v string) predicate.DataSource
- func ConfigGT(v string) predicate.DataSource
- func ConfigGTE(v string) predicate.DataSource
- func ConfigHasPrefix(v string) predicate.DataSource
- func ConfigHasSuffix(v string) predicate.DataSource
- func ConfigIn(vs ...string) predicate.DataSource
- func ConfigIsNil() predicate.DataSource
- func ConfigLT(v string) predicate.DataSource
- func ConfigLTE(v string) predicate.DataSource
- func ConfigNEQ(v string) predicate.DataSource
- func ConfigNotIn(vs ...string) predicate.DataSource
- func ConfigNotNil() predicate.DataSource
- func DateAdded(v time.Time) predicate.DataSource
- func DateAddedEQ(v time.Time) predicate.DataSource
- func DateAddedGT(v time.Time) predicate.DataSource
- func DateAddedGTE(v time.Time) predicate.DataSource
- func DateAddedIn(vs ...time.Time) predicate.DataSource
- func DateAddedLT(v time.Time) predicate.DataSource
- func DateAddedLTE(v time.Time) predicate.DataSource
- func DateAddedNEQ(v time.Time) predicate.DataSource
- func DateAddedNotIn(vs ...time.Time) predicate.DataSource
- func ID(id int) predicate.DataSource
- func IDEQ(id int) predicate.DataSource
- func IDGT(id int) predicate.DataSource
- func IDGTE(id int) predicate.DataSource
- func IDIn(ids ...int) predicate.DataSource
- func IDLT(id int) predicate.DataSource
- func IDLTE(id int) predicate.DataSource
- func IDNEQ(id int) predicate.DataSource
- func IDNotIn(ids ...int) predicate.DataSource
- func LastIndexed(v time.Time) predicate.DataSource
- func LastIndexedEQ(v time.Time) predicate.DataSource
- func LastIndexedGT(v time.Time) predicate.DataSource
- func LastIndexedGTE(v time.Time) predicate.DataSource
- func LastIndexedIn(vs ...time.Time) predicate.DataSource
- func LastIndexedLT(v time.Time) predicate.DataSource
- func LastIndexedLTE(v time.Time) predicate.DataSource
- func LastIndexedNEQ(v time.Time) predicate.DataSource
- func LastIndexedNotIn(vs ...time.Time) predicate.DataSource
- func Name(v string) predicate.DataSource
- func NameContains(v string) predicate.DataSource
- func NameContainsFold(v string) predicate.DataSource
- func NameEQ(v string) predicate.DataSource
- func NameEqualFold(v string) predicate.DataSource
- func NameGT(v string) predicate.DataSource
- func NameGTE(v string) predicate.DataSource
- func NameHasPrefix(v string) predicate.DataSource
- func NameHasSuffix(v string) predicate.DataSource
- func NameIn(vs ...string) predicate.DataSource
- func NameLT(v string) predicate.DataSource
- func NameLTE(v string) predicate.DataSource
- func NameNEQ(v string) predicate.DataSource
- func NameNotIn(vs ...string) predicate.DataSource
- func Not(p predicate.DataSource) predicate.DataSource
- func Or(predicates ...predicate.DataSource) predicate.DataSource
- func Status(v string) predicate.DataSource
- func StatusContains(v string) predicate.DataSource
- func StatusContainsFold(v string) predicate.DataSource
- func StatusEQ(v string) predicate.DataSource
- func StatusEqualFold(v string) predicate.DataSource
- func StatusGT(v string) predicate.DataSource
- func StatusGTE(v string) predicate.DataSource
- func StatusHasPrefix(v string) predicate.DataSource
- func StatusHasSuffix(v string) predicate.DataSource
- func StatusIn(vs ...string) predicate.DataSource
- func StatusLT(v string) predicate.DataSource
- func StatusLTE(v string) predicate.DataSource
- func StatusNEQ(v string) predicate.DataSource
- func StatusNotIn(vs ...string) predicate.DataSource
- func Type(v string) predicate.DataSource
- func TypeContains(v string) predicate.DataSource
- func TypeContainsFold(v string) predicate.DataSource
- func TypeEQ(v string) predicate.DataSource
- func TypeEqualFold(v string) predicate.DataSource
- func TypeGT(v string) predicate.DataSource
- func TypeGTE(v string) predicate.DataSource
- func TypeHasPrefix(v string) predicate.DataSource
- func TypeHasSuffix(v string) predicate.DataSource
- func TypeIn(vs ...string) predicate.DataSource
- func TypeLT(v string) predicate.DataSource
- func TypeLTE(v string) predicate.DataSource
- func TypeNEQ(v string) predicate.DataSource
- func TypeNotIn(vs ...string) predicate.DataSource
- func ValidColumn(column string) bool
- type OrderOption
- func ByConfig(opts ...sql.OrderTermOption) OrderOption
- func ByDateAdded(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastIndexed(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the datasource type in the database. Label = "data_source" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // FieldLastIndexed holds the string denoting the last_indexed field in the database. FieldLastIndexed = "last_indexed" // FieldDateAdded holds the string denoting the date_added field in the database. FieldDateAdded = "date_added" // Table holds the table name of the datasource in the database. Table = "data_sources" )
Variables ¶
var ( // DefaultType holds the default value on creation for the "type" field. DefaultType string // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // DefaultLastIndexed holds the default value on creation for the "last_indexed" field. DefaultLastIndexed func() time.Time // DefaultDateAdded holds the default value on creation for the "date_added" field. DefaultDateAdded func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldType, FieldStatus, FieldConfig, FieldLastIndexed, FieldDateAdded, }
Columns holds all SQL columns for datasource fields.
Functions ¶
func And ¶
func And(predicates ...predicate.DataSource) predicate.DataSource
And groups predicates with the AND operator between them.
func Config ¶
func Config(v string) predicate.DataSource
Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.
func ConfigContains ¶
func ConfigContains(v string) predicate.DataSource
ConfigContains applies the Contains predicate on the "config" field.
func ConfigContainsFold ¶
func ConfigContainsFold(v string) predicate.DataSource
ConfigContainsFold applies the ContainsFold predicate on the "config" field.
func ConfigEQ ¶
func ConfigEQ(v string) predicate.DataSource
ConfigEQ applies the EQ predicate on the "config" field.
func ConfigEqualFold ¶
func ConfigEqualFold(v string) predicate.DataSource
ConfigEqualFold applies the EqualFold predicate on the "config" field.
func ConfigGT ¶
func ConfigGT(v string) predicate.DataSource
ConfigGT applies the GT predicate on the "config" field.
func ConfigGTE ¶
func ConfigGTE(v string) predicate.DataSource
ConfigGTE applies the GTE predicate on the "config" field.
func ConfigHasPrefix ¶
func ConfigHasPrefix(v string) predicate.DataSource
ConfigHasPrefix applies the HasPrefix predicate on the "config" field.
func ConfigHasSuffix ¶
func ConfigHasSuffix(v string) predicate.DataSource
ConfigHasSuffix applies the HasSuffix predicate on the "config" field.
func ConfigIn ¶
func ConfigIn(vs ...string) predicate.DataSource
ConfigIn applies the In predicate on the "config" field.
func ConfigIsNil ¶
func ConfigIsNil() predicate.DataSource
ConfigIsNil applies the IsNil predicate on the "config" field.
func ConfigLT ¶
func ConfigLT(v string) predicate.DataSource
ConfigLT applies the LT predicate on the "config" field.
func ConfigLTE ¶
func ConfigLTE(v string) predicate.DataSource
ConfigLTE applies the LTE predicate on the "config" field.
func ConfigNEQ ¶
func ConfigNEQ(v string) predicate.DataSource
ConfigNEQ applies the NEQ predicate on the "config" field.
func ConfigNotIn ¶
func ConfigNotIn(vs ...string) predicate.DataSource
ConfigNotIn applies the NotIn predicate on the "config" field.
func ConfigNotNil ¶
func ConfigNotNil() predicate.DataSource
ConfigNotNil applies the NotNil predicate on the "config" field.
func DateAdded ¶
func DateAdded(v time.Time) predicate.DataSource
DateAdded applies equality check predicate on the "date_added" field. It's identical to DateAddedEQ.
func DateAddedEQ ¶
func DateAddedEQ(v time.Time) predicate.DataSource
DateAddedEQ applies the EQ predicate on the "date_added" field.
func DateAddedGT ¶
func DateAddedGT(v time.Time) predicate.DataSource
DateAddedGT applies the GT predicate on the "date_added" field.
func DateAddedGTE ¶
func DateAddedGTE(v time.Time) predicate.DataSource
DateAddedGTE applies the GTE predicate on the "date_added" field.
func DateAddedIn ¶
func DateAddedIn(vs ...time.Time) predicate.DataSource
DateAddedIn applies the In predicate on the "date_added" field.
func DateAddedLT ¶
func DateAddedLT(v time.Time) predicate.DataSource
DateAddedLT applies the LT predicate on the "date_added" field.
func DateAddedLTE ¶
func DateAddedLTE(v time.Time) predicate.DataSource
DateAddedLTE applies the LTE predicate on the "date_added" field.
func DateAddedNEQ ¶
func DateAddedNEQ(v time.Time) predicate.DataSource
DateAddedNEQ applies the NEQ predicate on the "date_added" field.
func DateAddedNotIn ¶
func DateAddedNotIn(vs ...time.Time) predicate.DataSource
DateAddedNotIn applies the NotIn predicate on the "date_added" field.
func IDGTE ¶
func IDGTE(id int) predicate.DataSource
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.DataSource
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.DataSource
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.DataSource
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.DataSource
IDNotIn applies the NotIn predicate on the ID field.
func LastIndexed ¶
func LastIndexed(v time.Time) predicate.DataSource
LastIndexed applies equality check predicate on the "last_indexed" field. It's identical to LastIndexedEQ.
func LastIndexedEQ ¶
func LastIndexedEQ(v time.Time) predicate.DataSource
LastIndexedEQ applies the EQ predicate on the "last_indexed" field.
func LastIndexedGT ¶
func LastIndexedGT(v time.Time) predicate.DataSource
LastIndexedGT applies the GT predicate on the "last_indexed" field.
func LastIndexedGTE ¶
func LastIndexedGTE(v time.Time) predicate.DataSource
LastIndexedGTE applies the GTE predicate on the "last_indexed" field.
func LastIndexedIn ¶
func LastIndexedIn(vs ...time.Time) predicate.DataSource
LastIndexedIn applies the In predicate on the "last_indexed" field.
func LastIndexedLT ¶
func LastIndexedLT(v time.Time) predicate.DataSource
LastIndexedLT applies the LT predicate on the "last_indexed" field.
func LastIndexedLTE ¶
func LastIndexedLTE(v time.Time) predicate.DataSource
LastIndexedLTE applies the LTE predicate on the "last_indexed" field.
func LastIndexedNEQ ¶
func LastIndexedNEQ(v time.Time) predicate.DataSource
LastIndexedNEQ applies the NEQ predicate on the "last_indexed" field.
func LastIndexedNotIn ¶
func LastIndexedNotIn(vs ...time.Time) predicate.DataSource
LastIndexedNotIn applies the NotIn predicate on the "last_indexed" field.
func Name ¶
func Name(v string) predicate.DataSource
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.DataSource
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.DataSource
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.DataSource
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.DataSource
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.DataSource
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.DataSource
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.DataSource
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.DataSource
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.DataSource
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.DataSource
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.DataSource
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.DataSource
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.DataSource
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.DataSource) predicate.DataSource
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DataSource) predicate.DataSource
Or groups predicates with the OR operator between them.
func Status ¶
func Status(v string) predicate.DataSource
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v string) predicate.DataSource
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v string) predicate.DataSource
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v string) predicate.DataSource
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v string) predicate.DataSource
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v string) predicate.DataSource
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v string) predicate.DataSource
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v string) predicate.DataSource
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v string) predicate.DataSource
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...string) predicate.DataSource
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v string) predicate.DataSource
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v string) predicate.DataSource
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v string) predicate.DataSource
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...string) predicate.DataSource
StatusNotIn applies the NotIn predicate on the "status" field.
func Type ¶
func Type(v string) predicate.DataSource
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v string) predicate.DataSource
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
func TypeContainsFold(v string) predicate.DataSource
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶
func TypeEQ(v string) predicate.DataSource
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v string) predicate.DataSource
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v string) predicate.DataSource
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.DataSource
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v string) predicate.DataSource
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v string) predicate.DataSource
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...string) predicate.DataSource
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v string) predicate.DataSource
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.DataSource
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.DataSource
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...string) predicate.DataSource
TypeNotIn applies the NotIn predicate on the "type" 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 DataSource queries.
func ByConfig ¶
func ByConfig(opts ...sql.OrderTermOption) OrderOption
ByConfig orders the results by the config field.
func ByDateAdded ¶
func ByDateAdded(opts ...sql.OrderTermOption) OrderOption
ByDateAdded orders the results by the date_added field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastIndexed ¶
func ByLastIndexed(opts ...sql.OrderTermOption) OrderOption
ByLastIndexed orders the results by the last_indexed field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.