Go to file
jordi fita mas ef215f1e6e 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 incoming connections.

This is risky, however, and i hope i do not have to regret it.
2023-10-27 12:44:24 +02:00
cmd/numerus Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
debian Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
demo Add empty IBAN and BIC to demo contacts 2023-07-02 02:26:35 +02:00
deploy Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00
pkg Add a cache of OID in database to register types 2023-10-27 12:44:24 +02:00
po Add the sum of the base and taxes to expenses’ index 2023-10-02 16:36:42 +02:00
revert Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00
test Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00
verify Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00
web Set enctype to multipart/form-data for invoice status form 2023-10-02 18:48:28 +02:00
.gitignore Ignore IntelliJ’s project files 2023-01-30 16:42:15 +01:00
COPYING Rename LICENSE to COPYING 2023-01-15 04:08:35 +01:00
Makefile Rename extension of templates to .gohtml 2023-01-30 16:48:21 +01:00
go.mod Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
go.sum Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
sqitch.conf Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
sqitch.plan Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00