171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
(if domain (sdat-set-domain! self domain))))
;; (let ((dbtype (sdat-get-dbtype self)))
;; (print "dbtype: " dbtype)
;; (sdat-set-dbtype! self (eval dbtype))))
(define (session:setup self)
(let ((dbtype (sdat-get-dbtype self))
(dbinit (eval (sdat-get-dbinit self)))
(dbexists #f))
(let ((dbfname (alist-ref 'dbname dbinit)))
(if (eq? dbtype 'sqlite3)
(if (file-exists? dbfname)
(begin
;; (session:log self "setting dbexists to #t")
(set! dbexists #t))))
|
|
|
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
(if domain (sdat-set-domain! self domain))))
;; (let ((dbtype (sdat-get-dbtype self)))
;; (print "dbtype: " dbtype)
;; (sdat-set-dbtype! self (eval dbtype))))
(define (session:setup self)
(let ((dbtype (sdat-get-dbtype self))
(dbinit (sdat-get-dbinit self))
(dbexists #f))
(let ((dbfname (alist-ref 'dbname dbinit)))
(if (eq? dbtype 'sqlite3)
(if (file-exists? dbfname)
(begin
;; (session:log self "setting dbexists to #t")
(set! dbexists #t))))
|