post

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the post type in the database.
	Label = "post"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOwner holds the string denoting the owner field in the database.
	FieldOwner = "owner"
	// FieldIsPrivate holds the string denoting the is_private field in the database.
	FieldIsPrivate = "is_private"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldFollower holds the string denoting the follower field in the database.
	FieldFollower = "follower"
	// FieldFollowing holds the string denoting the following field in the database.
	FieldFollowing = "following"
	// FieldPhotoDir holds the string denoting the photo_dir field in the database.
	FieldPhotoDir = "photo_dir"
	// Table holds the table name of the post in the database.
	Table = "posts"
)

Variables

View Source
var (
	// OwnerValidator is a validator for the "owner" field. It is called by the builders before save.
	OwnerValidator func(string) error
	// DefaultIsPrivate holds the default value on creation for the "is_private" field.
	DefaultIsPrivate bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
	// DefaultFollower holds the default value on creation for the "follower" field.
	DefaultFollower int64
	// DefaultFollowing holds the default value on creation for the "following" field.
	DefaultFollowing int64
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for post fields.

Functions

func And

func And(predicates ...predicate.Post) predicate.Post

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Post

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Post

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Post

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Post

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Post

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Post

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Post

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Post

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Post

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Follower

func Follower(v int64) predicate.Post

Follower applies equality check predicate on the "follower" field. It's identical to FollowerEQ.

func FollowerEQ

func FollowerEQ(v int64) predicate.Post

FollowerEQ applies the EQ predicate on the "follower" field.

func FollowerGT

func FollowerGT(v int64) predicate.Post

FollowerGT applies the GT predicate on the "follower" field.

func FollowerGTE

func FollowerGTE(v int64) predicate.Post

FollowerGTE applies the GTE predicate on the "follower" field.

func FollowerIn

func FollowerIn(vs ...int64) predicate.Post

FollowerIn applies the In predicate on the "follower" field.

func FollowerLT

func FollowerLT(v int64) predicate.Post

FollowerLT applies the LT predicate on the "follower" field.

func FollowerLTE

func FollowerLTE(v int64) predicate.Post

FollowerLTE applies the LTE predicate on the "follower" field.

func FollowerNEQ

func FollowerNEQ(v int64) predicate.Post

FollowerNEQ applies the NEQ predicate on the "follower" field.

func FollowerNotIn

func FollowerNotIn(vs ...int64) predicate.Post

FollowerNotIn applies the NotIn predicate on the "follower" field.

func Following

func Following(v int64) predicate.Post

Following applies equality check predicate on the "following" field. It's identical to FollowingEQ.

func FollowingEQ

func FollowingEQ(v int64) predicate.Post

FollowingEQ applies the EQ predicate on the "following" field.

func FollowingGT

func FollowingGT(v int64) predicate.Post

FollowingGT applies the GT predicate on the "following" field.

func FollowingGTE

func FollowingGTE(v int64) predicate.Post

FollowingGTE applies the GTE predicate on the "following" field.

func FollowingIn

func FollowingIn(vs ...int64) predicate.Post

FollowingIn applies the In predicate on the "following" field.

func FollowingLT

func FollowingLT(v int64) predicate.Post

FollowingLT applies the LT predicate on the "following" field.

func FollowingLTE

func FollowingLTE(v int64) predicate.Post

FollowingLTE applies the LTE predicate on the "following" field.

func FollowingNEQ

func FollowingNEQ(v int64) predicate.Post

FollowingNEQ applies the NEQ predicate on the "following" field.

func FollowingNotIn

func FollowingNotIn(vs ...int64) predicate.Post

FollowingNotIn applies the NotIn predicate on the "following" field.

func ID

func ID(id uuid.UUID) predicate.Post

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Post

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Post

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Post

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Post

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Post

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Post

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsPrivate

func IsPrivate(v bool) predicate.Post

IsPrivate applies equality check predicate on the "is_private" field. It's identical to IsPrivateEQ.

func IsPrivateEQ

func IsPrivateEQ(v bool) predicate.Post

IsPrivateEQ applies the EQ predicate on the "is_private" field.

func IsPrivateNEQ

func IsPrivateNEQ(v bool) predicate.Post

IsPrivateNEQ applies the NEQ predicate on the "is_private" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Post) predicate.Post

Or groups predicates with the OR operator between them.

func Owner

func Owner(v string) predicate.Post

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains

func OwnerContains(v string) predicate.Post

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.Post

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ

func OwnerEQ(v string) predicate.Post

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.Post

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT

func OwnerGT(v string) predicate.Post

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE

func OwnerGTE(v string) predicate.Post

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.Post

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.Post

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...string) predicate.Post

OwnerIn applies the In predicate on the "owner" field.

func OwnerLT

func OwnerLT(v string) predicate.Post

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE

func OwnerLTE(v string) predicate.Post

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v string) predicate.Post

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...string) predicate.Post

OwnerNotIn applies the NotIn predicate on the "owner" field.

func PhotoDir

func PhotoDir(v string) predicate.Post

PhotoDir applies equality check predicate on the "photo_dir" field. It's identical to PhotoDirEQ.

func PhotoDirContains

func PhotoDirContains(v string) predicate.Post

PhotoDirContains applies the Contains predicate on the "photo_dir" field.

func PhotoDirContainsFold

func PhotoDirContainsFold(v string) predicate.Post

PhotoDirContainsFold applies the ContainsFold predicate on the "photo_dir" field.

func PhotoDirEQ

func PhotoDirEQ(v string) predicate.Post

PhotoDirEQ applies the EQ predicate on the "photo_dir" field.

func PhotoDirEqualFold

func PhotoDirEqualFold(v string) predicate.Post

PhotoDirEqualFold applies the EqualFold predicate on the "photo_dir" field.

func PhotoDirGT

func PhotoDirGT(v string) predicate.Post

PhotoDirGT applies the GT predicate on the "photo_dir" field.

func PhotoDirGTE

func PhotoDirGTE(v string) predicate.Post

PhotoDirGTE applies the GTE predicate on the "photo_dir" field.

func PhotoDirHasPrefix

func PhotoDirHasPrefix(v string) predicate.Post

PhotoDirHasPrefix applies the HasPrefix predicate on the "photo_dir" field.

func PhotoDirHasSuffix

func PhotoDirHasSuffix(v string) predicate.Post

PhotoDirHasSuffix applies the HasSuffix predicate on the "photo_dir" field.

func PhotoDirIn

func PhotoDirIn(vs ...string) predicate.Post

PhotoDirIn applies the In predicate on the "photo_dir" field.

func PhotoDirIsNil

func PhotoDirIsNil() predicate.Post

PhotoDirIsNil applies the IsNil predicate on the "photo_dir" field.

func PhotoDirLT

func PhotoDirLT(v string) predicate.Post

PhotoDirLT applies the LT predicate on the "photo_dir" field.

func PhotoDirLTE

func PhotoDirLTE(v string) predicate.Post

PhotoDirLTE applies the LTE predicate on the "photo_dir" field.

func PhotoDirNEQ

func PhotoDirNEQ(v string) predicate.Post

PhotoDirNEQ applies the NEQ predicate on the "photo_dir" field.

func PhotoDirNotIn

func PhotoDirNotIn(vs ...string) predicate.Post

PhotoDirNotIn applies the NotIn predicate on the "photo_dir" field.

func PhotoDirNotNil

func PhotoDirNotNil() predicate.Post

PhotoDirNotNil applies the NotNil predicate on the "photo_dir" 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