code

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the code type in the database.
	Label = "code"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldContents holds the string denoting the contents field in the database.
	FieldContents = "contents"
	// Table holds the table name of the code in the database.
	Table = "codes"
)

Variables

View Source
var (
	// ContentsValidator is a validator for the "contents" field. It is called by the builders before save.
	ContentsValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var Columns = []string{
	FieldID,
	FieldContents,
}

Columns holds all SQL columns for code fields.

Functions

func And

func And(predicates ...predicate.Code) predicate.Code

And groups predicates with the AND operator between them.

func Contents

func Contents(v string) predicate.Code

Contents applies equality check predicate on the "contents" field. It's identical to ContentsEQ.

func ContentsContains

func ContentsContains(v string) predicate.Code

ContentsContains applies the Contains predicate on the "contents" field.

func ContentsContainsFold

func ContentsContainsFold(v string) predicate.Code

ContentsContainsFold applies the ContainsFold predicate on the "contents" field.

func ContentsEQ

func ContentsEQ(v string) predicate.Code

ContentsEQ applies the EQ predicate on the "contents" field.

func ContentsEqualFold

func ContentsEqualFold(v string) predicate.Code

ContentsEqualFold applies the EqualFold predicate on the "contents" field.

func ContentsGT

func ContentsGT(v string) predicate.Code

ContentsGT applies the GT predicate on the "contents" field.

func ContentsGTE

func ContentsGTE(v string) predicate.Code

ContentsGTE applies the GTE predicate on the "contents" field.

func ContentsHasPrefix

func ContentsHasPrefix(v string) predicate.Code

ContentsHasPrefix applies the HasPrefix predicate on the "contents" field.

func ContentsHasSuffix

func ContentsHasSuffix(v string) predicate.Code

ContentsHasSuffix applies the HasSuffix predicate on the "contents" field.

func ContentsIn

func ContentsIn(vs ...string) predicate.Code

ContentsIn applies the In predicate on the "contents" field.

func ContentsLT

func ContentsLT(v string) predicate.Code

ContentsLT applies the LT predicate on the "contents" field.

func ContentsLTE

func ContentsLTE(v string) predicate.Code

ContentsLTE applies the LTE predicate on the "contents" field.

func ContentsNEQ

func ContentsNEQ(v string) predicate.Code

ContentsNEQ applies the NEQ predicate on the "contents" field.

func ContentsNotIn

func ContentsNotIn(vs ...string) predicate.Code

ContentsNotIn applies the NotIn predicate on the "contents" field.

func ID

func ID(id uuid.UUID) predicate.Code

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Code

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Code

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Code

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Code

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Code

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Code

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

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