survey

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the survey type in the database.
	Label = "survey"
	// FieldID holds the string denoting the id field in the database.
	FieldID              = "id"               // FieldTags holds the string denoting the tags vertex property in the database.
	FieldTags            = "tags"             // FieldLastInteraction holds the string denoting the lastinteraction vertex property in the database.
	FieldLastInteraction = "last_interaction" // FieldDueDate holds the string denoting the duedate vertex property in the database.
	FieldDueDate         = "due_date"         // FieldTitle holds the string denoting the title vertex property in the database.
	FieldTitle           = "title"            // FieldDescription holds the string denoting the description vertex property in the database.
	FieldDescription     = "description"      // FieldMetadata holds the string denoting the metadata vertex property in the database.
	FieldMetadata        = "metadata"         // FieldDone holds the string denoting the done vertex property in the database.
	FieldDone            = "done"             // FieldIsPublic holds the string denoting the ispublic vertex property in the database.
	FieldIsPublic        = "is_public"

	// EdgeFlow holds the string denoting the flow edge name in mutations.
	EdgeFlow = "flow"
	// EdgeFor holds the string denoting the for edge name in mutations.
	EdgeFor = "for"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"

	// Table holds the table name of the survey in the database.
	Table = "surveys"
	// FlowTable is the table the holds the flow relation/edge.
	FlowTable = "flows"
	// FlowInverseTable is the table name for the Flow entity.
	// It exists in this package in order to avoid circular dependency with the "flow" package.
	FlowInverseTable = "flows"
	// FlowColumn is the table column denoting the flow relation/edge.
	FlowColumn = "survey_flow"
	// ForTable is the table the holds the for relation/edge.
	ForTable = "surveys"
	// ForInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	ForInverseTable = "persons"
	// ForColumn is the table column denoting the for relation/edge.
	ForColumn = "person_surveys"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "surveys"
	// OwnerInverseTable is the table name for the Domain entity.
	// It exists in this package in order to avoid circular dependency with the "domain" package.
	OwnerInverseTable = "domains"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "domain_surveys"
)

Variables

View Source
var (
	// DefaultDueDate holds the default value on creation for the dueDate field.
	DefaultDueDate func() time.Time
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultDone holds the default value on creation for the done field.
	DefaultDone bool
	// DefaultIsPublic holds the default value on creation for the isPublic field.
	DefaultIsPublic bool
)

Columns holds all SQL columns for survey fields.

View Source
var ForeignKeys = []string{
	"domain_surveys",
	"person_surveys",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Survey type.

Functions

func And

func And(predicates ...predicate.Survey) predicate.Survey

And groups list of predicates with the AND operator between them.

func Description

func Description(v string) predicate.Survey

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

func DescriptionContains

func DescriptionContains(v string) predicate.Survey

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Survey

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Survey

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Survey

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

func DescriptionGT

func DescriptionGT(v string) predicate.Survey

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Survey

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Survey

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Survey

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Survey

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

func DescriptionLT

func DescriptionLT(v string) predicate.Survey

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Survey

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Survey

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Survey

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

func Done

func Done(v bool) predicate.Survey

Done applies equality check predicate on the "done" field. It's identical to DoneEQ.

func DoneEQ

func DoneEQ(v bool) predicate.Survey

DoneEQ applies the EQ predicate on the "done" field.

func DoneIsNil

func DoneIsNil() predicate.Survey

DoneIsNil applies the IsNil predicate on the "done" field.

func DoneNEQ

func DoneNEQ(v bool) predicate.Survey

DoneNEQ applies the NEQ predicate on the "done" field.

func DoneNotNil

func DoneNotNil() predicate.Survey

DoneNotNil applies the NotNil predicate on the "done" field.

func DueDate

func DueDate(v time.Time) predicate.Survey

DueDate applies equality check predicate on the "dueDate" field. It's identical to DueDateEQ.

func DueDateEQ

func DueDateEQ(v time.Time) predicate.Survey

DueDateEQ applies the EQ predicate on the "dueDate" field.

func DueDateGT

func DueDateGT(v time.Time) predicate.Survey

DueDateGT applies the GT predicate on the "dueDate" field.

func DueDateGTE

func DueDateGTE(v time.Time) predicate.Survey

DueDateGTE applies the GTE predicate on the "dueDate" field.

func DueDateIn

func DueDateIn(vs ...time.Time) predicate.Survey

DueDateIn applies the In predicate on the "dueDate" field.

func DueDateLT

func DueDateLT(v time.Time) predicate.Survey

DueDateLT applies the LT predicate on the "dueDate" field.

func DueDateLTE

func DueDateLTE(v time.Time) predicate.Survey

DueDateLTE applies the LTE predicate on the "dueDate" field.

func DueDateNEQ

func DueDateNEQ(v time.Time) predicate.Survey

DueDateNEQ applies the NEQ predicate on the "dueDate" field.

func DueDateNotIn

func DueDateNotIn(vs ...time.Time) predicate.Survey

DueDateNotIn applies the NotIn predicate on the "dueDate" field.

func HasFlow

func HasFlow() predicate.Survey

HasFlow applies the HasEdge predicate on the "flow" edge.

func HasFlowWith

func HasFlowWith(preds ...predicate.Flow) predicate.Survey

HasFlowWith applies the HasEdge predicate on the "flow" edge with a given conditions (other predicates).

func HasFor

func HasFor() predicate.Survey

HasFor applies the HasEdge predicate on the "for" edge.

func HasForWith

func HasForWith(preds ...predicate.Person) predicate.Survey

HasForWith applies the HasEdge predicate on the "for" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.Survey

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Domain) predicate.Survey

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Survey

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Survey

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Survey

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Survey

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Survey

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Survey

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Survey

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Survey

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Survey

