logentry

package
v0.0.0-...-7432d34 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the logentry type in the database.
	Label = "logentry"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDate holds the string denoting the date field in the database.
	FieldDate = "date"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// Table holds the table name of the logentry in the database.
	Table = "logentries"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "logentries"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "project_logentries"
)

Variables

Columns holds all SQL columns for logentry fields.

View Source
var (
	// DefaultDate holds the default value on creation for the "date" field.
	DefaultDate func() time.Time
)
View Source
var ForeignKeys = []string{
	"project_logentries",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "logentries" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Logentry) predicate.Logentry

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Logentry

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Logentry

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Logentry

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Logentry

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Logentry

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Logentry

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Logentry

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Logentry

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Logentry

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Logentry

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Logentry

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Logentry

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Logentry

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Logentry

ContentNotIn applies the NotIn predicate on the "content" field.

func Date

func Date(v time.Time) predicate.Logentry

Date applies equality check predicate on the "date" field. It's identical to DateEQ.

func DateEQ

func DateEQ(v time.Time) predicate.Logentry

DateEQ applies the EQ predicate on the "date" field.

func DateGT

func DateGT(v time.Time) predicate.Logentry

DateGT applies the GT predicate on the "date" field.

func DateGTE

func DateGTE(v time.Time) predicate.Logentry

DateGTE applies the GTE predicate on the "date" field.

func DateIn

func DateIn(vs ...time.Time) predicate.Logentry

DateIn applies the In predicate on the "date" field.

func DateLT

func DateLT(v time.Time) predicate.Logentry

DateLT applies the LT predicate on the "date" field.

func DateLTE

func DateLTE(v time.Time) predicate.Logentry

DateLTE applies the LTE predicate on the "date" field.

func DateNEQ

func DateNEQ(v time.Time) predicate.Logentry

DateNEQ applies the NEQ predicate on the "date" field.

func DateNotIn

func DateNotIn(vs ...time.Time) predicate.Logentry

DateNotIn applies the NotIn predicate on the "date" field.

func HasProject

func HasProject() predicate.Logentry

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Logentry

HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Logentry

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Logentry

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Logentry

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Logentry

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Logentry

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Logentry

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Logentry

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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 Logentry queries.

func ByContent

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

ByContent orders the results by the content field.

func ByDate

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

ByDate orders the results by the date field.

func ByID

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

ByID orders the results by the id field.

func ByProjectField

func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption

ByProjectField orders the results by project field.

Jump to

Keyboard shortcuts

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