Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Workspace) predicate.Workspace
- func ID(id int) predicate.Workspace
- func IDEQ(id int) predicate.Workspace
- func IDGT(id int) predicate.Workspace
- func IDGTE(id int) predicate.Workspace
- func IDIn(ids ...int) predicate.Workspace
- func IDLT(id int) predicate.Workspace
- func IDLTE(id int) predicate.Workspace
- func IDNEQ(id int) predicate.Workspace
- func IDNotIn(ids ...int) predicate.Workspace
- func Name(v string) predicate.Workspace
- func NameContains(v string) predicate.Workspace
- func NameContainsFold(v string) predicate.Workspace
- func NameEQ(v string) predicate.Workspace
- func NameEqualFold(v string) predicate.Workspace
- func NameGT(v string) predicate.Workspace
- func NameGTE(v string) predicate.Workspace
- func NameHasPrefix(v string) predicate.Workspace
- func NameHasSuffix(v string) predicate.Workspace
- func NameIn(vs ...string) predicate.Workspace
- func NameLT(v string) predicate.Workspace
- func NameLTE(v string) predicate.Workspace
- func NameNEQ(v string) predicate.Workspace
- func NameNotIn(vs ...string) predicate.Workspace
- func Not(p predicate.Workspace) predicate.Workspace
- func Or(predicates ...predicate.Workspace) predicate.Workspace
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the workspace type in the database. Label = "workspace" // 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" // Table holds the table name of the workspace in the database. Table = "workspaces" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for workspace fields.
Functions ¶
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 Workspace queries.
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.
Click to show internal directories.
Click to hide internal directories.