aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/database.scm
Commit message (Collapse)AuthorAge
* Hack better NULL support on to (squee)Christopher Baines2019-09-04
| | | | | | | | | PQgetvalue used by squee returns null values as empty strings, which are ambiguous for string fields. Therefore, use PQgetisnull to implement a serialiser for squee which checks empty strings to see if they're actually a NULL value, then returns '() in this case. exec-query-with-null-handling can be used to access this behaviour.
* Add a couple of functions for PostgreSQL advisory locksChristopher Baines2019-07-12
| | | | | Use symbol-hash to convert a symbol to the number for the lock. I'm hoping this is OK, and it seems to be stable.
* Associate a name with database connectionsChristopher Baines2019-07-12
| | | | This helps when working out which connection to the database is doing what.
* Add a with-postgresql-transaction procedureChristopher Baines2019-05-05
| | | | To help with running tests.
* Extract out some database functionality to another moduleChristopher Baines2019-04-14