aboutsummaryrefslogtreecommitdiff
path: root/guix-build-coordinator/datastore.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-12-16 07:30:34 +0000
committerChristopher Baines <mail@cbaines.net>2020-12-16 08:26:50 +0000
commit2645fa99d07936d813b3837f388d2acad2c2e0ae (patch)
treeb5e259c1146a09402b346c2cdc683988460198d5 /guix-build-coordinator/datastore.scm
parent7075d39db1015ffe93a2e3090ba3d970acf069c2 (diff)
downloadbuild-coordinator-2645fa99d07936d813b3837f388d2acad2c2e0ae.tar
build-coordinator-2645fa99d07936d813b3837f388d2acad2c2e0ae.tar.gz
Move more logic around submitting builds in to the coordinator
Originally I was trying to keep the implementation details of the datastore in the datastore modules, but this approach starts to crack as you cope with more and more complicated transactions. This change should help resolve issues around getting the coordinator logic in to the coordinator module, and simplifying the SQLite datastore in preparation for adding PostgreSQL support.
Diffstat (limited to 'guix-build-coordinator/datastore.scm')
-rw-r--r--guix-build-coordinator/datastore.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix-build-coordinator/datastore.scm b/guix-build-coordinator/datastore.scm
index c39a454..e0be527 100644
--- a/guix-build-coordinator/datastore.scm
+++ b/guix-build-coordinator/datastore.scm
@@ -14,7 +14,7 @@
(re-export datastore-update)
(re-export datastore-call-with-transaction)
(re-export datastore-store-derivation)
-(re-export datastore-store-build)
+(re-export datastore-insert-build)
(re-export datastore-cancel-build)
(re-export datastore-new-agent)
(re-export datastore-list-agents)
@@ -38,6 +38,7 @@
(re-export datastore-count-builds)
(re-export datastore-for-each-build)
(re-export datastore-find-build)
+(re-export datastore-insert-build-tags)
(re-export datastore-fetch-build-tags)
(re-export datastore-find-build-result)
(re-export datastore-find-build-derivation-system)
@@ -45,6 +46,7 @@
(re-export datastore-list-processed-builds)
(re-export datastore-list-unprocessed-builds)
(re-export datastore-fetch-build-ids-and-propagated-priorities-for-unprocessed-builds)
+(re-export datastore-insert-unprocessed-hook-event)
(re-export datastore-count-unprocessed-hook-events)
(re-export datastore-list-unprocessed-hook-events)
(re-export datastore-delete-unprocessed-hook-event)