for_sqlite

package
v0.0.0-...-e9e4af0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package for_sqlite stores types in fin package in a sqlite database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadOnlyStore

type ReadOnlyStore struct {
	findb.NoPermissionStore
	// contains filtered or unexported fields
}

func ReadOnlyWrapper

func ReadOnlyWrapper(store Store) ReadOnlyStore

func (ReadOnlyStore) AccountById

func (s ReadOnlyStore) AccountById(
	t db.Transaction, acctId int64, account *fin.Account) error

func (ReadOnlyStore) Accounts

func (s ReadOnlyStore) Accounts(
	t db.Transaction, consumer consume2.Consumer[fin.Account]) error

func (ReadOnlyStore) ActiveAccounts

func (s ReadOnlyStore) ActiveAccounts(t db.Transaction) (
	accounts []*fin.Account, err error)

func (ReadOnlyStore) AllocationsByYear

func (s ReadOnlyStore) AllocationsByYear(t db.Transaction, year int64) (
	map[int64]int64, error)

func (ReadOnlyStore) Entries

func (s ReadOnlyStore) Entries(
	t db.Transaction,
	options *findb.EntryListOptions,
	consumer consume2.Consumer[fin.Entry]) error

func (ReadOnlyStore) EntryById

func (s ReadOnlyStore) EntryById(
	t db.Transaction, id int64, entry *fin.Entry) error

func (ReadOnlyStore) RecurringEntries

func (s ReadOnlyStore) RecurringEntries(
	t db.Transaction, consumer consume2.Consumer[fin.RecurringEntry]) error

func (ReadOnlyStore) RecurringEntryById

func (s ReadOnlyStore) RecurringEntryById(
	t db.Transaction, id int64, entry *fin.RecurringEntry) error

func (ReadOnlyStore) UserById

func (s ReadOnlyStore) UserById(
	t db.Transaction, id int64, user *fin.User) error

func (ReadOnlyStore) UserByName

func (s ReadOnlyStore) UserByName(
	t db.Transaction, name string, user *fin.User) error

func (ReadOnlyStore) Users

func (s ReadOnlyStore) Users(
	t db.Transaction, consumer consume2.Consumer[fin.User]) error

type Store

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

func ConnNew

func ConnNew(tx *sql.Tx) Store

func New

func New(db *sqlite3_db.Db) Store

func (Store) AccountById

func (s Store) AccountById(
	t db.Transaction, acctId int64, account *fin.Account) error

func (Store) Accounts

func (s Store) Accounts(
	t db.Transaction, consumer consume2.Consumer[fin.Account]) error

func (Store) ActiveAccounts

func (s Store) ActiveAccounts(t db.Transaction) (
	accounts []*fin.Account, err error)

func (Store) AddAccount

func (s Store) AddAccount(t db.Transaction, account *fin.Account) error

func (Store) AddAllocation

func (s Store) AddAllocation(
	t db.Transaction, year, expenseId, amount int64) error

func (Store) AddRecurringEntry

func (s Store) AddRecurringEntry(
	t db.Transaction, entry *fin.RecurringEntry) error

func (Store) AddUser

func (s Store) AddUser(t db.Transaction, user *fin.User) error

func (Store) AllocationsByYear

func (s Store) AllocationsByYear(t db.Transaction, year int64) (
	result map[int64]int64, err error)

func (Store) DoEntryChanges

func (s Store) DoEntryChanges(
	t db.Transaction, changes *findb.EntryChanges) error

func (Store) Entries

func (s Store) Entries(
	t db.Transaction,
	options *findb.EntryListOptions,
	consumer consume2.Consumer[fin.Entry]) error

func (Store) EntryById

func (s Store) EntryById(
	t db.Transaction, id int64, entry *fin.Entry) error

func (Store) RecurringEntries

func (s Store) RecurringEntries(
	t db.Transaction, consumer consume2.Consumer[fin.RecurringEntry]) error

func (Store) RecurringEntryById

func (s Store) RecurringEntryById(
	t db.Transaction, id int64, entry *fin.RecurringEntry) error

func (Store) RemoveAccount

func (s Store) RemoveAccount(
	t db.Transaction, id int64) error

func (Store) RemoveAllocation

func (s Store) RemoveAllocation(
	t db.Transaction, year, expenseId int64) error

func (Store) RemoveRecurringEntryById

func (s Store) RemoveRecurringEntryById(t db.Transaction, id int64) error

func (Store) RemoveUserByName

func (s Store) RemoveUserByName(t db.Transaction, name string) error

func (Store) UpdateAccount

func (s Store) UpdateAccount(
	t db.Transaction, account *fin.Account) error

func (Store) UpdateAccountImportSD

func (s Store) UpdateAccountImportSD(
	t db.Transaction, acctId int64, date time.Time) error

func (Store) UpdateRecurringEntry

func (s Store) UpdateRecurringEntry(
	t db.Transaction, entry *fin.RecurringEntry) error

func (Store) UpdateUser

func (s Store) UpdateUser(t db.Transaction, user *fin.User) error

func (Store) UserById

func (s Store) UserById(
	t db.Transaction, id int64, user *fin.User) error

func (Store) UserByName

func (s Store) UserByName(
	t db.Transaction, name string, user *fin.User) error

func (Store) Users

func (s Store) Users(
	t db.Transaction, consumer consume2.Consumer[fin.User]) error

Jump to

Keyboard shortcuts

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