Hacker News new | ask | show | jobs
by samtechie 1474 days ago
Looks nice but am curious about how you connect to and use a database. Is there some middleware or library to do this?
1 comments

The tutorial talks about doing this with SQLite, in a way that suggests that this is the only option.

Which should be fine for a lot of applications.

It looks like janet supports great interop with c, so in theory it isn't much of a stretch to connect to other databases. I had the same question and came across this: https://github.com/newhook/janet-mysql

I know this is probably not for PROD but its a lot of fun to look at a nice clean database driver. I've been working with mysql off and on for ~13 years and never have really looked at the source of a client.