words

package
v0.0.0-...-86a9956 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the words type in the database.
	Label = "words"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldGroup holds the string denoting the group field in the database.
	FieldGroup = "group"
	// FieldWord holds the string denoting the word field in the database.
	FieldWord = "word"
	// 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"
	// Table holds the table name of the words in the database.
	Table = "words"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt time.Time
)

Columns holds all SQL columns for words fields.

Functions

func And

func And(predicates ...predicate.Words) predicate.Words

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Words

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Words

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Words

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Words

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Words

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Words

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Words

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

func CreatedAtNotIn

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

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

func Group

func Group(v string) predicate.Words

Group applies equality check predicate on the "group" field. It's identical to GroupEQ.

func GroupContains

func GroupContains(v string) predicate.Words

GroupContains applies the Contains predicate on the "group" field.

func GroupContainsFold

func GroupContainsFold(v string) predicate.Words

GroupContainsFold applies the ContainsFold predicate on the "group" field.

func GroupEQ

func GroupEQ(v string) predicate.Words

GroupEQ applies the EQ predicate on the "group" field.

func GroupEqualFold

func GroupEqualFold(v string) predicate.Words

GroupEqualFold applies the EqualFold predicate on the "group" field.

func GroupGT

func GroupGT(v string) predicate.Words

GroupGT applies the GT predicate on the "group" field.

func GroupGTE

func GroupGTE(v string) predicate.Words

GroupGTE applies the GTE predicate on the "group" field.

func GroupHasPrefix

func GroupHasPrefix(v string) predicate.Words

GroupHasPrefix applies the HasPrefix predicate on the "group" field.

func GroupHasSuffix

func GroupHasSuffix(v string) predicate.Words

GroupHasSuffix applies the HasSuffix predicate on the "group" field.

func GroupIn

func GroupIn(vs ...string) predicate.Words

GroupIn applies the In predicate on the "group" field.

func GroupLT

func GroupLT(v string) predicate.Words

GroupLT applies the LT predicate on the "group" field.

func GroupLTE

func GroupLTE(v string) predicate.Words

GroupLTE applies the LTE predicate on the "group" field.

func GroupNEQ

func GroupNEQ(v string) predicate.Words

GroupNEQ applies the NEQ predicate on the "group" field.

func GroupNotIn

func GroupNotIn(vs ...string) predicate.Words

GroupNotIn applies the NotIn predicate on the "group" field.

func ID

func ID(id int64) predicate.Words

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Words

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Words

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Words

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Words

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Words

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Words

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Words

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Words

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Words) predicate.Words

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Words

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Words

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Words

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Words

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Words

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Words

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Words

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

func UpdatedAtNotIn

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

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).

func Word

func Word(v string) predicate.Words

Word applies equality check predicate on the "word" field. It's identical to WordEQ.

func WordContains

func WordContains(v string) predicate.Words

WordContains applies the Contains predicate on the "word" field.

func WordContainsFold

func WordContainsFold(v string) predicate.Words

WordContainsFold applies the ContainsFold predicate on the "word" field.

func WordEQ

func WordEQ(v string) predicate.Words

WordEQ applies the EQ predicate on the "word" field.

func WordEqualFold

func WordEqualFold(v string) predicate.Words

WordEqualFold applies the EqualFold predicate on the "word" field.

func WordGT

func WordGT(v string) predicate.Words

WordGT applies the GT predicate on the "word" field.

func WordGTE

func WordGTE(v string) predicate.Words

WordGTE applies the GTE predicate on the "word" field.

func WordHasPrefix

func WordHasPrefix(v string) predicate.Words

WordHasPrefix applies the HasPrefix predicate on the "word" field.

func WordHasSuffix

func WordHasSuffix(v string) predicate.Words

WordHasSuffix applies the HasSuffix predicate on the "word" field.

func WordIn

func WordIn(vs ...string) predicate.Words

WordIn applies the In predicate on the "word" field.

func WordLT

func WordLT(v string) predicate.Words

WordLT applies the LT predicate on the "word" field.

func WordLTE

func WordLTE(v string) predicate.Words

WordLTE applies the LTE predicate on the "word" field.

func WordNEQ

func WordNEQ(v string) predicate.Words

WordNEQ applies the NEQ predicate on the "word" field.

func WordNotIn

func WordNotIn(vs ...string) predicate.Words

WordNotIn applies the NotIn predicate on the "word" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Words queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByGroup

func ByGroup(opts ...sql.OrderTermOption) OrderOption

ByGroup orders the results by the group field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByWord

func ByWord(opts ...sql.OrderTermOption) OrderOption

ByWord orders the results by the word field.

Jump to

Keyboard shortcuts

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