Megatest

Diff
Login

Differences From Artifact [4136225c9c]:

To Artifact [20db61298c]:


14
15
16
17
18
19
20
21
22


23











24
25
26
27
28
29
30
31
32
33
34
35












36
37
38
39
40
41
42
14
15
16
17
18
19
20


21
22
23
24
25
26
27
28
29
30
31
32
33
34












35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53







-
-
+
+

+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+







;;     GNU General Public License for more details.
;; 
;;     You should have received a copy of the GNU General Public License
;;     along with Megatest.  If not, see <http://www.gnu.org/licenses/>.

;;======================================================================

(declare (unit pgdb))
(declare (uses configf))
;; (declare (unit pgdb))


(import
  chicken.sort
  chicken.string
  srfi-1
  srfi-69
  chicken.condition
  typed-records
  )

;; (declare (uses configf))
;; 
;; I don't know how to mix compilation units and modules, so no module here.
;;
;; (module pgdb
;;     (
;;      open-pgdb
;;      )
;; 
;; (import scheme)
;; (import data-structures)
;; (import chicken)

(use typed-records (prefix dbi dbi:))
;; ;; I don't know how to mix compilation units and modules, so no module here.
;; ;;
;; ;; (module pgdb
;; ;;     (
;; ;;      open-pgdb
;; ;;      )
;; ;; 
;; ;; (import scheme)
;; ;; (import data-structures)
;; ;; (import chicken)
;; 
;; (use typed-records (prefix dbi dbi:))

;; given a configdat lookup the connection info and open the db
;;
(define (pgdb:open configdat #!key (dbname #f)(dbispec #f))  
  (let ((pgconf (or dbispec
		    (args:get-arg "-pgsync")
		    (if configdat