I've decided to leave the queries sorted by type (insert, select, update, delete) – the alternative is grouping them by the type of object they operate on, but I'm not sure it's actually better.
It also creates a new module Guide.Database.Queries.Delete.
The logic has not been changed at all. The diff is big because in one module I have changed the order of the functions (trait, item, category -> category, item, trait) for consistency.
I've decided to leave the queries sorted by type (insert, select, update, delete) – the alternative is grouping them by the type of object they operate on, but I'm not sure it's actually better.
This PR renames the modules:
Guide.Database.Add
->Guide.Database.Queries.Insert
Guide.Database.Set
->Guide.Database.Queries.Update
Guide.Database.Get
->Guide.Database.Queries.Select
It also creates a new module
Guide.Database.Queries.Delete
.The logic has not been changed at all. The diff is big because in one module I have changed the order of the functions (trait, item, category -> category, item, trait) for consistency.