Go to file
jordi fita mas 9fccd5f81d Acquire the database connection in App.ServeHTTP with cookie set
Almost all request will need the database connection, either because
they will perform queries or because they need to check if the user is
logged in, for instance, so it should be acquired as far above as
possible to avoid acquiring multiple connections.

This is specially true since i have to pass the cookie to the database
to switch role and set request.user.email and request.user.cookie
config variables.  I do not want to do that many times per request.
2023-07-26 00:48:58 +02:00
cmd/camper Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
deploy Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
pkg Acquire the database connection in App.ServeHTTP with cookie set 2023-07-26 00:48:58 +02:00
po Convert the login variables to a struct with parsing and validation 2023-07-24 17:17:15 +02:00
revert Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
test Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
verify Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
web Convert the login variables to a struct with parsing and validation 2023-07-24 17:17:15 +02:00
.gitignore Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
Makefile Add Gettext and GettextNoop to locale 2023-07-24 17:09:43 +02:00
go.mod Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
go.sum Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00