database

package
v0.0.0-...-2655a93 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountDB

type AccountDB struct {
	DB *sql.DB
}

func NewAccountDB

func NewAccountDB(db *sql.DB) *AccountDB

func (*AccountDB) FindByID

func (a *AccountDB) FindByID(id string) (*entity.Account, error)

func (*AccountDB) Save

func (a *AccountDB) Save(account *entity.Account) error

type ClientDB

type ClientDB struct {
	DB *sql.DB
}

func NewClientDB

func NewClientDB(db *sql.DB) *ClientDB

func (*ClientDB) Get

func (c *ClientDB) Get(id string) (*entity.Client, error)

func (*ClientDB) Save

func (c *ClientDB) Save(client *entity.Client) error

type TransactionDB

type TransactionDB struct {
	DB *sql.DB
}

func NewTransactionDB

func NewTransactionDB(db *sql.DB) *TransactionDB

func (*TransactionDB) Create

func (t *TransactionDB) Create(transaction *entity.Transaction) error

Jump to

Keyboard shortcuts

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