Open Rscho314 opened 2 years ago
Parts of the db
collection are in the main repository, because (IIRC) raco setup
uses SQLite databases to store metadata. The call to sqlite3_open_v2
, for example, is here: https://github.com/racket/racket/blob/master/racket/collects/db/private/sqlite3/main.rkt.
The database argument should not be a string, which are always interpreted as paths by the Racket library. You should use a different kind of value, like (list 'memory #:shared #:name memdb1)
, and convert that to a string in sqlite3-connect
. That function is written in an old style, by the way, and it should probably be updated to use match
and definitions.
Hi Ryan,
I'd like to implement that. currently,
(sqlite3-connect #:database "file::memory:?cache=shared")
fails with:
However, I am confused about how to fix that. Indeed, I am unable to find the file
/usr/share/racket/collects/db/private/sqlite3/connection.rkt
. Is the file generated somehow?Also, how should I install the package for testing? Doing
raco pkg install
in the root dir yields: