Documentation
¶
Index ¶
- type AppState
- type Category
- type ClearLedgerOnExpensesParams
- type CreateCategoryParams
- type CreateExpenseParams
- type CreateLedgerParams
- type CreateOwnerParams
- type CreateSessionParams
- type DBTX
- type DailySpendingBetweenParams
- type DailySpendingBetweenRow
- type DailySpendingForLedgerRow
- type Expense
- type GetSessionParams
- type InsertLLMCallLogParams
- type Ledger
- type ListDeletedExpensesParams
- type ListDeletedExpensesRow
- type ListExpensesByLedgerRow
- type ListRecentExpensesRow
- type LlmCallLog
- type LlmConfig
- type Owner
- type Querier
- type Queries
- func (q *Queries) CategoryExpenseCount(ctx context.Context, categoryID sql.NullInt64) (int64, error)
- func (q *Queries) ClearLedgerOnExpenses(ctx context.Context, arg ClearLedgerOnExpensesParams) error
- func (q *Queries) ClearTelegramChatID(ctx context.Context, updatedAt int64) error
- func (q *Queries) ClearTelegramPairingCode(ctx context.Context, updatedAt int64) error
- func (q *Queries) CountDeletedExpenses(ctx context.Context) (int64, error)
- func (q *Queries) CreateCategory(ctx context.Context, arg CreateCategoryParams) (int64, error)
- func (q *Queries) CreateExpense(ctx context.Context, arg CreateExpenseParams) (int64, error)
- func (q *Queries) CreateLedger(ctx context.Context, arg CreateLedgerParams) (int64, error)
- func (q *Queries) CreateOwner(ctx context.Context, arg CreateOwnerParams) error
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
- func (q *Queries) DailySpendingBetween(ctx context.Context, arg DailySpendingBetweenParams) ([]DailySpendingBetweenRow, error)
- func (q *Queries) DailySpendingForLedger(ctx context.Context, ledgerID sql.NullInt64) ([]DailySpendingForLedgerRow, error)
- func (q *Queries) DeleteAllSessions(ctx context.Context) error
- func (q *Queries) DeleteExpiredSessions(ctx context.Context, expiresAt int64) (int64, error)
- func (q *Queries) DeleteLLMConfig(ctx context.Context) error
- func (q *Queries) DeleteLedger(ctx context.Context, id int64) error
- func (q *Queries) DeleteOldLLMCallLog(ctx context.Context, createdAt int64) (int64, error)
- func (q *Queries) DeleteSession(ctx context.Context, id string) error
- func (q *Queries) DeleteTelegramConfig(ctx context.Context) error
- func (q *Queries) EmptyTrash(ctx context.Context) (int64, error)
- func (q *Queries) GetAppState(ctx context.Context, key string) (string, error)
- func (q *Queries) GetCategory(ctx context.Context, id int64) (Category, error)
- func (q *Queries) GetDeletedExpense(ctx context.Context, id int64) (Expense, error)
- func (q *Queries) GetExpense(ctx context.Context, id int64) (Expense, error)
- func (q *Queries) GetLLMConfig(ctx context.Context) (LlmConfig, error)
- func (q *Queries) GetLedger(ctx context.Context, id int64) (Ledger, error)
- func (q *Queries) GetOwner(ctx context.Context) (Owner, error)
- func (q *Queries) GetSession(ctx context.Context, arg GetSessionParams) (Session, error)
- func (q *Queries) GetTelegramConfig(ctx context.Context) (TelegramConfig, error)
- func (q *Queries) HardDeleteExpense(ctx context.Context, id int64) error
- func (q *Queries) InsertLLMCallLog(ctx context.Context, arg InsertLLMCallLogParams) error
- func (q *Queries) LedgerExpenseCount(ctx context.Context, ledgerID sql.NullInt64) (int64, error)
- func (q *Queries) LedgerTotalSpent(ctx context.Context, ledgerID sql.NullInt64) (int64, error)
- func (q *Queries) ListActiveCategories(ctx context.Context) ([]Category, error)
- func (q *Queries) ListActiveLedgers(ctx context.Context) ([]Ledger, error)
- func (q *Queries) ListAllCategories(ctx context.Context) ([]Category, error)
- func (q *Queries) ListAllLedgers(ctx context.Context) ([]Ledger, error)
- func (q *Queries) ListArchivedLedgers(ctx context.Context) ([]Ledger, error)
- func (q *Queries) ListDeletedExpenses(ctx context.Context, arg ListDeletedExpensesParams) ([]ListDeletedExpensesRow, error)
- func (q *Queries) ListExpensesByLedger(ctx context.Context, ledgerID sql.NullInt64) ([]ListExpensesByLedgerRow, error)
- func (q *Queries) ListRecentExpenses(ctx context.Context, limit int64) ([]ListRecentExpensesRow, error)
- func (q *Queries) PurgeOldDeletedExpenses(ctx context.Context, deletedAt sql.NullInt64) (int64, error)
- func (q *Queries) RecentLLMCallLog(ctx context.Context, limit int64) ([]LlmCallLog, error)
- func (q *Queries) RestoreExpense(ctx context.Context, arg RestoreExpenseParams) error
- func (q *Queries) SetAppState(ctx context.Context, arg SetAppStateParams) error
- func (q *Queries) SetCategoryArchived(ctx context.Context, arg SetCategoryArchivedParams) error
- func (q *Queries) SetLLMEnabled(ctx context.Context, arg SetLLMEnabledParams) error
- func (q *Queries) SetLedgerArchived(ctx context.Context, arg SetLedgerArchivedParams) error
- func (q *Queries) SetTelegramActiveLedger(ctx context.Context, arg SetTelegramActiveLedgerParams) error
- func (q *Queries) SetTelegramChatID(ctx context.Context, arg SetTelegramChatIDParams) error
- func (q *Queries) SetTelegramEnabled(ctx context.Context, arg SetTelegramEnabledParams) error
- func (q *Queries) SetTelegramLastUpdateID(ctx context.Context, arg SetTelegramLastUpdateIDParams) error
- func (q *Queries) SetTelegramPairingCode(ctx context.Context, arg SetTelegramPairingCodeParams) error
- func (q *Queries) SoftDeleteExpense(ctx context.Context, arg SoftDeleteExpenseParams) error
- func (q *Queries) SpendingByCategoryBetween(ctx context.Context, arg SpendingByCategoryBetweenParams) ([]SpendingByCategoryBetweenRow, error)
- func (q *Queries) SpendingByCategoryForLedger(ctx context.Context, ledgerID sql.NullInt64) ([]SpendingByCategoryForLedgerRow, error)
- func (q *Queries) SpendingByLedgerBetween(ctx context.Context, arg SpendingByLedgerBetweenParams) ([]SpendingByLedgerBetweenRow, error)
- func (q *Queries) SummaryBetween(ctx context.Context, arg SummaryBetweenParams) (SummaryBetweenRow, error)
- func (q *Queries) TopExpensesBetween(ctx context.Context, arg TopExpensesBetweenParams) ([]TopExpensesBetweenRow, error)
- func (q *Queries) TotalSpentBetween(ctx context.Context, arg TotalSpentBetweenParams) (int64, error)
- func (q *Queries) UpdateCategory(ctx context.Context, arg UpdateCategoryParams) error
- func (q *Queries) UpdateExpense(ctx context.Context, arg UpdateExpenseParams) error
- func (q *Queries) UpdateLLMTestResult(ctx context.Context, arg UpdateLLMTestResultParams) error
- func (q *Queries) UpdateLedger(ctx context.Context, arg UpdateLedgerParams) error
- func (q *Queries) UpdateOwnerDashboardURL(ctx context.Context, arg UpdateOwnerDashboardURLParams) error
- func (q *Queries) UpdateOwnerPassword(ctx context.Context, arg UpdateOwnerPasswordParams) error
- func (q *Queries) UpdateOwnerPreferences(ctx context.Context, arg UpdateOwnerPreferencesParams) error
- func (q *Queries) UpdateOwnerProfile(ctx context.Context, arg UpdateOwnerProfileParams) error
- func (q *Queries) UpdateOwnerTrashRetention(ctx context.Context, arg UpdateOwnerTrashRetentionParams) error
- func (q *Queries) UpsertLLMConfig(ctx context.Context, arg UpsertLLMConfigParams) error
- func (q *Queries) UpsertTelegramBot(ctx context.Context, arg UpsertTelegramBotParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RestoreExpenseParams
- type Session
- type SetAppStateParams
- type SetCategoryArchivedParams
- type SetLLMEnabledParams
- type SetLedgerArchivedParams
- type SetTelegramActiveLedgerParams
- type SetTelegramChatIDParams
- type SetTelegramEnabledParams
- type SetTelegramLastUpdateIDParams
- type SetTelegramPairingCodeParams
- type SoftDeleteExpenseParams
- type SpendingByCategoryBetweenParams
- type SpendingByCategoryBetweenRow
- type SpendingByCategoryForLedgerRow
- type SpendingByLedgerBetweenParams
- type SpendingByLedgerBetweenRow
- type SummaryBetweenParams
- type SummaryBetweenRow
- type TelegramConfig
- type TopExpensesBetweenParams
- type TopExpensesBetweenRow
- type TotalSpentBetweenParams
- type UpdateCategoryParams
- type UpdateExpenseParams
- type UpdateLLMTestResultParams
- type UpdateLedgerParams
- type UpdateOwnerDashboardURLParams
- type UpdateOwnerPasswordParams
- type UpdateOwnerPreferencesParams
- type UpdateOwnerProfileParams
- type UpdateOwnerTrashRetentionParams
- type UpsertLLMConfigParams
- type UpsertTelegramBotParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCategoryParams ¶
type CreateCategoryParams struct {
Name string
Color string
Icon sql.NullString
CreatedAt int64
}
type CreateExpenseParams ¶
type CreateLedgerParams ¶
type CreateOwnerParams ¶
type CreateSessionParams ¶
type CreateSessionParams struct {
ID string
CreatedAt int64
ExpiresAt int64
UserAgent sql.NullString
IpAddress sql.NullString
}
type DailySpendingBetweenRow ¶
type GetSessionParams ¶
type InsertLLMCallLogParams ¶
type ListDeletedExpensesRow ¶
type ListDeletedExpensesRow struct {
ID int64
Amount int64
Description string
Notes sql.NullString
SpentAt int64
CategoryID sql.NullInt64
LedgerID sql.NullInt64
CreatedAt int64
UpdatedAt int64
DeletedAt sql.NullInt64
CategoryName sql.NullString
CategoryColor sql.NullString
LedgerName sql.NullString
}
type ListExpensesByLedgerRow ¶
type ListRecentExpensesRow ¶
type ListRecentExpensesRow struct {
ID int64
Amount int64
Description string
Notes sql.NullString
SpentAt int64
CategoryID sql.NullInt64
LedgerID sql.NullInt64
CreatedAt int64
UpdatedAt int64
CategoryName sql.NullString
CategoryColor sql.NullString
LedgerName sql.NullString
}
type LlmCallLog ¶
type Querier ¶
type Querier interface {
// Counts active (non-trashed) expenses only.
CategoryExpenseCount(ctx context.Context, categoryID sql.NullInt64) (int64, error)
ClearLedgerOnExpenses(ctx context.Context, arg ClearLedgerOnExpensesParams) error
// Disconnecting a chat keeps the bot polling so the user can re-pair from a
// different Telegram account. The "Disable" button (SetTelegramEnabled) is
// the only path that flips enabled to 0.
ClearTelegramChatID(ctx context.Context, updatedAt int64) error
ClearTelegramPairingCode(ctx context.Context, updatedAt int64) error
CountDeletedExpenses(ctx context.Context) (int64, error)
CreateCategory(ctx context.Context, arg CreateCategoryParams) (int64, error)
CreateExpense(ctx context.Context, arg CreateExpenseParams) (int64, error)
CreateLedger(ctx context.Context, arg CreateLedgerParams) (int64, error)
CreateOwner(ctx context.Context, arg CreateOwnerParams) error
CreateSession(ctx context.Context, arg CreateSessionParams) error
DailySpendingBetween(ctx context.Context, arg DailySpendingBetweenParams) ([]DailySpendingBetweenRow, error)
DailySpendingForLedger(ctx context.Context, ledgerID sql.NullInt64) ([]DailySpendingForLedgerRow, error)
DeleteAllSessions(ctx context.Context) error
DeleteExpiredSessions(ctx context.Context, expiresAt int64) (int64, error)
DeleteLLMConfig(ctx context.Context) error
DeleteLedger(ctx context.Context, id int64) error
DeleteOldLLMCallLog(ctx context.Context, createdAt int64) (int64, error)
DeleteSession(ctx context.Context, id string) error
DeleteTelegramConfig(ctx context.Context) error
// Hard-deletes every currently soft-deleted row.
EmptyTrash(ctx context.Context) (int64, error)
GetAppState(ctx context.Context, key string) (string, error)
GetCategory(ctx context.Context, id int64) (Category, error)
// Trash-only fetch: returns the row regardless of state, used by Restore /
// HardDelete handlers that need to read a soft-deleted row.
GetDeletedExpense(ctx context.Context, id int64) (Expense, error)
// Returns only active rows. Trash UI uses GetDeletedExpense for the trash side.
GetExpense(ctx context.Context, id int64) (Expense, error)
GetLLMConfig(ctx context.Context) (LlmConfig, error)
GetLedger(ctx context.Context, id int64) (Ledger, error)
// Column order matches the table (post-migration: trash_retention_days
// was ALTER-appended last) so sqlc emits the canonical Owner struct
// rather than a one-off GetOwnerRow.
GetOwner(ctx context.Context) (Owner, error)
GetSession(ctx context.Context, arg GetSessionParams) (Session, error)
GetTelegramConfig(ctx context.Context) (TelegramConfig, error)
// Permanent delete. Used by the trash UI's "Delete forever" and by the
// maintenance sweeper. Restricted to already-trashed rows so a stray call
// can't bypass the trash.
HardDeleteExpense(ctx context.Context, id int64) error
InsertLLMCallLog(ctx context.Context, arg InsertLLMCallLogParams) error
// Counts active (non-trashed) expenses only.
LedgerExpenseCount(ctx context.Context, ledgerID sql.NullInt64) (int64, error)
// Sums active (non-trashed) expenses only.
LedgerTotalSpent(ctx context.Context, ledgerID sql.NullInt64) (int64, error)
ListActiveCategories(ctx context.Context) ([]Category, error)
ListActiveLedgers(ctx context.Context) ([]Ledger, error)
ListAllCategories(ctx context.Context) ([]Category, error)
ListAllLedgers(ctx context.Context) ([]Ledger, error)
ListArchivedLedgers(ctx context.Context) ([]Ledger, error)
// Trash listing, newest-deleted first.
ListDeletedExpenses(ctx context.Context, arg ListDeletedExpensesParams) ([]ListDeletedExpensesRow, error)
ListExpensesByLedger(ctx context.Context, ledgerID sql.NullInt64) ([]ListExpensesByLedgerRow, error)
ListRecentExpenses(ctx context.Context, limit int64) ([]ListRecentExpensesRow, error)
// Hard-deletes any soft-deleted rows older than the cutoff. Backs the
// trash sweeper.
PurgeOldDeletedExpenses(ctx context.Context, deletedAt sql.NullInt64) (int64, error)
RecentLLMCallLog(ctx context.Context, limit int64) ([]LlmCallLog, error)
// Brings a trashed row back. No-op for active rows.
RestoreExpense(ctx context.Context, arg RestoreExpenseParams) error
SetAppState(ctx context.Context, arg SetAppStateParams) error
SetCategoryArchived(ctx context.Context, arg SetCategoryArchivedParams) error
SetLLMEnabled(ctx context.Context, arg SetLLMEnabledParams) error
SetLedgerArchived(ctx context.Context, arg SetLedgerArchivedParams) error
SetTelegramActiveLedger(ctx context.Context, arg SetTelegramActiveLedgerParams) error
SetTelegramChatID(ctx context.Context, arg SetTelegramChatIDParams) error
SetTelegramEnabled(ctx context.Context, arg SetTelegramEnabledParams) error
SetTelegramLastUpdateID(ctx context.Context, arg SetTelegramLastUpdateIDParams) error
SetTelegramPairingCode(ctx context.Context, arg SetTelegramPairingCodeParams) error
// Moves the row to trash. Idempotent: deleting an already-deleted row is a no-op.
SoftDeleteExpense(ctx context.Context, arg SoftDeleteExpenseParams) error
SpendingByCategoryBetween(ctx context.Context, arg SpendingByCategoryBetweenParams) ([]SpendingByCategoryBetweenRow, error)
SpendingByCategoryForLedger(ctx context.Context, ledgerID sql.NullInt64) ([]SpendingByCategoryForLedgerRow, error)
SpendingByLedgerBetween(ctx context.Context, arg SpendingByLedgerBetweenParams) ([]SpendingByLedgerBetweenRow, error)
SummaryBetween(ctx context.Context, arg SummaryBetweenParams) (SummaryBetweenRow, error)
TopExpensesBetween(ctx context.Context, arg TopExpensesBetweenParams) ([]TopExpensesBetweenRow, error)
TotalSpentBetween(ctx context.Context, arg TotalSpentBetweenParams) (int64, error)
UpdateCategory(ctx context.Context, arg UpdateCategoryParams) error
UpdateExpense(ctx context.Context, arg UpdateExpenseParams) error
UpdateLLMTestResult(ctx context.Context, arg UpdateLLMTestResultParams) error
UpdateLedger(ctx context.Context, arg UpdateLedgerParams) error
UpdateOwnerPassword(ctx context.Context, arg UpdateOwnerPasswordParams) error
UpdateOwnerPreferences(ctx context.Context, arg UpdateOwnerPreferencesParams) error
UpdateOwnerProfile(ctx context.Context, arg UpdateOwnerProfileParams) error
UpdateOwnerTrashRetention(ctx context.Context, arg UpdateOwnerTrashRetentionParams) error
UpsertLLMConfig(ctx context.Context, arg UpsertLLMConfigParams) error
// Saving a bot token enables polling immediately so the bot can RECEIVE the
// /start <pairing_code> message that completes the pairing. Without this,
// the supervisor would never start the bot and pairing could never finish.
UpsertTelegramBot(ctx context.Context, arg UpsertTelegramBotParams) error
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CategoryExpenseCount ¶
func (q *Queries) CategoryExpenseCount(ctx context.Context, categoryID sql.NullInt64) (int64, error)
Counts active (non-trashed) expenses only.
func (*Queries) ClearLedgerOnExpenses ¶
func (q *Queries) ClearLedgerOnExpenses(ctx context.Context, arg ClearLedgerOnExpensesParams) error
func (*Queries) ClearTelegramChatID ¶
Disconnecting a chat keeps the bot polling so the user can re-pair from a different Telegram account. The "Disable" button (SetTelegramEnabled) is the only path that flips enabled to 0.
func (*Queries) ClearTelegramPairingCode ¶
func (*Queries) CountDeletedExpenses ¶
func (*Queries) CreateCategory ¶
func (*Queries) CreateExpense ¶
func (*Queries) CreateLedger ¶
func (*Queries) CreateOwner ¶
func (q *Queries) CreateOwner(ctx context.Context, arg CreateOwnerParams) error
func (*Queries) CreateSession ¶
func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
func (*Queries) DailySpendingBetween ¶
func (q *Queries) DailySpendingBetween(ctx context.Context, arg DailySpendingBetweenParams) ([]DailySpendingBetweenRow, error)
func (*Queries) DailySpendingForLedger ¶
func (*Queries) DeleteExpiredSessions ¶
func (*Queries) DeleteOldLLMCallLog ¶
func (*Queries) DeleteSession ¶
func (*Queries) DeleteTelegramConfig ¶
func (*Queries) EmptyTrash ¶
Hard-deletes every currently soft-deleted row.
func (*Queries) GetAppState ¶
func (*Queries) GetCategory ¶
func (*Queries) GetDeletedExpense ¶
Trash-only fetch: returns the row regardless of state, used by Restore / HardDelete handlers that need to read a soft-deleted row.
func (*Queries) GetExpense ¶
Returns only active rows. Trash UI uses GetDeletedExpense for the trash side.
func (*Queries) GetLLMConfig ¶
func (*Queries) GetOwner ¶
Column order matches the table (post-migration: trash_retention_days and dashboard_url were ALTER-appended last) so sqlc emits the canonical Owner struct rather than a one-off GetOwnerRow.
func (*Queries) GetSession ¶
func (*Queries) GetTelegramConfig ¶
func (q *Queries) GetTelegramConfig(ctx context.Context) (TelegramConfig, error)
func (*Queries) HardDeleteExpense ¶
Permanent delete. Used by the trash UI's "Delete forever" and by the maintenance sweeper. Restricted to already-trashed rows so a stray call can't bypass the trash.
func (*Queries) InsertLLMCallLog ¶
func (q *Queries) InsertLLMCallLog(ctx context.Context, arg InsertLLMCallLogParams) error
func (*Queries) LedgerExpenseCount ¶
Counts active (non-trashed) expenses only.
func (*Queries) LedgerTotalSpent ¶
Sums active (non-trashed) expenses only.
func (*Queries) ListActiveCategories ¶
func (*Queries) ListActiveLedgers ¶
func (*Queries) ListAllCategories ¶
func (*Queries) ListAllLedgers ¶
func (*Queries) ListArchivedLedgers ¶
func (*Queries) ListDeletedExpenses ¶
func (q *Queries) ListDeletedExpenses(ctx context.Context, arg ListDeletedExpensesParams) ([]ListDeletedExpensesRow, error)
Trash listing, newest-deleted first.
func (*Queries) ListExpensesByLedger ¶
func (*Queries) ListRecentExpenses ¶
func (*Queries) PurgeOldDeletedExpenses ¶
func (q *Queries) PurgeOldDeletedExpenses(ctx context.Context, deletedAt sql.NullInt64) (int64, error)
Hard-deletes any soft-deleted rows older than the cutoff. Backs the trash sweeper.
func (*Queries) RecentLLMCallLog ¶
func (*Queries) RestoreExpense ¶
func (q *Queries) RestoreExpense(ctx context.Context, arg RestoreExpenseParams) error
Brings a trashed row back. No-op for active rows.
func (*Queries) SetAppState ¶
func (q *Queries) SetAppState(ctx context.Context, arg SetAppStateParams) error
func (*Queries) SetCategoryArchived ¶
func (q *Queries) SetCategoryArchived(ctx context.Context, arg SetCategoryArchivedParams) error
func (*Queries) SetLLMEnabled ¶
func (q *Queries) SetLLMEnabled(ctx context.Context, arg SetLLMEnabledParams) error
func (*Queries) SetLedgerArchived ¶
func (q *Queries) SetLedgerArchived(ctx context.Context, arg SetLedgerArchivedParams) error
func (*Queries) SetTelegramActiveLedger ¶
func (q *Queries) SetTelegramActiveLedger(ctx context.Context, arg SetTelegramActiveLedgerParams) error
func (*Queries) SetTelegramChatID ¶
func (q *Queries) SetTelegramChatID(ctx context.Context, arg SetTelegramChatIDParams) error
func (*Queries) SetTelegramEnabled ¶
func (q *Queries) SetTelegramEnabled(ctx context.Context, arg SetTelegramEnabledParams) error
func (*Queries) SetTelegramLastUpdateID ¶
func (q *Queries) SetTelegramLastUpdateID(ctx context.Context, arg SetTelegramLastUpdateIDParams) error
func (*Queries) SetTelegramPairingCode ¶
func (q *Queries) SetTelegramPairingCode(ctx context.Context, arg SetTelegramPairingCodeParams) error
func (*Queries) SoftDeleteExpense ¶
func (q *Queries) SoftDeleteExpense(ctx context.Context, arg SoftDeleteExpenseParams) error
Moves the row to trash. Idempotent: deleting an already-deleted row is a no-op.
func (*Queries) SpendingByCategoryBetween ¶
func (q *Queries) SpendingByCategoryBetween(ctx context.Context, arg SpendingByCategoryBetweenParams) ([]SpendingByCategoryBetweenRow, error)
func (*Queries) SpendingByCategoryForLedger ¶
func (*Queries) SpendingByLedgerBetween ¶
func (q *Queries) SpendingByLedgerBetween(ctx context.Context, arg SpendingByLedgerBetweenParams) ([]SpendingByLedgerBetweenRow, error)
func (*Queries) SummaryBetween ¶
func (q *Queries) SummaryBetween(ctx context.Context, arg SummaryBetweenParams) (SummaryBetweenRow, error)
func (*Queries) TopExpensesBetween ¶
func (q *Queries) TopExpensesBetween(ctx context.Context, arg TopExpensesBetweenParams) ([]TopExpensesBetweenRow, error)
func (*Queries) TotalSpentBetween ¶
func (*Queries) UpdateCategory ¶
func (q *Queries) UpdateCategory(ctx context.Context, arg UpdateCategoryParams) error
func (*Queries) UpdateExpense ¶
func (q *Queries) UpdateExpense(ctx context.Context, arg UpdateExpenseParams) error
func (*Queries) UpdateLLMTestResult ¶
func (q *Queries) UpdateLLMTestResult(ctx context.Context, arg UpdateLLMTestResultParams) error
func (*Queries) UpdateLedger ¶
func (q *Queries) UpdateLedger(ctx context.Context, arg UpdateLedgerParams) error
func (*Queries) UpdateOwnerDashboardURL ¶
func (q *Queries) UpdateOwnerDashboardURL(ctx context.Context, arg UpdateOwnerDashboardURLParams) error
func (*Queries) UpdateOwnerPassword ¶
func (q *Queries) UpdateOwnerPassword(ctx context.Context, arg UpdateOwnerPasswordParams) error
func (*Queries) UpdateOwnerPreferences ¶
func (q *Queries) UpdateOwnerPreferences(ctx context.Context, arg UpdateOwnerPreferencesParams) error
func (*Queries) UpdateOwnerProfile ¶
func (q *Queries) UpdateOwnerProfile(ctx context.Context, arg UpdateOwnerProfileParams) error
func (*Queries) UpdateOwnerTrashRetention ¶
func (q *Queries) UpdateOwnerTrashRetention(ctx context.Context, arg UpdateOwnerTrashRetentionParams) error
func (*Queries) UpsertLLMConfig ¶
func (q *Queries) UpsertLLMConfig(ctx context.Context, arg UpsertLLMConfigParams) error
func (*Queries) UpsertTelegramBot ¶
func (q *Queries) UpsertTelegramBot(ctx context.Context, arg UpsertTelegramBotParams) error
Saving a bot token enables polling immediately so the bot can RECEIVE the /start <pairing_code> message that completes the pairing. Without this, the supervisor would never start the bot and pairing could never finish.
type RestoreExpenseParams ¶
type Session ¶
type Session struct {
ID string
CreatedAt int64
ExpiresAt int64
UserAgent sql.NullString
IpAddress sql.NullString
}
type SetAppStateParams ¶
type SetLLMEnabledParams ¶
type SetLedgerArchivedParams ¶
type SetTelegramChatIDParams ¶
type SetTelegramPairingCodeParams ¶
type SetTelegramPairingCodeParams struct {
PairingCode sql.NullString
PairingExpiresAt sql.NullInt64
UpdatedAt int64
}
type SoftDeleteExpenseParams ¶
type SummaryBetweenParams ¶
type SummaryBetweenRow ¶
type TelegramConfig ¶
type TopExpensesBetweenRow ¶
type TopExpensesBetweenRow struct {
ID int64
Amount int64
Description string
SpentAt int64
CategoryName sql.NullString
CategoryColor sql.NullString
LedgerName sql.NullString
}
type TotalSpentBetweenParams ¶
type UpdateCategoryParams ¶
type UpdateCategoryParams struct {
Name string
Color string
Icon sql.NullString
ID int64
}