postgres

package
v0.0.0-...-240a861 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase() (db.UsersDatabase, error)

Types

type Database

type Database struct {
	DB *sql.DB
}

func (*Database) GetAllUsers

func (d *Database) GetAllUsers() ([]*models.User, error)

func (*Database) GetUserByEmail

func (d *Database) GetUserByEmail(email string) (*models.User, error)

func (*Database) InsertUser

func (d *Database) InsertUser(user *models.User) error

func (*Database) UpdateUserQRSecret

func (d *Database) UpdateUserQRSecret(email, secret string) error

Jump to

Keyboard shortcuts

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