Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Program) predicate.Program
- func CreatedAt(v time.Time) predicate.Program
- func CreatedAtEQ(v time.Time) predicate.Program
- func CreatedAtGT(v time.Time) predicate.Program
- func CreatedAtGTE(v time.Time) predicate.Program
- func CreatedAtIn(vs ...time.Time) predicate.Program
- func CreatedAtLT(v time.Time) predicate.Program
- func CreatedAtLTE(v time.Time) predicate.Program
- func CreatedAtNEQ(v time.Time) predicate.Program
- func CreatedAtNotIn(vs ...time.Time) predicate.Program
- func Description(v string) predicate.Program
- func DescriptionContains(v string) predicate.Program
- func DescriptionContainsFold(v string) predicate.Program
- func DescriptionEQ(v string) predicate.Program
- func DescriptionEqualFold(v string) predicate.Program
- func DescriptionGT(v string) predicate.Program
- func DescriptionGTE(v string) predicate.Program
- func DescriptionHasPrefix(v string) predicate.Program
- func DescriptionHasSuffix(v string) predicate.Program
- func DescriptionIn(vs ...string) predicate.Program
- func DescriptionIsNil() predicate.Program
- func DescriptionLT(v string) predicate.Program
- func DescriptionLTE(v string) predicate.Program
- func DescriptionNEQ(v string) predicate.Program
- func DescriptionNotIn(vs ...string) predicate.Program
- func DescriptionNotNil() predicate.Program
- func HasInitiatives() predicate.Program
- func HasInitiativesWith(preds ...predicate.Initiative) predicate.Program
- func Hidden(v bool) predicate.Program
- func HiddenEQ(v bool) predicate.Program
- func HiddenNEQ(v bool) predicate.Program
- func ID(id string) predicate.Program
- func IDContainsFold(id string) predicate.Program
- func IDEQ(id string) predicate.Program
- func IDEqualFold(id string) predicate.Program
- func IDGT(id string) predicate.Program
- func IDGTE(id string) predicate.Program
- func IDIn(ids ...string) predicate.Program
- func IDLT(id string) predicate.Program
- func IDLTE(id string) predicate.Program
- func IDNEQ(id string) predicate.Program
- func IDNotIn(ids ...string) predicate.Program
- func Name(v string) predicate.Program
- func NameContains(v string) predicate.Program
- func NameContainsFold(v string) predicate.Program
- func NameEQ(v string) predicate.Program
- func NameEqualFold(v string) predicate.Program
- func NameGT(v string) predicate.Program
- func NameGTE(v string) predicate.Program
- func NameHasPrefix(v string) predicate.Program
- func NameHasSuffix(v string) predicate.Program
- func NameIn(vs ...string) predicate.Program
- func NameLT(v string) predicate.Program
- func NameLTE(v string) predicate.Program
- func NameNEQ(v string) predicate.Program
- func NameNotIn(vs ...string) predicate.Program
- func Not(p predicate.Program) predicate.Program
- func Or(predicates ...predicate.Program) predicate.Program
- func Organization(v string) predicate.Program
- func OrganizationContains(v string) predicate.Program
- func OrganizationContainsFold(v string) predicate.Program
- func OrganizationEQ(v string) predicate.Program
- func OrganizationEqualFold(v string) predicate.Program
- func OrganizationGT(v string) predicate.Program
- func OrganizationGTE(v string) predicate.Program
- func OrganizationHasPrefix(v string) predicate.Program
- func OrganizationHasSuffix(v string) predicate.Program
- func OrganizationIn(vs ...string) predicate.Program
- func OrganizationLT(v string) predicate.Program
- func OrganizationLTE(v string) predicate.Program
- func OrganizationNEQ(v string) predicate.Program
- func OrganizationNotIn(vs ...string) predicate.Program
- func UpdatedAt(v time.Time) predicate.Program
- func UpdatedAtEQ(v time.Time) predicate.Program
- func UpdatedAtGT(v time.Time) predicate.Program
- func UpdatedAtGTE(v time.Time) predicate.Program
- func UpdatedAtIn(vs ...time.Time) predicate.Program
- func UpdatedAtLT(v time.Time) predicate.Program
- func UpdatedAtLTE(v time.Time) predicate.Program
- func UpdatedAtNEQ(v time.Time) predicate.Program
- func UpdatedAtNotIn(vs ...time.Time) predicate.Program
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByHidden(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInitiatives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInitiativesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrganization(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the program type in the database. Label = "program" // FieldID holds the string denoting the id field in the database. FieldID = "program_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldOrganization holds the string denoting the organization field in the database. FieldOrganization = "organization" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldHidden holds the string denoting the hidden field in the database. FieldHidden = "hidden" // 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" // EdgeInitiatives holds the string denoting the initiatives edge name in mutations. EdgeInitiatives = "initiatives" // InitiativeFieldID holds the string denoting the ID field of the Initiative. InitiativeFieldID = "initiative_id" // Table holds the table name of the program in the database. Table = "programs" // InitiativesTable is the table that holds the initiatives relation/edge. InitiativesTable = "initiatives" // InitiativesInverseTable is the table name for the Initiative entity. // It exists in this package in order to avoid circular dependency with the "initiative" package. InitiativesInverseTable = "initiatives" // InitiativesColumn is the table column denoting the initiatives relation/edge. InitiativesColumn = "program_initiatives" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // OrganizationValidator is a validator for the "organization" field. It is called by the builders before save. OrganizationValidator func(string) error // DefaultHidden holds the default value on creation for the "hidden" field. DefaultHidden bool // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldOrganization, FieldDescription, FieldHidden, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for program 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 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 DescriptionIsNil ¶
DescriptionIsNil applies the IsNil 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 DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasInitiatives ¶
HasInitiatives applies the HasEdge predicate on the "initiatives" edge.
func HasInitiativesWith ¶
func HasInitiativesWith(preds ...predicate.Initiative) predicate.Program
HasInitiativesWith applies the HasEdge predicate on the "initiatives" edge with a given conditions (other predicates).
func Hidden ¶
Hidden applies equality check predicate on the "hidden" field. It's identical to HiddenEQ.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID 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 Organization ¶
Organization applies equality check predicate on the "organization" field. It's identical to OrganizationEQ.
func OrganizationContains ¶
OrganizationContains applies the Contains predicate on the "organization" field.
func OrganizationContainsFold ¶
OrganizationContainsFold applies the ContainsFold predicate on the "organization" field.
func OrganizationEQ ¶
OrganizationEQ applies the EQ predicate on the "organization" field.
func OrganizationEqualFold ¶
OrganizationEqualFold applies the EqualFold predicate on the "organization" field.
func OrganizationGT ¶
OrganizationGT applies the GT predicate on the "organization" field.
func OrganizationGTE ¶
OrganizationGTE applies the GTE predicate on the "organization" field.
func OrganizationHasPrefix ¶
OrganizationHasPrefix applies the HasPrefix predicate on the "organization" field.
func OrganizationHasSuffix ¶
OrganizationHasSuffix applies the HasSuffix predicate on the "organization" field.
func OrganizationIn ¶
OrganizationIn applies the In predicate on the "organization" field.
func OrganizationLT ¶
OrganizationLT applies the LT predicate on the "organization" field.
func OrganizationLTE ¶
OrganizationLTE applies the LTE predicate on the "organization" field.
func OrganizationNEQ ¶
OrganizationNEQ applies the NEQ predicate on the "organization" field.
func OrganizationNotIn ¶
OrganizationNotIn applies the NotIn predicate on the "organization" 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 Program 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 ByHidden ¶
func ByHidden(opts ...sql.OrderTermOption) OrderOption
ByHidden orders the results by the hidden field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInitiatives ¶
func ByInitiatives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInitiatives orders the results by initiatives terms.
func ByInitiativesCount ¶
func ByInitiativesCount(opts ...sql.OrderTermOption) OrderOption
ByInitiativesCount orders the results by initiatives count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrganization ¶
func ByOrganization(opts ...sql.OrderTermOption) OrderOption
ByOrganization orders the results by the organization field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.