comment

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the comment type in the database.
	Label = "comment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUniqueInt holds the string denoting the unique_int field in the database.
	FieldUniqueInt = "unique_int"
	// FieldUniqueFloat holds the string denoting the unique_float field in the database.
	FieldUniqueFloat = "unique_float"
	// FieldNillableInt holds the string denoting the nillable_int field in the database.
	FieldNillableInt = "nillable_int"

	// Table holds the table name of the comment in the database.
	Table = "comments"
)

Variables

Columns holds all SQL columns for comment fields.

Functions

func And

func And(predicates ...predicate.Comment) predicate.Comment

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

func ID

func ID(id int) predicate.Comment

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Comment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Comment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Comment

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Comment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Comment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Comment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func NillableInt

func NillableInt(v int) predicate.Comment

NillableInt applies equality check predicate on the "nillable_int" field. It's identical to NillableIntEQ.

func NillableIntEQ

func NillableIntEQ(v int) predicate.Comment

NillableIntEQ applies the EQ predicate on the "nillable_int" field.

func NillableIntGT

func NillableIntGT(v int) predicate.Comment

NillableIntGT applies the GT predicate on the "nillable_int" field.

func NillableIntGTE

func NillableIntGTE(v int) predicate.Comment

NillableIntGTE applies the GTE predicate on the "nillable_int" field.

func NillableIntIn

func NillableIntIn(vs ...int) predicate.Comment

NillableIntIn applies the In predicate on the "nillable_int" field.

func NillableIntIsNil

func NillableIntIsNil() predicate.Comment

NillableIntIsNil applies the IsNil predicate on the "nillable_int" field.

func NillableIntLT

func NillableIntLT(v int) predicate.Comment

NillableIntLT applies the LT predicate on the "nillable_int" field.

func NillableIntLTE

func NillableIntLTE(v int) predicate.Comment

NillableIntLTE applies the LTE predicate on the "nillable_int" field.

func NillableIntNEQ

func NillableIntNEQ(v int) predicate.Comment

NillableIntNEQ applies the NEQ predicate on the "nillable_int" field.

func NillableIntNotIn

func NillableIntNotIn(vs ...int) predicate.Comment

NillableIntNotIn applies the NotIn predicate on the "nillable_int" field.

func NillableIntNotNil

func NillableIntNotNil() predicate.Comment

NillableIntNotNil applies the NotNil predicate on the "nillable_int" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Comment) predicate.Comment

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

func UniqueFloat

func UniqueFloat(v float64) predicate.Comment

UniqueFloat applies equality check predicate on the "unique_float" field. It's identical to UniqueFloatEQ.

func UniqueFloatEQ

func UniqueFloatEQ(v float64) predicate.Comment

UniqueFloatEQ applies the EQ predicate on the "unique_float" field.

func UniqueFloatGT

func UniqueFloatGT(v float64) predicate.Comment

UniqueFloatGT applies the GT predicate on the "unique_float" field.

func UniqueFloatGTE

func UniqueFloatGTE(v float64) predicate.Comment

UniqueFloatGTE applies the GTE predicate on the "unique_float" field.

func UniqueFloatIn

func UniqueFloatIn(vs ...float64) predicate.Comment

UniqueFloatIn applies the In predicate on the "unique_float" field.

func UniqueFloatLT

func UniqueFloatLT(v float64) predicate.Comment

UniqueFloatLT applies the LT predicate on the "unique_float" field.

func UniqueFloatLTE

func UniqueFloatLTE(v float64) predicate.Comment

UniqueFloatLTE applies the LTE predicate on the "unique_float" field.

func UniqueFloatNEQ

func UniqueFloatNEQ(v float64) predicate.Comment

UniqueFloatNEQ applies the NEQ predicate on the "unique_float" field.

func UniqueFloatNotIn

func UniqueFloatNotIn(vs ...float64) predicate.Comment

UniqueFloatNotIn applies the NotIn predicate on the "unique_float" field.

func UniqueInt

func UniqueInt(v int) predicate.Comment

UniqueInt applies equality check predicate on the "unique_int" field. It's identical to UniqueIntEQ.

func UniqueIntEQ

func UniqueIntEQ(v int) predicate.Comment

UniqueIntEQ applies the EQ predicate on the "unique_int" field.

func UniqueIntGT

func UniqueIntGT(v int) predicate.Comment

UniqueIntGT applies the GT predicate on the "unique_int" field.

func UniqueIntGTE

func UniqueIntGTE(v int) predicate.Comment

UniqueIntGTE applies the GTE predicate on the "unique_int" field.

func UniqueIntIn

func UniqueIntIn(vs ...int) predicate.Comment

UniqueIntIn applies the In predicate on the "unique_int" field.

func UniqueIntLT

func UniqueIntLT(v int) predicate.Comment

UniqueIntLT applies the LT predicate on the "unique_int" field.

func UniqueIntLTE

func UniqueIntLTE(v int) predicate.Comment

UniqueIntLTE applies the LTE predicate on the "unique_int" field.

func UniqueIntNEQ

func UniqueIntNEQ(v int) predicate.Comment

UniqueIntNEQ applies the NEQ predicate on the "unique_int" field.

func UniqueIntNotIn

func UniqueIntNotIn(vs ...int) predicate.Comment

UniqueIntNotIn applies the NotIn predicate on the "unique_int" field.

func ValidColumn added in v0.4.3

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