setup/jsqlite.ss
#lang scheme/base
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SESSION.plt - a session store built on top of bzlib/dbi
;;
;; Bonzai Lab, LLC.  All rights reserved.
;;
;; Licensed under LGPL.
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; setup/jsqlite.ss - setup for jsqlite
;; yc 11/15/2009 - first version
(require "base.ss" "../depend.ss"
         (planet bzlib/dbd-jsqlite))

(define (setup-session-store/jsqlite! path)
  (setup-session-store! (connect 'jsqlite (if (string? path) 
                                              (string->path path)
                                              path))
                        "sqlite"))

(provide setup-session-store/jsqlite!)