aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/database.scm
Commit message (Expand)AuthorAge
* Add support for using a database URI•••As this is useful when working with pg_tmp. Christopher Baines2019-10-08
* Hack better NULL support on to (squee)•••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. Christopher Baines2019-09-04
* Add a couple of functions for PostgreSQL advisory locks•••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. Christopher Baines2019-07-12
* Associate a name with database connections•••This helps when working out which connection to the database is doing what. Christopher Baines2019-07-12
* Add a with-postgresql-transaction procedure•••To help with running tests. Christopher Baines2019-05-05
* Extract out some database functionality to another moduleChristopher Baines2019-04-14