bookmark

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for bookmark fields.

Functions

func And

func And(predicates ...predicate.Bookmark) predicate.Bookmark

And groups predicates with the AND operator between them.

func Bookmarks

func Bookmarks(v string) predicate.Bookmark

Bookmarks applies equality check predicate on the "bookmarks" field. It's identical to BookmarksEQ.

func BookmarksContains

func BookmarksContains(v string) predicate.Bookmark

BookmarksContains applies the Contains predicate on the "bookmarks" field.

func BookmarksContainsFold

func BookmarksContainsFold(v string) predicate.Bookmark

BookmarksContainsFold applies the ContainsFold predicate on the "bookmarks" field.

func BookmarksEQ

func BookmarksEQ(v string) predicate.Bookmark

BookmarksEQ applies the EQ predicate on the "bookmarks" field.

func BookmarksEqualFold

func BookmarksEqualFold(v string) predicate.Bookmark

BookmarksEqualFold applies the EqualFold predicate on the "bookmarks" field.

func BookmarksGT

func BookmarksGT(v string) predicate.Bookmark

BookmarksGT applies the GT predicate on the "bookmarks" field.

func BookmarksGTE

func BookmarksGTE(v string) predicate.Bookmark

BookmarksGTE applies the GTE predicate on the "bookmarks" field.

func BookmarksHasPrefix

func BookmarksHasPrefix(v string) predicate.Bookmark

BookmarksHasPrefix applies the HasPrefix predicate on the "bookmarks" field.

func BookmarksHasSuffix

func BookmarksHasSuffix(v string) predicate.Bookmark

BookmarksHasSuffix applies the HasSuffix predicate on the "bookmarks" field.

func BookmarksIn

func BookmarksIn(vs ...string) predicate.Bookmark

BookmarksIn applies the In predicate on the "bookmarks" field.

func BookmarksLT

func BookmarksLT(v string) predicate.Bookmark

BookmarksLT applies the LT predicate on the "bookmarks" field.

func BookmarksLTE

func BookmarksLTE(v string) predicate.Bookmark

BookmarksLTE applies the LTE predicate on the "bookmarks" field.

func BookmarksNEQ

func BookmarksNEQ(v string) predicate.Bookmark

BookmarksNEQ applies the NEQ predicate on the "bookmarks" field.

func BookmarksNotIn

func BookmarksNotIn(vs ...string) predicate.Bookmark

BookmarksNotIn applies the NotIn predicate on the "bookmarks" field.

func Created

func Created(v time.Time) predicate.Bookmark

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

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Bookmark

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

func CreatedGT

func CreatedGT(v time.Time) predicate.Bookmark

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

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Bookmark

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

func CreatedIn

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

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

func CreatedLT

func CreatedLT(v time.Time) predicate.Bookmark

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

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Bookmark

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

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Bookmark

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

func CreatedNotIn

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

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

func Deleted

func Deleted(v time.Time) predicate.Bookmark

Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.

func DeletedEQ

func DeletedEQ(v time.Time) predicate.Bookmark

DeletedEQ applies the EQ predicate on the "deleted" field.

func DeletedGT

func DeletedGT(v time.Time) predicate.Bookmark

DeletedGT applies the GT predicate on the "deleted" field.

func DeletedGTE

func DeletedGTE(v time.Time) predicate.Bookmark

DeletedGTE applies the GTE predicate on the "deleted" field.

func DeletedIn

func DeletedIn(vs ...time.Time) predicate.Bookmark

DeletedIn applies the In predicate on the "deleted" field.

func DeletedIsNil

func DeletedIsNil() predicate.Bookmark

DeletedIsNil applies the IsNil predicate on the "deleted" field.

func DeletedLT

func DeletedLT(v time.Time) predicate.Bookmark

DeletedLT applies the LT predicate on the "deleted" field.

func DeletedLTE

func DeletedLTE(v time.Time) predicate.Bookmark

DeletedLTE applies the LTE predicate on the "deleted" field.

func DeletedNEQ

func DeletedNEQ(v time.Time) predicate.Bookmark

DeletedNEQ applies the NEQ predicate on the "deleted" field.

func DeletedNotIn

func DeletedNotIn(vs ...time.Time) predicate.Bookmark

DeletedNotIn applies the NotIn predicate on the "deleted" field.

func DeletedNotNil

func DeletedNotNil() predicate.Bookmark

DeletedNotNil applies the NotNil predicate on the "deleted" field.

func ID

func ID(id uuid.UUID) predicate.Bookmark

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Bookmark

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Bookmark

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Bookmark

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Bookmark

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Bookmark

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Bookmark

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Bookmark

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Bookmark

IDNotIn applies the NotIn predicate on the ID field.

func LastUpdated

func LastUpdated(v time.Time) predicate.Bookmark

LastUpdated applies equality check predicate on the "lastUpdated" field. It's identical to LastUpdatedEQ.

func LastUpdatedEQ

func LastUpdatedEQ(v time.Time) predicate.Bookmark

LastUpdatedEQ applies the EQ predicate on the "lastUpdated" field.

func LastUpdatedGT

func LastUpdatedGT(v time.Time) predicate.Bookmark

LastUpdatedGT applies the GT predicate on the "lastUpdated" field.

func LastUpdatedGTE

func LastUpdatedGTE(v time.Time) predicate.Bookmark

LastUpdatedGTE applies the GTE predicate on the "lastUpdated" field.

func LastUpdatedIn

func LastUpdatedIn(vs ...time.Time) predicate.Bookmark

LastUpdatedIn applies the In predicate on the "lastUpdated" field.

func LastUpdatedLT

func LastUpdatedLT(v time.Time) predicate.Bookmark

LastUpdatedLT applies the LT predicate on the "lastUpdated" field.

func LastUpdatedLTE

func LastUpdatedLTE(v time.Time) predicate.Bookmark

LastUpdatedLTE applies the LTE predicate on the "lastUpdated" field.

func LastUpdatedNEQ

func LastUpdatedNEQ(v time.Time) predicate.Bookmark

LastUpdatedNEQ applies the NEQ predicate on the "lastUpdated" field.

func LastUpdatedNotIn

func LastUpdatedNotIn(vs ...time.Time) predicate.Bookmark

LastUpdatedNotIn applies the NotIn predicate on the "lastUpdated" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Bookmark) predicate.Bookmark

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v string) predicate.Bookmark

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Bookmark

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Bookmark

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Bookmark

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Bookmark

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Bookmark

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Bookmark

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Bookmark

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Bookmark

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Bookmark

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Bookmark

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Bookmark

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Bookmark

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Bookmark

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption added in v0.1.3

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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