Megatest

Diff
Login

Differences From Artifact [2ad595b83f]:

To Artifact [d5efcde6bc]:


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
;; 
;;     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 (uses mtargs))


;; 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:))




(import (prefix mtargs args:))




;; 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







|

>



|
>
|
<
<
<
|
|
|

|
>
>
>
>
|
>
>
>







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
;; 
;;     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 configfmod))
(declare (uses mtargs))
(declare (uses debugprint))

;; I don't know how to mix compilation units and modules, so no module here.
;;
(module pgdb
    *




(import scheme)
(import data-structures)
(import chicken)

(use typed-records
     (prefix dbi dbi:)
     srfi-69
     srfi-1
     )
(import (prefix mtargs args:)
	debugprint
	configfmod
	)

;; 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
652
653
654
655
656
657
658

             (lst `()))
                       (cond
                        ((> i tab2-pages )
                        lst) 
                      (else 
		  	(loop (+ i 1) (append   lst (list i)))))))









>
658
659
660
661
662
663
664
665
             (lst `()))
                       (cond
                        ((> i tab2-pages )
                        lst) 
                      (else 
		  	(loop (+ i 1) (append   lst (list i)))))))

)