product

package
v0.0.0-...-3da28a4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the product type in the database.
	Label = "product"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldNameJa holds the string denoting the name_ja field in the database.
	FieldNameJa = "name_ja"
	// FieldDetail holds the string denoting the detail field in the database.
	FieldDetail = "detail"
	// FieldDetailJa holds the string denoting the detail_ja field in the database.
	FieldDetailJa = "detail_ja"
	// FieldSiteURL holds the string denoting the site_url field in the database.
	FieldSiteURL = "site_url"
	// FieldGithubURL holds the string denoting the github_url field in the database.
	FieldGithubURL = "github_url"
	// FieldDevTime holds the string denoting the dev_time field in the database.
	FieldDevTime = "dev_time"
	// FieldThumbnail holds the string denoting the thumbnail field in the database.
	FieldThumbnail = "thumbnail"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldModified holds the string denoting the modified field in the database.
	FieldModified = "modified"
	// Table holds the table name of the product in the database.
	Table = "products"
)

Variables

View Source
var (
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultModified holds the default value on creation for the "modified" field.
	DefaultModified func() time.Time
	// UpdateDefaultModified holds the default value on update for the "modified" field.
	UpdateDefaultModified func() time.Time
)

Columns holds all SQL columns for product fields.

Functions

func And

func And(predicates ...predicate.Product) predicate.Product

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.Product

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Product

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Product

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Product

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.Product

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Product

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Product

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Product

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.Product

CreatedNotIn applies the NotIn predicate on the "created" field.

func Detail

func Detail(v string) predicate.Product

Detail applies equality check predicate on the "detail" field. It's identical to DetailEQ.

func DetailContains

func DetailContains(v string) predicate.Product

DetailContains applies the Contains predicate on the "detail" field.

func DetailContainsFold

func DetailContainsFold(v string) predicate.Product

DetailContainsFold applies the ContainsFold predicate on the "detail" field.

func DetailEQ

func DetailEQ(v string) predicate.Product

DetailEQ applies the EQ predicate on the "detail" field.

func DetailEqualFold

func DetailEqualFold(v string) predicate.Product

DetailEqualFold applies the EqualFold predicate on the "detail" field.

func DetailGT

func DetailGT(v string) predicate.Product

DetailGT applies the GT predicate on the "detail" field.

func DetailGTE

func DetailGTE(v string) predicate.Product

DetailGTE applies the GTE predicate on the "detail" field.

func DetailHasPrefix

func DetailHasPrefix(v string) predicate.Product

DetailHasPrefix applies the HasPrefix predicate on the "detail" field.

func DetailHasSuffix

func DetailHasSuffix(v string) predicate.Product

DetailHasSuffix applies the HasSuffix predicate on the "detail" field.

func DetailIn

func DetailIn(vs ...string) predicate.Product

DetailIn applies the In predicate on the "detail" field.

func DetailJa

func DetailJa(v string) predicate.Product

DetailJa applies equality check predicate on the "detail_ja" field. It's identical to DetailJaEQ.

func DetailJaContains

func DetailJaContains(v string) predicate.Product

DetailJaContains applies the Contains predicate on the "detail_ja" field.

func DetailJaContainsFold

func DetailJaContainsFold(v string) predicate.Product

DetailJaContainsFold applies the ContainsFold predicate on the "detail_ja" field.

func DetailJaEQ

func DetailJaEQ(v string) predicate.Product

DetailJaEQ applies the EQ predicate on the "detail_ja" field.

func DetailJaEqualFold

func DetailJaEqualFold(v string) predicate.Product

DetailJaEqualFold applies the EqualFold predicate on the "detail_ja" field.

func DetailJaGT

func DetailJaGT(v string) predicate.Product

DetailJaGT applies the GT predicate on the "detail_ja" field.

func DetailJaGTE

func DetailJaGTE(v string) predicate.Product

DetailJaGTE applies the GTE predicate on the "detail_ja" field.

func DetailJaHasPrefix

func DetailJaHasPrefix(v string) predicate.Product

DetailJaHasPrefix applies the HasPrefix predicate on the "detail_ja" field.

func DetailJaHasSuffix

func DetailJaHasSuffix(v string) predicate.Product

DetailJaHasSuffix applies the HasSuffix predicate on the "detail_ja" field.

func DetailJaIn

func DetailJaIn(vs ...string) predicate.Product

DetailJaIn applies the In predicate on the "detail_ja" field.

func DetailJaLT

func DetailJaLT(v string) predicate.Product

DetailJaLT applies the LT predicate on the "detail_ja" field.

func DetailJaLTE

