postgres

package
v0.0.0-...-247c3a5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewAuthStorage

func NewAuthStorage(db *sqlx.DB) *Storage

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, method authPkg.Method, socialID authPkg.SocialID) (*authPkg.Auth, error)

func (*Storage) StartCreateTransaction

func (s *Storage) StartCreateTransaction(ctx context.Context) (*sqlx.Tx, error)

func (*Storage) UpsertByTransaction

func (s *Storage) UpsertByTransaction(ctx context.Context, tx *sqlx.Tx, a *authPkg.Auth) error

Jump to

Keyboard shortcuts

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