sqlite

package
v0.0.0-...-c196421 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(dsn string) (*sql.DB, error)

Types

type AuthCodeStore

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

func NewAuthCodeStore

func NewAuthCodeStore(db *sql.DB) (*AuthCodeStore, error)

func (*AuthCodeStore) GetByCode

func (s *AuthCodeStore) GetByCode(ctx context.Context, code string) (store.AuthCode, error)

func (*AuthCodeStore) Insert

func (s *AuthCodeStore) Insert(ctx context.Context, code store.AuthCode) (int, error)

type ClientStore

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

func NewClientStore

func NewClientStore(db *sql.DB) (*ClientStore, error)

func (*ClientStore) Create

func (s *ClientStore) Create(ctx context.Context, c store.Client) (int, error)

func (*ClientStore) GetByClientID

func (s *ClientStore) GetByClientID(ctx context.Context, clientID string) (store.Client, error)

type UserStore

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

func NewUserStore

func NewUserStore(db *sql.DB) (*UserStore, error)

func (*UserStore) Create

func (s *UserStore) Create(ctx context.Context, u store.User) (int, error)

func (*UserStore) GetByEmail

func (s *UserStore) GetByEmail(ctx context.Context, email string) (store.User, error)

func (*UserStore) GetByID

func (s *UserStore) GetByID(ctx context.Context, id int) (store.User, error)

Jump to

Keyboard shortcuts

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