for_sqlite

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: BSD-3-Clause Imports: 14 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 goconsume.Consumer) error

func (ReadOnlyStore) ActiveAccounts

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

func (ReadOnlyStore) Entries

func (s ReadOnlyStore) Entries(
	t db.Transaction, options *findb.EntryListOptions,
	consumer goconsume.Consumer) error

func (ReadOnlyStore) EntriesByAccountId

func (s ReadOnlyStore) EntriesByAccountId(
	t db.Transaction, acctId int64, account *fin.Account,
	consumer goconsume.Consumer) 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 goconsume.Consumer) error

func (ReadOnlyStore) RecurringEntryById

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

func (ReadOnlyStore) UnreconciledEntries

func (s ReadOnlyStore) UnreconciledEntries(
	t db.Transaction, acctId int64,
	account *fin.Account, consumer goconsume.Consumer) 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 goconsume.Consumer) error

type Store

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

func ConnNew

func ConnNew(conn *sqlite.Conn) Store

func New

func New(db *sqlite_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 goconsume.Consumer) 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) 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) 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 goconsume.Consumer) error

func (Store) EntriesByAccountId

func (s Store) EntriesByAccountId(
	t db.Transaction, acctId int64, account *fin.Account,
	consumer goconsume.Consumer) 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 goconsume.Consumer) 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) 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) UnreconciledEntries

func (s Store) UnreconciledEntries(
	t db.Transaction, acctId int64,
	account *fin.Account, consumer goconsume.Consumer) 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 goconsume.Consumer) error

Jump to

Keyboard shortcuts

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