camper/pkg
jordi fita mas 007f401d33 Add a cache of OID in database to register types
It makes no sense to retrieve the same OIDs each and every connection,
because they are not going to change unless the database is reset,
something it is very unlikely to happen in production.

Thus, it is best to query them the first time the application connects
to the database, that it is done at startup to query the available
languages, and then reuse the OIDs.

I can get away of using an “unprotected” map, instead of sync.Map or a
map in tandem with sync.RWMutex, because the application establishes a
connection at startup from a single goroutine and it registers _all_
types we will need to register within the application’s lifespan, hence
it there will be no more writes to that map once the web server is
listening for incomming connections.

This is risky, however, and i hope i do not have to regret it.
2023-10-27 12:30:05 +02:00
..
app Add the first draft of the booking and payment forms 2023-10-19 21:37:34 +02:00
auth Add the form to update company’s tax details 2023-08-15 22:35:21 +02:00
booking Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
campsite Add the slug to the form in the campsite type public page 2023-10-19 21:38:44 +02:00
carousel Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
company Add the Catalonia’s Tourism Registry number to company 2023-10-14 21:59:36 +02:00
database Add a cache of OID in database to register types 2023-10-27 12:30:05 +02:00
form Add the first draft of the booking and payment forms 2023-10-19 21:37:34 +02:00
hex Add cover media to campsite types 2023-09-10 03:04:18 +02:00
home Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
http Add the language switched to the public layout 2023-08-06 05:53:52 +02:00
locale Add the edit form for services 2023-09-25 20:10:33 +02:00
media Show the campsite type’s calendar in an “infinite scroll” carousel 2023-10-18 21:06:41 +02:00
redsys Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
season Show the campsite type’s calendar in an “infinite scroll” carousel 2023-10-18 21:06:41 +02:00
services Add function and HTTP handler to delete services 2023-09-26 17:29:49 +02:00
template Show the campsite type’s calendar in an “infinite scroll” carousel 2023-10-18 21:06:41 +02:00
uuid Add cover media to campsite types 2023-09-10 03:04:18 +02:00