info

package
v0.0.0-...-5bc32a5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the info type in the database.
	Label = "info"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldDeleteAt holds the string denoting the delete_at field in the database.
	FieldDeleteAt = "delete_at"
	// FieldDetail holds the string denoting the detail field in the database.
	FieldDetail = "detail"
	// Table holds the table name of the info in the database.
	Table = "study_info"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultDeleteAt holds the default value on creation for the "delete_at" field.
	DefaultDeleteAt int
)

Columns holds all SQL columns for info fields.

Functions

func And

func And(predicates ...predicate.Info) predicate.Info

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Info

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Info

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Info

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Info

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Info

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Info

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Info

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Info

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Info

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func DeleteAt

func DeleteAt(v int) predicate.Info

DeleteAt applies equality check predicate on the "delete_at" field. It's identical to DeleteAtEQ.

func DeleteAtEQ

func DeleteAtEQ(v int) predicate.Info

DeleteAtEQ applies the EQ predicate on the "delete_at" field.

func DeleteAtGT

func DeleteAtGT(v int) predicate.Info

DeleteAtGT applies the GT predicate on the "delete_at" field.

func DeleteAtGTE

func DeleteAtGTE(v int) predicate.Info

DeleteAtGTE applies the GTE predicate on the "delete_at" field.

func DeleteAtIn

func DeleteAtIn(vs ...int) predicate.Info

DeleteAtIn applies the In predicate on the "delete_at" field.

func DeleteAtIsNil

func DeleteAtIsNil() predicate.Info

DeleteAtIsNil applies the IsNil predicate on the "delete_at" field.

func DeleteAtLT

func DeleteAtLT(v int) predicate.Info

DeleteAtLT applies the LT predicate on the "delete_at" field.

func DeleteAtLTE

func DeleteAtLTE(v int) predicate.Info

DeleteAtLTE applies the LTE predicate on the "delete_at" field.

func DeleteAtNEQ

func DeleteAtNEQ(v int) predicate.Info

DeleteAtNEQ applies the NEQ predicate on the "delete_at" field.

func DeleteAtNotIn

func DeleteAtNotIn(vs ...int) predicate.Info

DeleteAtNotIn applies the NotIn predicate on the "delete_at" field.

func DeleteAtNotNil

func DeleteAtNotNil() predicate.Info

DeleteAtNotNil applies the NotNil predicate on the "delete_at" field.

func Detail

func Detail(v string) predicate.Info

Detail applies equality check predicate on the "detail" field. It's identical to DetailEQ.

func DetailContains

func DetailContains(v string) predicate.Info

DetailContains applies the Contains predicate on the "detail" field.

func DetailContainsFold

func DetailContainsFold(v string) predicate.Info

DetailContainsFold applies the ContainsFold predicate on the "detail" field.

func DetailEQ

func DetailEQ(v string) predicate.Info

DetailEQ applies the EQ predicate on the "detail" field.

func DetailEqualFold

func DetailEqualFold(v string) predicate.Info

DetailEqualFold applies the EqualFold predicate on the "detail" field.

func DetailGT

func DetailGT(v string) predicate.Info

DetailGT applies the GT predicate on the "detail" field.

func DetailGTE

func DetailGTE(v string) predicate.Info

DetailGTE applies the GTE predicate on the "detail" field.

func DetailHasPrefix

func DetailHasPrefix(v string) predicate.Info

DetailHasPrefix applies the HasPrefix predicate on the "detail" field.

func DetailHasSuffix

func DetailHasSuffix(v string) predicate.Info

DetailHasSuffix applies the HasSuffix predicate on the "detail" field.

func DetailIn

func DetailIn(vs ...string) predicate.Info

DetailIn applies the In predicate on the "detail" field.

func DetailLT

func DetailLT(v string) predicate.Info

DetailLT applies the LT predicate on the "detail" field.

func DetailLTE

func DetailLTE(v string) predicate.Info

DetailLTE applies the LTE predicate on the "detail" field.

func DetailNEQ

func DetailNEQ(v string) predicate.Info

DetailNEQ applies the NEQ predicate on the "detail" field.

func DetailNotIn

func DetailNotIn(vs ...string) predicate.Info

DetailNotIn applies the NotIn predicate on the "detail" field.

func ID

func ID(id uint64) predicate.Info

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Info

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Info

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Info

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Info

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Info

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Info

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Info

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Info

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Info

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Info

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Info

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Info

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Info

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Info

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Info

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Info

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Info

UpdatedAtNotNil applies the NotNil 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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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