Extract out some database functionality to another module
This commit is contained in:
parent
b352b5040a
commit
2e45bb0696
6 changed files with 54 additions and 27 deletions
|
|
@ -25,10 +25,12 @@
|
|||
(ice-9 textual-ports)
|
||||
(squee)
|
||||
(email email)
|
||||
(guix-data-service database)
|
||||
(guix-data-service branch-updated-emails))
|
||||
|
||||
(let ((conn (connect-to-postgres-paramstring "dbname=guix_data_service")))
|
||||
(enqueue-job-for-email
|
||||
conn
|
||||
(parse-email
|
||||
(get-string-all (current-input-port)))))
|
||||
(with-postgresql-connection
|
||||
(lambda (conn)
|
||||
(enqueue-job-for-email
|
||||
conn
|
||||
(parse-email
|
||||
(get-string-all (current-input-port))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue