program

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for program fields.

Functions

func And

func And(predicates ...predicate.Program) predicate.Program

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Program

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Program

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Program

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Program

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Program

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Program

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Program

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Program

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Program

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.Program

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Program

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Program

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Program

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Program

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Program

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Program

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Program

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Program

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Program

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Program

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Program

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Program

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Program

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Program

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Program

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasInitiatives

func HasInitiatives() predicate.Program

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

func Hidden(v bool) predicate.Program

Hidden applies equality check predicate on the "hidden" field. It's identical to HiddenEQ.

func HiddenEQ

func HiddenEQ(v bool) predicate.Program

HiddenEQ applies the EQ predicate on the "hidden" field.

func HiddenNEQ

func HiddenNEQ(v bool) predicate.Program

HiddenNEQ applies the NEQ predicate on the "hidden" field.

func ID

func ID(id string) predicate.Program

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Program

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Program

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Program

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Program

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Program

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Program

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Program

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Program

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Program

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Program

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Program

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Program

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Program

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Program

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Program

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Program

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Program

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Program

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Program

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Program

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Program

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Program

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Program

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Program

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Program) predicate.Program

Or groups predicates with the OR operator between them.

func Organization

func Organization(v string) predicate.Program

Organization applies equality check predicate on the "organization" field. It's identical to OrganizationEQ.

func OrganizationContains

func OrganizationContains(v string) predicate.Program

OrganizationContains applies the Contains predicate on the "organization" field.

func OrganizationContainsFold

func OrganizationContainsFold(v string) predicate.Program

OrganizationContainsFold applies the ContainsFold predicate on the "organization" field.

func OrganizationEQ

func OrganizationEQ(v string) predicate.Program

OrganizationEQ applies the EQ predicate on the "organization" field.

func OrganizationEqualFold

func OrganizationEqualFold(v string) predicate.Program

OrganizationEqualFold applies the EqualFold predicate on the "organization" field.

func OrganizationGT

func OrganizationGT(v string) predicate.Program

OrganizationGT applies the GT predicate on the "organization" field.

func OrganizationGTE

func OrganizationGTE(v string) predicate.Program

OrganizationGTE applies the GTE predicate on the "organization" field.

func OrganizationHasPrefix

func OrganizationHasPrefix(v string) predicate.Program

OrganizationHasPrefix applies the HasPrefix predicate on the "organization" field.

func OrganizationHasSuffix

func OrganizationHasSuffix(v string) predicate.Program

OrganizationHasSuffix applies the HasSuffix predicate on the "organization" field.

func OrganizationIn

func OrganizationIn(vs ...string) predicate.Program

OrganizationIn applies the In predicate on the "organization" field.

func OrganizationLT

func OrganizationLT(v string) predicate.Program

OrganizationLT applies the LT predicate on the "organization" field.

func OrganizationLTE

func OrganizationLTE(v string) predicate.Program

OrganizationLTE applies the LTE predicate on the "organization" field.

func OrganizationNEQ

func OrganizationNEQ(v string) predicate.Program

OrganizationNEQ applies the NEQ predicate on the "organization" field.

func OrganizationNotIn

func OrganizationNotIn(vs ...string) predicate.Program

OrganizationNotIn applies the NotIn predicate on the "organization" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Program

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Program

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Program

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Program

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Program

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Program

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Program

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Program

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Program

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL