postgres

package
v0.0.0-...-c2544de Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(dsn string) (repos.DB, error)

func ConstructDSN

func ConstructDSN(dbName, host string, port int, user, password string) string

func NewStore

func NewStore(pDB *pgxpool.Pool) (queryStore, error)

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func (*DB) Close

func (d *DB) Close() error

func (*DB) NewClientRepository

func (d *DB) NewClientRepository() repos.ClientRepository

func (*DB) NewOAuthRepository

func (d *DB) NewOAuthRepository() repos.OAuthRepository

func (*DB) NewSessionRepository

func (db *DB) NewSessionRepository() repos.SessionRepository

func (*DB) NewSystemRepository

func (d *DB) NewSystemRepository() repos.SystemRepository

func (DB) NewTokenRepository

func (d DB) NewTokenRepository() repos.TokenRepository

func (*DB) NewUserRepository

func (db *DB) NewUserRepository() repos.UserRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