Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func HasSongs() predicate.Tag
- func HasSongsWith(preds ...predicate.Song) predicate.Tag
- func ID(id int64) predicate.Tag
- func IDEQ(id int64) predicate.Tag
- func IDGT(id int64) predicate.Tag
- func IDGTE(id int64) predicate.Tag
- func IDIn(ids ...int64) predicate.Tag
- func IDLT(id int64) predicate.Tag
- func IDLTE(id int64) predicate.Tag
- func IDNEQ(id int64) predicate.Tag
- func IDNotIn(ids ...int64) predicate.Tag
- func Name(v string) predicate.Tag
- func NameContains(v string) predicate.Tag
- func NameContainsFold(v string) predicate.Tag
- func NameEQ(v string) predicate.Tag
- func NameEqualFold(v string) predicate.Tag
- func NameGT(v string) predicate.Tag
- func NameGTE(v string) predicate.Tag
- func NameHasPrefix(v string) predicate.Tag
- func NameHasSuffix(v string) predicate.Tag
- func NameIn(vs ...string) predicate.Tag
- func NameLT(v string) predicate.Tag
- func NameLTE(v string) predicate.Tag
- func NameNEQ(v string) predicate.Tag
- func NameNotIn(vs ...string) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) predicate.Tag
Constants ¶
View Source
const ( // Label holds the string label denoting the tag type in the database. Label = "tag" // 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" // EdgeSongs holds the string denoting the songs edge name in mutations. EdgeSongs = "songs" // Table holds the table name of the tag in the database. Table = "tags" // SongsTable is the table the holds the songs relation/edge. The primary key declared below. SongsTable = "song_tags" // SongsInverseTable is the table name for the Song entity. // It exists in this package in order to avoid circular dependency with the "song" package. SongsInverseTable = "songs" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for tag fields.
View Source
var ( // SongsPrimaryKey and SongsColumn2 are the table columns denoting the // primary key for the songs relation (M2M). SongsPrimaryKey = []string{"song_id", "tag_id"} )
Functions ¶
func HasSongsWith ¶
HasSongsWith applies the HasEdge predicate on the "songs" edge with a given conditions (other predicates).
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.