mirror of
				https://github.com/yrzam/findb.git
				synced 2025-10-30 15:59:06 +00:00 
			
		
		
		
	slight improvements
This commit is contained in:
		| @@ -235,7 +235,7 @@ Data is calculated over the last 10 years with a period of 1 month for the last | |||||||
| base_balance - total balance, converted to the base asset | base_balance - total balance, converted to the base asset | ||||||
| base_balance_delta - balance change since the previous month | base_balance_delta - balance change since the previous month | ||||||
| base_active_delta - delta (gains - losses) for all transactions that are not passive income/expenses and occurred during this month | base_active_delta - delta (gains - losses) for all transactions that are not passive income/expenses and occurred during this month | ||||||
| base_passive_delta - balance change caused by exchange rate fluctuations, passive income/expenses, non-specified transactions | base_passive_delta - balance change caused by exchange rate fluctuations, rebalancing, passive income/expenses, non-specified transactions | ||||||
| *_by_type - same data but per asset type, represented as a concatenated string | *_by_type - same data but per asset type, represented as a concatenated string | ||||||
| ... | ... | ||||||
| ```  | ```  | ||||||
|   | |||||||
| @@ -467,7 +467,8 @@ from | |||||||
| 	left join fin_asset_types r_fat on r_fat.id=r_fa.type_id | 	left join fin_asset_types r_fat on r_fat.id=r_fa.type_id | ||||||
| 	left join fin_storages r_fs on r_fs.id=r_fas.storage_id | 	left join fin_storages r_fs on r_fs.id=r_fas.storage_id | ||||||
| order by | order by | ||||||
| 	ft.date desc; | 	ft.date desc, | ||||||
|  | 	ft.id desc; | ||||||
| CREATE TRIGGER current_balances_insert | CREATE TRIGGER current_balances_insert | ||||||
| instead of insert on current_balances | instead of insert on current_balances | ||||||
| begin | begin | ||||||
|   | |||||||
| @@ -21,6 +21,7 @@ EOF | |||||||
|  |  | ||||||
| # test | # test | ||||||
| TEST_DB_PATH="$DUMP_PATH.test.db" | TEST_DB_PATH="$DUMP_PATH.test.db" | ||||||
|  | rm -f "$TEST_DB_PATH" | ||||||
| cat "$DUMP_PATH" | sqlite3 "$TEST_DB_PATH" | cat "$DUMP_PATH" | sqlite3 "$TEST_DB_PATH" | ||||||
| echo 'pragma foreign_key_check;' | sqlite3 "$TEST_DB_PATH" | echo 'pragma foreign_key_check;' | sqlite3 "$TEST_DB_PATH" | ||||||
| rm "$TEST_DB_PATH" | rm -f "$TEST_DB_PATH" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 yrzam
					yrzam