aelve / guide

A workspace for research teams
https://guide.aelve.com
106 stars 10 forks source link

Reorganize queries #378

Closed neongreen closed 5 years ago

neongreen commented 5 years ago

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:

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.

neongreen commented 5 years ago

Mostly this PR is needed so that the queries would live in their own folder and not mix with stuff like Guide.Database.Connect.

I also like that the names correspond to the SQL inside them now.