Go to file
jordi fita mas ab6c0079c9 Set search_path on each new connection, and role on each acquisition
The whole application will need the same search_path, so it is wasteful
to do that in each handler.

It is possible to pass the search path as a parameter to the database’s
connection string, but then everyone would need to remember to do that,
and update the configuration in case i add another schema.

Similarly, i need to change the user’s role to match her
permissions—which are not in yet—, but this time i need it each time a
handler requests a connection from the pool, because each time the
connection is returned to the pool i reset the role back to the initial,
that hopefully will be authenticator.
2023-01-17 14:49:02 +01:00
cmd/numerus Set search_path on each new connection, and role on each acquisition 2023-01-17 14:49:02 +01:00
debian Split into three debian packages: dev, binary, and sqitch migration 2023-01-16 13:22:16 +01:00
deploy “Merge” find_user_role and login 2023-01-17 13:18:12 +01:00
pkg Set search_path on each new connection, and role on each acquisition 2023-01-17 14:49:02 +01:00
revert “Merge” find_user_role and login 2023-01-17 13:18:12 +01:00
test “Merge” find_user_role and login 2023-01-17 13:18:12 +01:00
verify “Merge” find_user_role and login 2023-01-17 13:18:12 +01:00
web/template Add the simplest possible web server to test login 2023-01-13 20:53:43 +01:00
COPYING Rename LICENSE to COPYING 2023-01-15 04:08:35 +01:00
go.mod Downgrade pgx to v4 2023-01-15 20:45:45 +01:00
go.sum Downgrade pgx to v4 2023-01-15 20:45:45 +01:00
sqitch.conf Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
sqitch.plan “Merge” find_user_role and login 2023-01-17 13:18:12 +01:00