thought

package
v0.0.0-...-335ed28 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the thought type in the database.
	Label = "thought"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldImageURL holds the string denoting the imageurl field in the database.
	FieldImageURL = "image_url"
	// FieldUserId holds the string denoting the userid field in the database.
	FieldUserId = "user_id"
	// Table holds the table name of the thought in the database.
	Table = "thoughts"
)

Variables

View Source
var (
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultBody holds the default value on creation for the "body" field.
	DefaultBody string
	// BodyValidator is a validator for the "body" field. It is called by the builders before save.
	BodyValidator func(string) error
)

Columns holds all SQL columns for thought fields.

Functions

func And

func And(predicates ...predicate.Thought) predicate.Thought

And groups predicates with the AND operator between them.

func Body

func Body(v string) predicate.Thought

Body applies equality check predicate on the "body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.Thought

BodyContains applies the Contains predicate on the "body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.Thought

BodyContainsFold applies the ContainsFold predicate on the "body" field.

func BodyEQ

func BodyEQ(v string) predicate.Thought

BodyEQ applies the EQ predicate on the "body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.Thought

BodyEqualFold applies the EqualFold predicate on the "body" field.

func BodyGT

func BodyGT(v string) predicate.Thought

BodyGT applies the GT predicate on the "body" field.

func BodyGTE

func BodyGTE(v string) predicate.Thought

BodyGTE applies the GTE predicate on the "body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.Thought

BodyHasPrefix applies the HasPrefix predicate on the "body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.Thought

BodyHasSuffix applies the HasSuffix predicate on the "body" field.

func BodyIn

func BodyIn(vs ...string) predicate.Thought

BodyIn applies the In predicate on the "body" field.

func BodyLT

func BodyLT(v string) predicate.Thought

BodyLT applies the LT predicate on the "body" field.

func BodyLTE

func BodyLTE(v string) predicate.Thought

BodyLTE applies the LTE predicate on the "body" field.

func BodyNEQ

func BodyNEQ(v string) predicate.Thought

BodyNEQ applies the NEQ predicate on the "body" field.

func BodyNotIn

func BodyNotIn(vs ...string) predicate.Thought

BodyNotIn applies the NotIn predicate on the "body" field.

func ID

func ID(id int) predicate.Thought

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Thought

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Thought

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Thought

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Thought

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Thought

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Thought

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Thought

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Thought

IDNotIn applies the NotIn predicate on the ID field.

func ImageURL

func ImageURL(v string) predicate.Thought

ImageURL applies equality check predicate on the "imageURL" field. It's identical to ImageURLEQ.

func ImageURLContains

func ImageURLContains(v string) predicate.Thought

ImageURLContains applies the Contains predicate on the "imageURL" field.

func ImageURLContainsFold

func ImageURLContainsFold(v string) predicate.Thought

ImageURLContainsFold applies the ContainsFold predicate on the "imageURL" field.

func ImageURLEQ

func ImageURLEQ(v string) predicate.Thought

ImageURLEQ applies the EQ predicate on the "imageURL" field.

func ImageURLEqualFold

func ImageURLEqualFold(v string) predicate.Thought

ImageURLEqualFold applies the EqualFold predicate on the "imageURL" field.

func ImageURLGT

func ImageURLGT(v string) predicate.Thought

ImageURLGT applies the GT predicate on the "imageURL" field.

func ImageURLGTE

func ImageURLGTE(v string) predicate.Thought

ImageURLGTE applies the GTE predicate on the "imageURL" field.

func ImageURLHasPrefix

func ImageURLHasPrefix(v string) predicate.Thought

ImageURLHasPrefix applies the HasPrefix predicate on the "imageURL" field.

func ImageURLHasSuffix

func ImageURLHasSuffix(v string) predicate.Thought

ImageURLHasSuffix applies the HasSuffix predicate on the "imageURL" field.

func ImageURLIn

func ImageURLIn(vs ...string) predicate.Thought

ImageURLIn applies the In predicate on the "imageURL" field.

func ImageURLLT

func ImageURLLT(v string) predicate.Thought

ImageURLLT applies the LT predicate on the "imageURL" field.

func ImageURLLTE

func ImageURLLTE(v string) predicate.Thought

ImageURLLTE applies the LTE predicate on the "imageURL" field.

func ImageURLNEQ

func ImageURLNEQ(v string) predicate.Thought

ImageURLNEQ applies the NEQ predicate on the "imageURL" field.

func ImageURLNotIn

func ImageURLNotIn(vs ...string) predicate.Thought

ImageURLNotIn applies the NotIn predicate on the "imageURL" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Thought) predicate.Thought

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.Thought

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

func TitleContains

func TitleContains(v string) predicate.Thought

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.Thought

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

func TitleEQ

func TitleEQ(v string) predicate.Thought

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.Thought

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

func TitleGT

func TitleGT(v string) predicate.Thought

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

func TitleGTE

func TitleGTE(v string) predicate.Thought

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Thought

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Thought

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.Thought

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

func TitleLTE

func TitleLTE(v string) predicate.Thought

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

func TitleNEQ

func TitleNEQ(v string) predicate.Thought

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

func TitleNotIn

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

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

func UserId

func UserId(v int64) predicate.Thought

UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.

func UserIdEQ

func UserIdEQ(v int64) predicate.Thought

UserIdEQ applies the EQ predicate on the "userId" field.

func UserIdGT

func UserIdGT(v int64) predicate.Thought

UserIdGT applies the GT predicate on the "userId" field.

func UserIdGTE

func UserIdGTE(v int64) predicate.Thought

UserIdGTE applies the GTE predicate on the "userId" field.

func UserIdIn

func UserIdIn(vs ...int64) predicate.Thought

UserIdIn applies the In predicate on the "userId" field.

func UserIdLT

func UserIdLT(v int64) predicate.Thought

UserIdLT applies the LT predicate on the "userId" field.

func UserIdLTE

func UserIdLTE(v int64) predicate.Thought

UserIdLTE applies the LTE predicate on the "userId" field.

func UserIdNEQ

func UserIdNEQ(v int64) predicate.Thought

UserIdNEQ applies the NEQ predicate on the "userId" field.

func UserIdNotIn

func UserIdNotIn(vs ...int64) predicate.Thought

UserIdNotIn applies the NotIn predicate on the "userId" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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