func DetailJaLTE(v string) predicate.Product

DetailJaLTE applies the LTE predicate on the "detail_ja" field.

func DetailJaNEQ

func DetailJaNEQ(v string) predicate.Product

DetailJaNEQ applies the NEQ predicate on the "detail_ja" field.

func DetailJaNotIn

func DetailJaNotIn(vs ...string) predicate.Product

DetailJaNotIn applies the NotIn predicate on the "detail_ja" field.

func DetailLT

func DetailLT(v string) predicate.Product

DetailLT applies the LT predicate on the "detail" field.

func DetailLTE

func DetailLTE(v string) predicate.Product

DetailLTE applies the LTE predicate on the "detail" field.

func DetailNEQ

func DetailNEQ(v string) predicate.Product

DetailNEQ applies the NEQ predicate on the "detail" field.

func DetailNotIn

func DetailNotIn(vs ...string) predicate.Product

DetailNotIn applies the NotIn predicate on the "detail" field.

func DevTime

func DevTime(v time.Time) predicate.Product

DevTime applies equality check predicate on the "dev_time" field. It's identical to DevTimeEQ.

func DevTimeEQ

func DevTimeEQ(v time.Time) predicate.Product

DevTimeEQ applies the EQ predicate on the "dev_time" field.

func DevTimeGT

func DevTimeGT(v time.Time) predicate.Product

DevTimeGT applies the GT predicate on the "dev_time" field.

func DevTimeGTE

func DevTimeGTE(v time.Time) predicate.Product

DevTimeGTE applies the GTE predicate on the "dev_time" field.

func DevTimeIn

func DevTimeIn(vs ...time.Time) predicate.Product

DevTimeIn applies the In predicate on the "dev_time" field.

func DevTimeLT

func DevTimeLT(v time.Time) predicate.Product

DevTimeLT applies the LT predicate on the "dev_time" field.

func DevTimeLTE

func DevTimeLTE(v time.Time) predicate.Product

DevTimeLTE applies the LTE predicate on the "dev_time" field.

func DevTimeNEQ

func DevTimeNEQ(v time.Time) predicate.Product

DevTimeNEQ applies the NEQ predicate on the "dev_time" field.

func DevTimeNotIn

func DevTimeNotIn(vs ...time.Time) predicate.Product

DevTimeNotIn applies the NotIn predicate on the "dev_time" field.

func GithubURL

func GithubURL(v string) predicate.Product

GithubURL applies equality check predicate on the "github_url" field. It's identical to GithubURLEQ.

func GithubURLContains

func GithubURLContains(v string) predicate.Product

GithubURLContains applies the Contains predicate on the "github_url" field.

func GithubURLContainsFold

func GithubURLContainsFold(v string) predicate.Product

GithubURLContainsFold applies the ContainsFold predicate on the "github_url" field.

func GithubURLEQ

func GithubURLEQ(v string) predicate.Product

GithubURLEQ applies the EQ predicate on the "github_url" field.

func GithubURLEqualFold

func GithubURLEqualFold(v string) predicate.Product

GithubURLEqualFold applies the EqualFold predicate on the "github_url" field.

func GithubURLGT

func GithubURLGT(v string) predicate.Product

GithubURLGT applies the GT predicate on the "github_url" field.

func GithubURLGTE

func GithubURLGTE(v string) predicate.Product

GithubURLGTE applies the GTE predicate on the "github_url" field.

func GithubURLHasPrefix

func GithubURLHasPrefix(v string) predicate.Product

GithubURLHasPrefix applies the HasPrefix predicate on the "github_url" field.

func GithubURLHasSuffix

func GithubURLHasSuffix(v string) predicate.Product

GithubURLHasSuffix applies the HasSuffix predicate on the "github_url" field.

func GithubURLIn

func GithubURLIn(vs ...string) predicate.Product

GithubURLIn applies the In predicate on the "github_url" field.

func GithubURLIsNil

func GithubURLIsNil() predicate.Product

GithubURLIsNil applies the IsNil predicate on the "github_url" field.

func GithubURLLT

func GithubURLLT(v string) predicate.Product

GithubURLLT applies the LT predicate on the "github_url" field.

func GithubURLLTE

func GithubURLLTE(v string) predicate.Product

GithubURLLTE applies the LTE predicate on the "github_url" field.

func GithubURLNEQ

func GithubURLNEQ(v string) predicate.Product

GithubURLNEQ applies the NEQ predicate on the "github_url" field.

func GithubURLNotIn

func GithubURLNotIn(vs ...string) predicate.Product

GithubURLNotIn applies the NotIn predicate on the "github_url" field.

func GithubURLNotNil

