Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Bookmark) predicate.Bookmark
- func Bookmarks(v string) predicate.Bookmark
- func BookmarksContains(v string) predicate.Bookmark
- func BookmarksContainsFold(v string) predicate.Bookmark
- func BookmarksEQ(v string) predicate.Bookmark
- func BookmarksEqualFold(v string) predicate.Bookmark
- func BookmarksGT(v string) predicate.Bookmark
- func BookmarksGTE(v string) predicate.Bookmark
- func BookmarksHasPrefix(v string) predicate.Bookmark
- func BookmarksHasSuffix(v string) predicate.Bookmark
- func BookmarksIn(vs ...string) predicate.Bookmark
- func BookmarksLT(v string) predicate.Bookmark
- func BookmarksLTE(v string) predicate.Bookmark
- func BookmarksNEQ(v string) predicate.Bookmark
- func BookmarksNotIn(vs ...string) predicate.Bookmark
- func Created(v time.Time) predicate.Bookmark
- func CreatedEQ(v time.Time) predicate.Bookmark
- func CreatedGT(v time.Time) predicate.Bookmark
- func CreatedGTE(v time.Time) predicate.Bookmark
- func CreatedIn(vs ...time.Time) predicate.Bookmark
- func CreatedLT(v time.Time) predicate.Bookmark
- func CreatedLTE(v time.Time) predicate.Bookmark
- func CreatedNEQ(v time.Time) predicate.Bookmark
- func CreatedNotIn(vs ...time.Time) predicate.Bookmark
- func Deleted(v time.Time) predicate.Bookmark
- func DeletedEQ(v time.Time) predicate.Bookmark
- func DeletedGT(v time.Time) predicate.Bookmark
- func DeletedGTE(v time.Time) predicate.Bookmark
- func DeletedIn(vs ...time.Time) predicate.Bookmark
- func DeletedIsNil() predicate.Bookmark
- func DeletedLT(v time.Time) predicate.Bookmark
- func DeletedLTE(v time.Time) predicate.Bookmark
- func DeletedNEQ(v time.Time) predicate.Bookmark
- func DeletedNotIn(vs ...time.Time) predicate.Bookmark
- func DeletedNotNil() predicate.Bookmark
- func ID(id uuid.UUID) predicate.Bookmark
- func IDEQ(id uuid.UUID) predicate.Bookmark
- func IDGT(id uuid.UUID) predicate.Bookmark
- func IDGTE(id uuid.UUID) predicate.Bookmark
- func IDIn(ids ...uuid.UUID) predicate.Bookmark
- func IDLT(id uuid.UUID) predicate.Bookmark
- func IDLTE(id uuid.UUID) predicate.Bookmark
- func IDNEQ(id uuid.UUID) predicate.Bookmark
- func IDNotIn(ids ...uuid.UUID) predicate.Bookmark
- func LastUpdated(v time.Time) predicate.Bookmark
- func LastUpdatedEQ(v time.Time) predicate.Bookmark
- func LastUpdatedGT(v time.Time) predicate.Bookmark
- func LastUpdatedGTE(v time.Time) predicate.Bookmark
- func LastUpdatedIn(vs ...time.Time) predicate.Bookmark
- func LastUpdatedLT(v time.Time) predicate.Bookmark
- func LastUpdatedLTE(v time.Time) predicate.Bookmark
- func LastUpdatedNEQ(v time.Time) predicate.Bookmark
- func LastUpdatedNotIn(vs ...time.Time) predicate.Bookmark
- func Not(p predicate.Bookmark) predicate.Bookmark
- func Or(predicates ...predicate.Bookmark) predicate.Bookmark
- func ValidColumn(column string) bool
- func Version(v string) predicate.Bookmark
- func VersionContains(v string) predicate.Bookmark
- func VersionContainsFold(v string) predicate.Bookmark
- func VersionEQ(v string) predicate.Bookmark
- func VersionEqualFold(v string) predicate.Bookmark
- func VersionGT(v string) predicate.Bookmark
- func VersionGTE(v string) predicate.Bookmark
- func VersionHasPrefix(v string) predicate.Bookmark
- func VersionHasSuffix(v string) predicate.Bookmark
- func VersionIn(vs ...string) predicate.Bookmark
- func VersionLT(v string) predicate.Bookmark
- func VersionLTE(v string) predicate.Bookmark
- func VersionNEQ(v string) predicate.Bookmark
- func VersionNotIn(vs ...string) predicate.Bookmark
- type OrderOption
- func ByBookmarks(opts ...sql.OrderTermOption) OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByDeleted(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastUpdated(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the bookmark type in the database. Label = "bookmark" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldBookmarks holds the string denoting the bookmarks field in the database. FieldBookmarks = "bookmarks" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldLastUpdated holds the string denoting the lastupdated field in the database. FieldLastUpdated = "last_updated" // FieldDeleted holds the string denoting the deleted field in the database. FieldDeleted = "deleted" // Table holds the table name of the bookmark in the database. Table = "bookmarks" )
Variables ¶
var ( // DefaultVersion holds the default value on creation for the "version" field. DefaultVersion string // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(string) error // DefaultCreated holds the default value on creation for the "created" field. DefaultCreated func() time.Time // DefaultLastUpdated holds the default value on creation for the "lastUpdated" field. DefaultLastUpdated func() time.Time // UpdateDefaultLastUpdated holds the default value on update for the "lastUpdated" field. UpdateDefaultLastUpdated func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldBookmarks, FieldVersion, FieldCreated, FieldLastUpdated, FieldDeleted, }
Columns holds all SQL columns for bookmark fields.
Functions ¶
func Bookmarks ¶
Bookmarks applies equality check predicate on the "bookmarks" field. It's identical to BookmarksEQ.
func BookmarksContains ¶
BookmarksContains applies the Contains predicate on the "bookmarks" field.
func BookmarksContainsFold ¶
BookmarksContainsFold applies the ContainsFold predicate on the "bookmarks" field.
func BookmarksEQ ¶
BookmarksEQ applies the EQ predicate on the "bookmarks" field.
func BookmarksEqualFold ¶
BookmarksEqualFold applies the EqualFold predicate on the "bookmarks" field.
func BookmarksGT ¶
BookmarksGT applies the GT predicate on the "bookmarks" field.
func BookmarksGTE ¶
BookmarksGTE applies the GTE predicate on the "bookmarks" field.
func BookmarksHasPrefix ¶
BookmarksHasPrefix applies the HasPrefix predicate on the "bookmarks" field.
func BookmarksHasSuffix ¶
BookmarksHasSuffix applies the HasSuffix predicate on the "bookmarks" field.
func BookmarksIn ¶
BookmarksIn applies the In predicate on the "bookmarks" field.
func BookmarksLT ¶
BookmarksLT applies the LT predicate on the "bookmarks" field.
func BookmarksLTE ¶
BookmarksLTE applies the LTE predicate on the "bookmarks" field.
func BookmarksNEQ ¶
BookmarksNEQ applies the NEQ predicate on the "bookmarks" field.
func BookmarksNotIn ¶
BookmarksNotIn applies the NotIn predicate on the "bookmarks" field.
func Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func Deleted ¶
Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
func DeletedGTE ¶
DeletedGTE applies the GTE predicate on the "deleted" field.
func DeletedIsNil ¶
DeletedIsNil applies the IsNil predicate on the "deleted" field.
func DeletedLTE ¶
DeletedLTE applies the LTE predicate on the "deleted" field.
func DeletedNEQ ¶
DeletedNEQ applies the NEQ predicate on the "deleted" field.
func DeletedNotIn ¶
DeletedNotIn applies the NotIn predicate on the "deleted" field.
func DeletedNotNil ¶
DeletedNotNil applies the NotNil predicate on the "deleted" field.
func LastUpdated ¶
LastUpdated applies equality check predicate on the "lastUpdated" field. It's identical to LastUpdatedEQ.
func LastUpdatedEQ ¶
LastUpdatedEQ applies the EQ predicate on the "lastUpdated" field.
func LastUpdatedGT ¶
LastUpdatedGT applies the GT predicate on the "lastUpdated" field.
func LastUpdatedGTE ¶
LastUpdatedGTE applies the GTE predicate on the "lastUpdated" field.
func LastUpdatedIn ¶
LastUpdatedIn applies the In predicate on the "lastUpdated" field.
func LastUpdatedLT ¶
LastUpdatedLT applies the LT predicate on the "lastUpdated" field.
func LastUpdatedLTE ¶
LastUpdatedLTE applies the LTE predicate on the "lastUpdated" field.
func LastUpdatedNEQ ¶
LastUpdatedNEQ applies the NEQ predicate on the "lastUpdated" field.
func LastUpdatedNotIn ¶
LastUpdatedNotIn applies the NotIn predicate on the "lastUpdated" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶ added in v0.1.3
OrderOption defines the ordering options for the Bookmark queries.
func ByBookmarks ¶ added in v0.1.3
func ByBookmarks(opts ...sql.OrderTermOption) OrderOption
ByBookmarks orders the results by the bookmarks field.
func ByCreated ¶ added in v0.1.3
func ByCreated(opts ...sql.OrderTermOption) OrderOption
ByCreated orders the results by the created field.
func ByDeleted ¶ added in v0.1.3
func ByDeleted(opts ...sql.OrderTermOption) OrderOption
ByDeleted orders the results by the deleted field.
func ByID ¶ added in v0.1.3
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastUpdated ¶ added in v0.1.3
func ByLastUpdated(opts ...sql.OrderTermOption) OrderOption
ByLastUpdated orders the results by the lastUpdated field.
func ByVersion ¶ added in v0.1.3
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.