Megatest

Diff
Login

Differences From Artifact [6f2c907335]:

To Artifact [b57542e266]:


12
13
14
15
16
17
18



19
20
21
22
23
24
25
(use sqlite3 srfi-1 posix regex regex-case srfi-69 dot-locking format)
(import (prefix sqlite3 sqlite3:))

(declare (unit tasks))
(declare (uses db))
(declare (uses rmt))
(declare (uses common))




(include "task_records.scm")

;;======================================================================
;; Tasks db
;;======================================================================








>
>
>







12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(use sqlite3 srfi-1 posix regex regex-case srfi-69 dot-locking format)
(import (prefix sqlite3 sqlite3:))

(declare (unit tasks))
(declare (uses db))
(declare (uses rmt))
(declare (uses common))
(declare (uses pgdb))

;; (import pgdb) ;; pgdb is a module

(include "task_records.scm")

;;======================================================================
;; Tasks db
;;======================================================================

573
574
575
576
577
578
579











;;     (runs:rollup-run db
;; 		     keys 
;; 		     keyvals
;; 		     (tasks:task-get-name  task)
;; 		     (tasks:task-get-owner  task))
;;     (tasks:set-state mdb (tasks:task-get-id task) "waiting")))



















>
>
>
>
>
>
>
>
>
>
>
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
;;     (runs:rollup-run db
;; 		     keys 
;; 		     keyvals
;; 		     (tasks:task-get-name  task)
;; 		     (tasks:task-get-owner  task))
;;     (tasks:set-state mdb (tasks:task-get-id task) "waiting")))

;;======================================================================
;;  S Y N C   T O   P O S T G R E S Q L
;;======================================================================

;; In the spirit of "dump your junk in the tasks module" I'll put the
;; sync to postgres here for now.

(define (tasks:sync-to-postgres)
  (let* ((dbh (pgdb:open *configdat*))
	 (area-info (pgdb:area-path->area-info dbh *toppath*)))
    (print "area-info: " area-info)))