file

package
v0.0.0-...-8e6a2f5 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the file type in the database.
	Label = "file"
	// 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 file in the database.
	Table = "files"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldContents,
}

Columns holds all SQL columns for file fields.

Functions

func And

func And(predicates ...predicate.File) predicate.File

And groups predicates with the AND operator between them.

func Contents

func Contents(v string) predicate.File

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

func ContentsContains

func ContentsContains(v string) predicate.File

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

func ContentsContainsFold

func ContentsContainsFold(v string) predicate.File

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

func ContentsEQ

func ContentsEQ(v string) predicate.File

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

func ContentsEqualFold

func ContentsEqualFold(v string) predicate.File

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

func ContentsGT

func ContentsGT(v string) predicate.File

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

func ContentsGTE

func ContentsGTE(v string) predicate.File

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

func ContentsHasPrefix

func ContentsHasPrefix(v string) predicate.File

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

func ContentsHasSuffix

func ContentsHasSuffix(v string) predicate.File

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

func ContentsIn

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

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

func ContentsLT

func ContentsLT(v string) predicate.File

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

func ContentsLTE

func ContentsLTE(v string) predicate.File

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

func ContentsNEQ

func ContentsNEQ(v string) predicate.File

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

func ContentsNotIn

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

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

func ID

func ID(id string) predicate.File

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.File

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.File

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.File

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.File

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.File

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.File

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.File

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.File

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the File queries.

func ByContents

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

ByContents orders the results by the contents field.

func ByID

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

ByID orders the results by the id field.

Jump to

Keyboard shortcuts

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