Commit graph

13 commits

Author SHA1 Message Date
Elias Projahn
e0fc60f9eb Run Moor within a background isolate
This basically follows the guidelines at
https://moor.simonbinder.eu/docs/advanced-features/isolates/. In the
future we will be able to have multiple simultaneous database
connections.
2020-04-17 17:28:24 +02:00
Elias Projahn
00def5382e Switch to more_ffi
This will be required to run the database in a background isolate.
2020-04-12 19:21:53 +02:00
Elias Projahn
99e4711cfc Remove seperate role repesentation
The role and instrument tables have been merged into one (the instrument
table). There are not that many roles that aren't instruments and it is
much simpler to mange this way. The role editor and role selector have
been removed and the instrument related UI parts have been modified
accordingly.
2020-03-31 15:49:15 +02:00
Elias Projahn
e2167143ed Database: Fix null error 2020-03-30 17:33:36 +02:00
Elias Projahn
8c36988da9 Move PerformanceModel to database 2020-03-22 16:46:28 +01:00
Elias Projahn
7f783bd016 Database: Fix worksByComposer
While the previous code was indeed valid SQL is wasn't the best way to
do this. Also, only works with parts where included in the result set.
This is fixed now. Some optimization may still be neccessary.
2020-03-22 16:31:38 +01:00
Elias Projahn
4092a91f56 Add recordings
The tables ensembles, roles, recordings and performances as well as
corresponding queries and update logic have been added to the database.
2020-03-22 14:49:40 +01:00
Elias Projahn
71d51596ae Enable foreign key support 2020-03-21 15:41:03 +01:00
Elias Projahn
84cdd51c52 Replace existing rows in update functions 2020-03-21 15:08:50 +01:00
Elias Projahn
4b178752b9 Redo how works are stored
Before works where stored using a complicated tree structure where each
part references its parent. Now it's a flat structure that keeps track
of the relations using a new field named part_level. The corresponding
query was simplified accordingly. Also, the updateWork function was
rewritten.
2020-03-21 14:34:45 +01:00
Elias Projahn
ef4b81ce9b Fix error opening database
The schemaVersion has to be at least one.
2019-12-04 20:48:03 +01:00
Elias Projahn
d73f2075fa Add function to generate an ID 2019-12-03 12:42:43 +01:00
Elias Projahn
437e30933a Add basic database for works and composers
This includes tables for persons, instruments and works as well as some
queries and functions to work with them. The generated code should be
ignored by Git for now. I also added a section to README.md explaining
how to handle code generation.
2019-12-03 12:03:39 +01:00