Documentation ¶
Index ¶
- func NilStr(s string) sql.NullString
- type DAO
- type DBInterface
- type DBTX
- type Expense
- type ExpenseInsertParams
- type History
- type HistoryInsertParams
- type LocalUser
- type LocalUserInsertParams
- type Querier
- type Queries
- func (q *Queries) ExpenseInsert(ctx context.Context, arg *ExpenseInsertParams) error
- func (q *Queries) ExpenseListByWallet(ctx context.Context, walletID string) ([]*Expense, error)
- func (q *Queries) ExpenseListByWalletByUser(ctx context.Context, walletID string, userID string) ([]*Expense, error)
- func (q *Queries) HistoryInsert(ctx context.Context, arg *HistoryInsertParams) error
- func (q *Queries) HistoryList(ctx context.Context) ([]*History, error)
- func (q *Queries) LocalUserGetByEmail(ctx context.Context, email string) (*LocalUser, error)
- func (q *Queries) LocalUserGetByID(ctx context.Context, id string) (*LocalUser, error)
- func (q *Queries) LocalUserInsert(ctx context.Context, arg *LocalUserInsertParams) error
- func (q *Queries) LocalUserList(ctx context.Context) ([]*LocalUser, error)
- func (q *Queries) LocalUserSetPass(ctx context.Context, pwdhash string, email string) error
- func (q *Queries) LocalUserUpdate(ctx context.Context, roles string, email string) error
- func (q *Queries) WalletInsert(ctx context.Context, arg *WalletInsertParams) error
- func (q *Queries) WalletUpdateBalance(ctx context.Context, balance float64, iD string) error
- func (q *Queries) WalletsByAdmin(ctx context.Context) ([]*Wallet, error)
- func (q *Queries) WalletsByUser(ctx context.Context, userID string) ([]*Wallet, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Wallet
- type WalletInsertParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NilStr ¶
func NilStr(s string) sql.NullString
Types ¶
type DBInterface ¶
type Expense ¶
type Expense struct { ID string WalletID string Amount float64 Description sql.NullString CreatedAt time.Time }
func (*Expense) GetCreatedAt ¶
func (*Expense) GetDescription ¶
func (*Expense) GetWalletID ¶
func (*Expense) IsOperation ¶
func (e *Expense) IsOperation()
type ExpenseInsertParams ¶
type HistoryInsertParams ¶
type LocalUserInsertParams ¶
type Querier ¶
type Querier interface { ExpenseInsert(ctx context.Context, arg *ExpenseInsertParams) error ExpenseListByWallet(ctx context.Context, walletID string) ([]*Expense, error) ExpenseListByWalletByUser(ctx context.Context, walletID string, userID string) ([]*Expense, error) HistoryInsert(ctx context.Context, arg *HistoryInsertParams) error HistoryList(ctx context.Context) ([]*History, error) LocalUserGetByEmail(ctx context.Context, email string) (*LocalUser, error) LocalUserGetByID(ctx context.Context, id string) (*LocalUser, error) LocalUserInsert(ctx context.Context, arg *LocalUserInsertParams) error LocalUserList(ctx context.Context) ([]*LocalUser, error) LocalUserSetPass(ctx context.Context, pwdhash string, email string) error LocalUserUpdate(ctx context.Context, roles string, email string) error WalletInsert(ctx context.Context, arg *WalletInsertParams) error WalletUpdateBalance(ctx context.Context, balance float64, iD string) error WalletsByAdmin(ctx context.Context) ([]*Wallet, error) WalletsByUser(ctx context.Context, userID string) ([]*Wallet, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ExpenseInsert ¶
func (q *Queries) ExpenseInsert(ctx context.Context, arg *ExpenseInsertParams) error
func (*Queries) ExpenseListByWallet ¶
func (*Queries) ExpenseListByWalletByUser ¶
func (*Queries) HistoryInsert ¶
func (q *Queries) HistoryInsert(ctx context.Context, arg *HistoryInsertParams) error
func (*Queries) HistoryList ¶
func (*Queries) LocalUserGetByEmail ¶
func (*Queries) LocalUserGetByID ¶
func (*Queries) LocalUserInsert ¶
func (q *Queries) LocalUserInsert(ctx context.Context, arg *LocalUserInsertParams) error
func (*Queries) LocalUserList ¶
func (*Queries) LocalUserSetPass ¶
func (*Queries) LocalUserUpdate ¶
func (*Queries) WalletInsert ¶
func (q *Queries) WalletInsert(ctx context.Context, arg *WalletInsertParams) error
func (*Queries) WalletUpdateBalance ¶
func (*Queries) WalletsByAdmin ¶
func (*Queries) WalletsByUser ¶
Click to show internal directories.
Click to hide internal directories.