Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Comment) predicate.Comment
- func Author(v string) predicate.Comment
- func AuthorContains(v string) predicate.Comment
- func AuthorContainsFold(v string) predicate.Comment
- func AuthorEQ(v string) predicate.Comment
- func AuthorEqualFold(v string) predicate.Comment
- func AuthorGT(v string) predicate.Comment
- func AuthorGTE(v string) predicate.Comment
- func AuthorHasPrefix(v string) predicate.Comment
- func AuthorHasSuffix(v string) predicate.Comment
- func AuthorIn(vs ...string) predicate.Comment
- func AuthorLT(v string) predicate.Comment
- func AuthorLTE(v string) predicate.Comment
- func AuthorNEQ(v string) predicate.Comment
- func AuthorNotIn(vs ...string) predicate.Comment
- func Body(v string) predicate.Comment
- func BodyContains(v string) predicate.Comment
- func BodyContainsFold(v string) predicate.Comment
- func BodyEQ(v string) predicate.Comment
- func BodyEqualFold(v string) predicate.Comment
- func BodyGT(v string) predicate.Comment
- func BodyGTE(v string) predicate.Comment
- func BodyHasPrefix(v string) predicate.Comment
- func BodyHasSuffix(v string) predicate.Comment
- func BodyIn(vs ...string) predicate.Comment
- func BodyLT(v string) predicate.Comment
- func BodyLTE(v string) predicate.Comment
- func BodyNEQ(v string) predicate.Comment
- func BodyNotIn(vs ...string) predicate.Comment
- func CreatedAt(v time.Time) predicate.Comment
- func CreatedAtEQ(v time.Time) predicate.Comment
- func CreatedAtGT(v time.Time) predicate.Comment
- func CreatedAtGTE(v time.Time) predicate.Comment
- func CreatedAtIn(vs ...time.Time) predicate.Comment
- func CreatedAtLT(v time.Time) predicate.Comment
- func CreatedAtLTE(v time.Time) predicate.Comment
- func CreatedAtNEQ(v time.Time) predicate.Comment
- func CreatedAtNotIn(vs ...time.Time) predicate.Comment
- func ID(id uuid.UUID) predicate.Comment
- func IDEQ(id uuid.UUID) predicate.Comment
- func IDGT(id uuid.UUID) predicate.Comment
- func IDGTE(id uuid.UUID) predicate.Comment
- func IDIn(ids ...uuid.UUID) predicate.Comment
- func IDLT(id uuid.UUID) predicate.Comment
- func IDLTE(id uuid.UUID) predicate.Comment
- func IDNEQ(id uuid.UUID) predicate.Comment
- func IDNotIn(ids ...uuid.UUID) predicate.Comment
- func Not(p predicate.Comment) predicate.Comment
- func Or(predicates ...predicate.Comment) predicate.Comment
- func Round(v int) predicate.Comment
- func RoundEQ(v int) predicate.Comment
- func RoundGT(v int) predicate.Comment
- func RoundGTE(v int) predicate.Comment
- func RoundIn(vs ...int) predicate.Comment
- func RoundLT(v int) predicate.Comment
- func RoundLTE(v int) predicate.Comment
- func RoundNEQ(v int) predicate.Comment
- func RoundNotIn(vs ...int) predicate.Comment
- func Target(v string) predicate.Comment
- func TargetContains(v string) predicate.Comment
- func TargetContainsFold(v string) predicate.Comment
- func TargetEQ(v string) predicate.Comment
- func TargetEqualFold(v string) predicate.Comment
- func TargetGT(v string) predicate.Comment
- func TargetGTE(v string) predicate.Comment
- func TargetHasPrefix(v string) predicate.Comment
- func TargetHasSuffix(v string) predicate.Comment
- func TargetIn(vs ...string) predicate.Comment
- func TargetLT(v string) predicate.Comment
- func TargetLTE(v string) predicate.Comment
- func TargetNEQ(v string) predicate.Comment
- func TargetNotIn(vs ...string) predicate.Comment
- func Team(v string) predicate.Comment
- func TeamContains(v string) predicate.Comment
- func TeamContainsFold(v string) predicate.Comment
- func TeamEQ(v string) predicate.Comment
- func TeamEqualFold(v string) predicate.Comment
- func TeamGT(v string) predicate.Comment
- func TeamGTE(v string) predicate.Comment
- func TeamHasPrefix(v string) predicate.Comment
- func TeamHasSuffix(v string) predicate.Comment
- func TeamIn(vs ...string) predicate.Comment
- func TeamLT(v string) predicate.Comment
- func TeamLTE(v string) predicate.Comment
- func TeamNEQ(v string) predicate.Comment
- func TeamNotIn(vs ...string) predicate.Comment
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthor(opts ...sql.OrderTermOption) OrderOption
- func ByBody(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRound(opts ...sql.OrderTermOption) OrderOption
- func ByTarget(opts ...sql.OrderTermOption) OrderOption
- func ByTeam(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldTarget holds the string denoting the target field in the database. FieldTarget = "target" // FieldAuthor holds the string denoting the author field in the database. FieldAuthor = "author" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // FieldRound holds the string denoting the round field in the database. FieldRound = "round" // FieldTeam holds the string denoting the team field in the database. FieldTeam = "team" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the comment in the database. Table = "comments" )
Variables ¶
var ( // TargetValidator is a validator for the "target" field. It is called by the builders before save. TargetValidator func(string) error // AuthorValidator is a validator for the "author" field. It is called by the builders before save. AuthorValidator func(string) error // RoundValidator is a validator for the "round" field. It is called by the builders before save. RoundValidator func(int) error // TeamValidator is a validator for the "team" field. It is called by the builders before save. TeamValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTarget, FieldAuthor, FieldBody, FieldRound, FieldTeam, FieldCreatedAt, }
Columns holds all SQL columns for comment fields.
Functions ¶
func Author ¶
Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.
func AuthorContains ¶
AuthorContains applies the Contains predicate on the "author" field.
func AuthorContainsFold ¶
AuthorContainsFold applies the ContainsFold predicate on the "author" field.
func AuthorEqualFold ¶
AuthorEqualFold applies the EqualFold predicate on the "author" field.
func AuthorHasPrefix ¶
AuthorHasPrefix applies the HasPrefix predicate on the "author" field.
func AuthorHasSuffix ¶
AuthorHasSuffix applies the HasSuffix predicate on the "author" field.
func AuthorNotIn ¶
AuthorNotIn applies the NotIn predicate on the "author" field.
func BodyContains ¶
BodyContains applies the Contains predicate on the "body" field.
func BodyContainsFold ¶
BodyContainsFold applies the ContainsFold predicate on the "body" field.
func BodyEqualFold ¶
BodyEqualFold applies the EqualFold predicate on the "body" field.
func BodyHasPrefix ¶
BodyHasPrefix applies the HasPrefix predicate on the "body" field.
func BodyHasSuffix ¶
BodyHasSuffix applies the HasSuffix predicate on the "body" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Round ¶
Round applies equality check predicate on the "round" field. It's identical to RoundEQ.
func RoundNotIn ¶
RoundNotIn applies the NotIn predicate on the "round" field.
func Target ¶
Target applies equality check predicate on the "target" field. It's identical to TargetEQ.
func TargetContains ¶
TargetContains applies the Contains predicate on the "target" field.
func TargetContainsFold ¶
TargetContainsFold applies the ContainsFold predicate on the "target" field.
func TargetEqualFold ¶
TargetEqualFold applies the EqualFold predicate on the "target" field.
func TargetHasPrefix ¶
TargetHasPrefix applies the HasPrefix predicate on the "target" field.
func TargetHasSuffix ¶
TargetHasSuffix applies the HasSuffix predicate on the "target" field.
func TargetNotIn ¶
TargetNotIn applies the NotIn predicate on the "target" field.
func TeamContains ¶
TeamContains applies the Contains predicate on the "team" field.
func TeamContainsFold ¶
TeamContainsFold applies the ContainsFold predicate on the "team" field.
func TeamEqualFold ¶
TeamEqualFold applies the EqualFold predicate on the "team" field.
func TeamHasPrefix ¶
TeamHasPrefix applies the HasPrefix predicate on the "team" field.
func TeamHasSuffix ¶
TeamHasSuffix applies the HasSuffix predicate on the "team" field.
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 Comment queries.
func ByAuthor ¶
func ByAuthor(opts ...sql.OrderTermOption) OrderOption
ByAuthor orders the results by the author field.
func ByBody ¶
func ByBody(opts ...sql.OrderTermOption) OrderOption
ByBody orders the results by the body field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRound ¶
func ByRound(opts ...sql.OrderTermOption) OrderOption
ByRound orders the results by the round field.
func ByTarget ¶
func ByTarget(opts ...sql.OrderTermOption) OrderOption
ByTarget orders the results by the target field.
func ByTeam ¶
func ByTeam(opts ...sql.OrderTermOption) OrderOption
ByTeam orders the results by the team field.