func GithubURLNotNil() predicate.Product

GithubURLNotNil applies the NotNil predicate on the "github_url" field.

func ID

func ID(id uint32) predicate.Product

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.Product

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.Product

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.Product

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint32) predicate.Product

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.Product

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.Product

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.Product

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint32) predicate.Product

IDNotIn applies the NotIn predicate on the ID field.

func Modified

func Modified(v time.Time) predicate.Product

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v time.Time) predicate.Product

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedGT

func ModifiedGT(v time.Time) predicate.Product

ModifiedGT applies the GT predicate on the "modified" field.

func ModifiedGTE

func ModifiedGTE(v time.Time) predicate.Product

ModifiedGTE applies the GTE predicate on the "modified" field.

func ModifiedIn

func ModifiedIn(vs ...time.Time) predicate.Product

ModifiedIn applies the In predicate on the "modified" field.

func ModifiedLT

func ModifiedLT(v time.Time) predicate.Product

ModifiedLT applies the LT predicate on the "modified" field.

func ModifiedLTE

func ModifiedLTE(v time.Time) predicate.Product

ModifiedLTE applies the LTE predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v time.Time) predicate.Product

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func ModifiedNotIn

func ModifiedNotIn(vs ...time.Time) predicate.Product

ModifiedNotIn applies the NotIn predicate on the "modified" field.

func Name

func Name(v string) predicate.Product

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

func NameContains

func NameContains(v string) predicate.Product

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

func NameContainsFold

func NameContainsFold(v string) predicate.Product

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

func NameEQ

func NameEQ(v string) predicate.Product

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

func NameEqualFold

func NameEqualFold(v string) predicate.Product

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

func NameGT

func NameGT(v string) predicate.Product

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

func NameGTE

func NameGTE(v string) predicate.Product

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Product

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Product

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

func NameIn

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

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

func NameJa

func NameJa(v string) predicate.Product

NameJa applies equality check predicate on the "name_ja" field. It's identical to NameJaEQ.

func NameJaContains

func NameJaContains(v string) predicate.Product

NameJaContains applies the Contains predicate on the "name_ja" field.

func NameJaContainsFold

func NameJaContainsFold(v string) predicate.Product

NameJaContainsFold applies the ContainsFold predicate on the "name_ja" field.

func NameJaEQ

func NameJaEQ(v string) predicate.Product

NameJaEQ applies the EQ predicate on the "name_ja" field.

func NameJaEqualFold

func NameJaEqualFold(v string) predicate.Product

NameJaEqualFold applies the EqualFold predicate on the "name_ja" field.

func NameJaGT

func NameJaGT(v string) predicate.Product

NameJaGT applies the GT predicate on the "name_ja" field.

func NameJaGTE

func NameJaGTE(v string) predicate.Product

NameJaGTE applies the GTE predicate on the "name_ja" field.

func NameJaHasPrefix

func NameJaHasPrefix(v string) predicate.Product

NameJaHasPrefix applies the HasPrefix predicate on the "name_ja" field.

func NameJaHasSuffix

func NameJaHasSuffix(v string) predicate.Product

NameJaHasSuffix applies the HasSuffix predicate on the "name_ja" field.

func NameJaIn

func NameJaIn(vs ...string) predicate.Product

NameJaIn applies the In predicate on the "name_ja" field.

func NameJaLT

func NameJaLT(v string) predicate.Product

NameJaLT applies the LT predicate on the "name_ja" field.

func NameJaLTE

func NameJaLTE(v string) predicate.Product

NameJaLTE applies the LTE predicate on the "name_ja" field.

func NameJaNEQ

func NameJaNEQ(v string) predicate.Product

NameJaNEQ applies the NEQ predicate on the "name_ja" field.

func NameJaNotIn

func NameJaNotIn(vs ...string) predicate.Product

NameJaNotIn applies the NotIn predicate on the "name_ja" field.

func NameLT

func NameLT(v string) predicate.Product

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

func NameLTE

func NameLTE(v string) predicate.Product

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

func NameNEQ

func NameNEQ(v string) predicate.Product

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

func NameNotIn

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

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.Product) predicate.Product

Or groups predicates with the OR operator between them.

func SiteURL

func SiteURL(v string) predicate.Product

SiteURL applies equality check predicate on the "site_url" field. It's identical to SiteURLEQ.

func SiteURLContains

func SiteURLContains(v string) predicate.Product

SiteURLContains applies the Contains predicate on the "site_url" field.

func SiteURLContainsFold

func SiteURLContainsFold(v string) predicate.Product

SiteURLContainsFold applies the ContainsFold predicate on the "site_url" field.

