Skip to content

Instantly share code, notes, and snippets.

View reinhart1010's full-sized avatar

Reinhart Previano Koentjoro reinhart1010

View GitHub Profile
@alexklibisz
alexklibisz / export-firefly-iii-transactions.sql
Created November 18, 2023 21:26
Export Transactions from Firefly-III Database
-- Export Transactions from Firefly-III Database
-- This query produces a reasonable CSV export of transactions from a Firefly-III database.
-- Adjust the user_id if you have multiple users.
-- Tested on Postgres.
select cast(tj.date as date) as date,
tj.description as description,
round(tcredit.amount, 2) as credit_amount,
acredit.name as credit_account,
round(tdebit.amount, 2) as debit_amount,
adebit.name as debit_account,