forum

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the forum type in the database.
	Label = "forum"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldShortName holds the string denoting the short_name field in the database.
	FieldShortName = "short_name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgePosts holds the string denoting the posts edge name in mutations.
	EdgePosts = "posts"
	// Table holds the table name of the forum in the database.
	Table = "forums"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "forums"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "entgroup" package.
	GroupInverseTable = "groups"
	// GroupColumn is the table column denoting the group relation/edge.
	GroupColumn = "group_forums"
	// PostsTable is the table that holds the posts relation/edge.
	PostsTable = "forum_posts"
	// PostsInverseTable is the table name for the ForumPost entity.
	// It exists in this package in order to avoid circular dependency with the "forumpost" package.
	PostsInverseTable = "forum_posts"
	// PostsColumn is the table column denoting the posts relation/edge.
	PostsColumn = "forum_posts"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// ShortNameValidator is a validator for the "short_name" field. It is called by the builders before save.
	ShortNameValidator func(string) error
)

Columns holds all SQL columns for forum fields.

View Source
var ForeignKeys = []string{
	"group_forums",
}

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

Functions

func And

func And(predicates ...predicate.Forum) predicate.Forum

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Forum

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Forum

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Forum

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Forum

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Forum

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Forum

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Forum

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Forum

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Forum

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Forum

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Forum

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Forum

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Forum

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Forum

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasGroup

func HasGroup() predicate.Forum

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.Forum

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

func HasPosts

func HasPosts() predicate.Forum

HasPosts applies the HasEdge predicate on the "posts" edge.

func HasPostsWith

func HasPostsWith(preds ...predicate.ForumPost) predicate.Forum

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

func ID

func ID(id int) predicate.Forum

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Forum

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Forum

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Forum

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Forum

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Forum

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Forum

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Forum

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Forum

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Forum

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Forum

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Forum

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Forum

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Forum

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Forum

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Forum

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Forum

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Forum

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Forum

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Forum

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Forum

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Forum) predicate.Forum

Or groups predicates with the OR operator between them.

func ShortName

func ShortName(v string) predicate.Forum

ShortName applies equality check predicate on the "short_name" field. It's identical to ShortNameEQ.

func ShortNameContains

func ShortNameContains(v string) predicate.Forum

ShortNameContains applies the Contains predicate on the "short_name" field.

func ShortNameContainsFold

func ShortNameContainsFold(v string) predicate.Forum

ShortNameContainsFold applies the ContainsFold predicate on the "short_name" field.

func ShortNameEQ

func ShortNameEQ(v string) predicate.Forum

ShortNameEQ applies the EQ predicate on the "short_name" field.

func ShortNameEqualFold

func ShortNameEqualFold(v string) predicate.Forum

ShortNameEqualFold applies the EqualFold predicate on the "short_name" field.

func ShortNameGT

func ShortNameGT(v string) predicate.Forum

ShortNameGT applies the GT predicate on the "short_name" field.

func ShortNameGTE

func ShortNameGTE(v string) predicate.Forum

ShortNameGTE applies the GTE predicate on the "short_name" field.

func ShortNameHasPrefix

func ShortNameHasPrefix(v string) predicate.Forum

ShortNameHasPrefix applies the HasPrefix predicate on the "short_name" field.

func ShortNameHasSuffix

func ShortNameHasSuffix(v string) predicate.Forum

ShortNameHasSuffix applies the HasSuffix predicate on the "short_name" field.

func ShortNameIn

func ShortNameIn(vs ...string) predicate.Forum

ShortNameIn applies the In predicate on the "short_name" field.

func ShortNameLT

func ShortNameLT(v string) predicate.Forum

ShortNameLT applies the LT predicate on the "short_name" field.

func ShortNameLTE

func ShortNameLTE(v string) predicate.Forum

ShortNameLTE applies the LTE predicate on the "short_name" field.

func ShortNameNEQ

func ShortNameNEQ(v string) predicate.Forum

ShortNameNEQ applies the NEQ predicate on the "short_name" field.

func ShortNameNotIn

func ShortNameNotIn(vs ...string) predicate.Forum

ShortNameNotIn applies the NotIn predicate on the "short_name" field.

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

func ByDescription

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

ByDescription orders the results by the description field.

func ByGroupField

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

ByGroupField orders the results by group field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByPosts

func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPosts orders the results by posts terms.

func ByPostsCount

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

ByPostsCount orders the results by posts count.

func ByShortName

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

ByShortName orders the results by the short_name field.

Jump to

Keyboard shortcuts

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