ihp
ihp copied to clipboard
Make It Easier To Query Database Inside ghci
Currently, we have two options, run make psql
and manually write SQL queries. Or print database results inside a controller action. We should have model context ready when running make ghci
so it could be as simple as query @User |> fetch
One can write any SQL in the tables view in the IDE. I use this a lot for minor update and delete statements. We should extend this to be a more general SQL query window within the IDE.
^ I use this a lot too. It would be great to store the history as well, I find myself retyping the same query a lot when testing. Maybe this could be a window in the future "REPL" tab!
Instead of investing a lot of time into making it easier to write SQL queries, we should focus on improving the QueryBuilder
and developer experience around it.