func SiteURLEQ

func SiteURLEQ(v string) predicate.Product

SiteURLEQ applies the EQ predicate on the "site_url" field.

func SiteURLEqualFold

func SiteURLEqualFold(v string) predicate.Product

SiteURLEqualFold applies the EqualFold predicate on the "site_url" field.

func SiteURLGT

func SiteURLGT(v string) predicate.Product

SiteURLGT applies the GT predicate on the "site_url" field.

func SiteURLGTE

func SiteURLGTE(v string) predicate.Product

SiteURLGTE applies the GTE predicate on the "site_url" field.

func SiteURLHasPrefix

func SiteURLHasPrefix(v string) predicate.Product

SiteURLHasPrefix applies the HasPrefix predicate on the "site_url" field.

func SiteURLHasSuffix

func SiteURLHasSuffix(v string) predicate.Product

SiteURLHasSuffix applies the HasSuffix predicate on the "site_url" field.

func SiteURLIn

func SiteURLIn(vs ...string) predicate.Product

SiteURLIn applies the In predicate on the "site_url" field.

func SiteURLLT

func SiteURLLT(v string) predicate.Product

SiteURLLT applies the LT predicate on the "site_url" field.

func SiteURLLTE

func SiteURLLTE(v string) predicate.Product

SiteURLLTE applies the LTE predicate on the "site_url" field.

func SiteURLNEQ

func SiteURLNEQ(v string) predicate.Product

SiteURLNEQ applies the NEQ predicate on the "site_url" field.

func SiteURLNotIn

func SiteURLNotIn(vs ...string) predicate.Product

SiteURLNotIn applies the NotIn predicate on the "site_url" field.

func Thumbnail

func Thumbnail(v string) predicate.Product

Thumbnail applies equality check predicate on the "thumbnail" field. It's identical to ThumbnailEQ.

func ThumbnailContains

func ThumbnailContains(v string) predicate.Product

ThumbnailContains applies the Contains predicate on the "thumbnail" field.

func ThumbnailContainsFold

func ThumbnailContainsFold(v string) predicate.Product

ThumbnailContainsFold applies the ContainsFold predicate on the "thumbnail" field.

func ThumbnailEQ

func ThumbnailEQ(v string) predicate.Product

ThumbnailEQ applies the EQ predicate on the "thumbnail" field.

func ThumbnailEqualFold

func ThumbnailEqualFold(v string) predicate.Product

ThumbnailEqualFold applies the EqualFold predicate on the "thumbnail" field.

func ThumbnailGT

func ThumbnailGT(v string) predicate.Product

ThumbnailGT applies the GT predicate on the "thumbnail" field.

func ThumbnailGTE

func ThumbnailGTE(v string) predicate.Product

ThumbnailGTE applies the GTE predicate on the "thumbnail" field.

func ThumbnailHasPrefix

func ThumbnailHasPrefix(v string) predicate.Product

ThumbnailHasPrefix applies the HasPrefix predicate on the "thumbnail" field.

func ThumbnailHasSuffix

func ThumbnailHasSuffix(v string) predicate.Product

ThumbnailHasSuffix applies the HasSuffix predicate on the "thumbnail" field.

func ThumbnailIn

func ThumbnailIn(vs ...string) predicate.Product

ThumbnailIn applies the In predicate on the "thumbnail" field.

func ThumbnailIsNil

func ThumbnailIsNil() predicate.Product

ThumbnailIsNil applies the IsNil predicate on the "thumbnail" field.

func ThumbnailLT

func ThumbnailLT(v string) predicate.Product

ThumbnailLT applies the LT predicate on the "thumbnail" field.

func ThumbnailLTE

func ThumbnailLTE(v string) predicate.Product

ThumbnailLTE applies the LTE predicate on the "thumbnail" field.

func ThumbnailNEQ

func ThumbnailNEQ(v string) predicate.Product

ThumbnailNEQ applies the NEQ predicate on the "thumbnail" field.

func ThumbnailNotIn

func ThumbnailNotIn(vs ...string) predicate.Product

ThumbnailNotIn applies the NotIn predicate on the "thumbnail" field.

func ThumbnailNotNil

func ThumbnailNotNil() predicate.Product

ThumbnailNotNil applies the NotNil predicate on the "thumbnail" field.

func UserID

func UserID(v uint32) predicate.Product

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uint32) predicate.Product

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v uint32) predicate.Product

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v uint32) predicate.Product

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uint32) predicate.Product

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v uint32) predicate.Product

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v uint32) predicate.Product

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uint32) predicate.Product

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uint32) predicate.Product

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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