Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Logentry) predicate.Logentry
- func Content(v string) predicate.Logentry
- func ContentContains(v string) predicate.Logentry
- func ContentContainsFold(v string) predicate.Logentry
- func ContentEQ(v string) predicate.Logentry
- func ContentEqualFold(v string) predicate.Logentry
- func ContentGT(v string) predicate.Logentry
- func ContentGTE(v string) predicate.Logentry
- func ContentHasPrefix(v string) predicate.Logentry
- func ContentHasSuffix(v string) predicate.Logentry
- func ContentIn(vs ...string) predicate.Logentry
- func ContentLT(v string) predicate.Logentry
- func ContentLTE(v string) predicate.Logentry
- func ContentNEQ(v string) predicate.Logentry
- func ContentNotIn(vs ...string) predicate.Logentry
- func Date(v time.Time) predicate.Logentry
- func DateEQ(v time.Time) predicate.Logentry
- func DateGT(v time.Time) predicate.Logentry
- func DateGTE(v time.Time) predicate.Logentry
- func DateIn(vs ...time.Time) predicate.Logentry
- func DateLT(v time.Time) predicate.Logentry
- func DateLTE(v time.Time) predicate.Logentry
- func DateNEQ(v time.Time) predicate.Logentry
- func DateNotIn(vs ...time.Time) predicate.Logentry
- func HasProject() predicate.Logentry
- func HasProjectWith(preds ...predicate.Project) predicate.Logentry
- func ID(id int) predicate.Logentry
- func IDEQ(id int) predicate.Logentry
- func IDGT(id int) predicate.Logentry
- func IDGTE(id int) predicate.Logentry
- func IDIn(ids ...int) predicate.Logentry
- func IDLT(id int) predicate.Logentry
- func IDLTE(id int) predicate.Logentry
- func IDNEQ(id int) predicate.Logentry
- func IDNotIn(ids ...int) predicate.Logentry
- func Not(p predicate.Logentry) predicate.Logentry
- func Or(predicates ...predicate.Logentry) predicate.Logentry
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldDate, FieldContent, }
Columns holds all SQL columns for logentry fields.
var ( // DefaultDate holds the default value on creation for the "date" field. DefaultDate func() time.Time )
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 Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func HasProject ¶
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.