working on the cache

This commit is contained in:
Danny Yoo 2011-09-22 16:54:06 -04:00
parent c05e90e5b8
commit 5c1495a0ce

22
js-assembler/db-cache.rkt Normal file
View File

@ -0,0 +1,22 @@
#lang racket/base
(require (planet ryanc/db)
"../version.rkt")
(when (not (file-exists? "whalesong-cache.sqlite3"))
(define conn
(sqlite3-connect #:database "whalesong-cache.sqlite3"
#:mode 'create))
(disconnect conn))
(define conn
(sqlite3-connect #:database "whalesong-cache.sqlite3"))
(define (cached? path)
#f)
(define (save-in-cache! path)
(void))