Commit Graph

19 Commits

Author SHA1 Message Date
5570dca6c9 Use cgo-free SQL driver and add limit of 100 to maxVoters 2025-01-21 09:17:40 +01:00
5668b1cd6a Insert election with uuid instead of auto-generated id 2025-01-20 10:04:15 +01:00
22a6593e3a Add busy_timeout 2025-01-13 22:00:00 +01:00
d1225d3258 Fix slow-ass code 2025-01-13 20:06:55 +01:00
ee847020f7 Add page to create an election 2025-01-13 19:58:42 +01:00
49a1df06d2 Dirty implementation of createVotes 2025-01-08 13:57:49 +01:00
40f11c75af Add some integration tests with go-hit 2024-12-31 15:29:19 +01:00
3c4cfe8e99 Enable foreign keys 2024-12-31 00:06:19 +01:00
e5e85d494e Use prepared statement 2024-12-30 23:47:40 +01:00
4ce099621d Move migration files 2024-12-30 23:40:52 +01:00
195bc7d85e Generate voter data for known elections and simplify MaxVoters (0 = no maximum) 2024-12-30 23:01:32 +01:00
218f56c060 Implement graceful shutdowns 2024-12-30 22:02:15 +01:00
b5a1bfc247 Small code cleanup 2024-12-30 20:53:53 +01:00
29fb5880e3 Add migrations and continue implementing election insertion 2024-12-30 20:41:28 +01:00
a22f3e5a71 Write logic for createElection validation 2024-12-28 17:13:22 +01:00
5c784f491d Add POST /election 2024-12-27 18:03:46 +01:00
80d936af6e Ensure database file is created by pinging 2024-12-27 15:05:37 +01:00
bc2ffce244 Start to code election insert 2024-12-27 14:38:30 +01:00
ca5fccb809 Small fixes in init.sql and create drop.sql 2024-12-27 11:10:10 +01:00