Skip to content

Commit

Permalink
Update database.md (#571)
Browse files Browse the repository at this point in the history
punctuation, phrasing for better understanding
  • Loading branch information
bpaulien authored Dec 11, 2024
1 parent a2f14ee commit 51bbdcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/contributing/project-details/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Actual stores your data locally inside a SQLite database. You can see the defaul

However this is not the 'current' structure, as the database is created as a copy from the default template, and then a series of migrations is run to get the database up to the current level. You can see these migrations in `/loot-core/migrations`.

On the front end, Actual sometimes uses views to display data. All the names with the `v_` prefix are actually views, not tables. The views are recreated every time the app starts and normalize the shape of the data to the internal tables. Makes it easy to change field names etc without actually touching the tables (especially important in this local-first world where syncing directly references tables and fields)
On the front end, Actual sometimes uses views to display data. All the names with the `v_` prefix are actually views, not tables. The views are recreated every time the app starts and normalize the shape of the data to the internal tables. this makes it easy to change field names etc. without actually touching the tables (especially important in this local-first world where syncing directly references tables and fields).

Much of the interesting functionality you might be interested in can be found in `/loot-core/src/server/db`
Much of the interesting functionality you might be curious about can be found in `/loot-core/src/server/db`

0 comments on commit 51bbdcf

Please sign in to comment.