IDNotIn applies the NotIn predicate on the ID field.

func IsPublic

func IsPublic(v bool) predicate.Survey

IsPublic applies equality check predicate on the "isPublic" field. It's identical to IsPublicEQ.

func IsPublicEQ

func IsPublicEQ(v bool) predicate.Survey

IsPublicEQ applies the EQ predicate on the "isPublic" field.

func IsPublicIsNil

func IsPublicIsNil() predicate.Survey

IsPublicIsNil applies the IsNil predicate on the "isPublic" field.

func IsPublicNEQ

func IsPublicNEQ(v bool) predicate.Survey

IsPublicNEQ applies the NEQ predicate on the "isPublic" field.

func IsPublicNotNil

func IsPublicNotNil() predicate.Survey

IsPublicNotNil applies the NotNil predicate on the "isPublic" field.

func LastInteraction

func LastInteraction(v time.Time) predicate.Survey

LastInteraction applies equality check predicate on the "lastInteraction" field. It's identical to LastInteractionEQ.

func LastInteractionEQ

func LastInteractionEQ(v time.Time) predicate.Survey

LastInteractionEQ applies the EQ predicate on the "lastInteraction" field.

func LastInteractionGT

func LastInteractionGT(v time.Time) predicate.Survey

LastInteractionGT applies the GT predicate on the "lastInteraction" field.

func LastInteractionGTE

func LastInteractionGTE(v time.Time) predicate.Survey

LastInteractionGTE applies the GTE predicate on the "lastInteraction" field.

func LastInteractionIn

func LastInteractionIn(vs ...time.Time) predicate.Survey

LastInteractionIn applies the In predicate on the "lastInteraction" field.

func LastInteractionLT

func LastInteractionLT(v time.Time) predicate.Survey

LastInteractionLT applies the LT predicate on the "lastInteraction" field.

func LastInteractionLTE

func LastInteractionLTE(v time.Time) predicate.Survey

LastInteractionLTE applies the LTE predicate on the "lastInteraction" field.

func LastInteractionNEQ

func LastInteractionNEQ(v time.Time) predicate.Survey

LastInteractionNEQ applies the NEQ predicate on the "lastInteraction" field.

func LastInteractionNotIn

func LastInteractionNotIn(vs ...time.Time) predicate.Survey

LastInteractionNotIn applies the NotIn predicate on the "lastInteraction" field.

func MetadataIsNil

func MetadataIsNil() predicate.Survey

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Survey

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Survey) predicate.Survey

Or groups list of predicates with the OR operator between them.

func Title

func Title(v string) predicate.Survey

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Survey

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Survey

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Survey

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Survey

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Survey

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Survey

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Survey

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Survey

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Survey

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Survey

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Survey

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Survey

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Survey

TitleNotIn applies the NotIn predicate on the "title" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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