postgres

package
v0.0.0-...-f6cc6f7 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSuchRefreshToken        = errors.New("no such refresh token")
	ErrRefreshTokenAlreadyExists = errors.New("refresh token already exists")
)
View Source
var (
	ErrNoSuchStarredPost        = errors.New("no such starred post")
	ErrNoSuchPost               = errors.New("no such post")
	ErrNoSuchUser               = errors.New("no such user")
	ErrStarredPostAlreadyExists = errors.New("starred post already exists")
)
View Source
var (
	ErrUserWithSuchAuthorIDAlreadyExists = errors.New("user with such author id already exists")
	ErrUserWithSuchEmailAlreadyExists    = errors.New("user with such email already exists")
)
View Source
var ErrNoSuchEmailVerificationToken = errors.New("no such email verification token")
View Source
var ErrNoSuchPasswordRecoveryToken = errors.New("no such password recovery token")
View Source
var ErrNoSuchPostTransaction = errors.New("no such post transaction")
View Source
var ErrNoSuchState = errors.New("no such state")

Functions

func NewEmailVerificationTokensQ

func NewEmailVerificationTokensQ(db *pgdb.DB) data.EmailVerificationTokens

func NewOAuth2StatesQ

func NewOAuth2StatesQ(db *pgdb.DB) data.OAuth2States

func NewPasswordRecoveryTokensQ

func NewPasswordRecoveryTokensQ(db *pgdb.DB) data.PasswordRecoveryTokens

func NewPostTransactionsQ

func NewPostTransactionsQ(db *pgdb.DB) data.PostTransactions

func NewPostsQ

func NewPostsQ(db *pgdb.DB) data.Posts

func NewRefreshTokensQ

func NewRefreshTokensQ(db *pgdb.DB) data.RefreshTokens

func NewStarredPostsQ

func NewStarredPostsQ(db *pgdb.DB) data.StarredPosts

func NewUsersQ

func NewUsersQ(db *pgdb.DB) data.Users

Types

This section is empty.

Jump to

Keyboard shortcuts

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