20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
(import (prefix base64 base64:))
(declare (unit sdb))
;;
(define (sdb:open fname)
(let* ((dbpath (pathname-directory fname))
(dbexists (let ((fe (file-exists? fname)))
(if fe
fe
(begin
(create-directory dbpath #t)
#f))))
(sdb (sqlite3:open-database fname))
(handler (make-busy-timeout 136000)))
|
|
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
(import (prefix base64 base64:))
(declare (unit sdb))
;;
(define (sdb:open fname)
(let* ((dbpath (pathname-directory fname))
(dbexists (let ((fe (common:file-exists? fname)))
(if fe
fe
(begin
(create-directory dbpath #t)
#f))))
(sdb (sqlite3:open-database fname))
(handler (make-busy-timeout 136000)))
|