Seems to have hit a slight issue where I am unable see the result of setting journal_mode to wal. I am most familiar with Go's mattyn/go-sqlite library which has an API around it.
I am using the latest sqlite3 version so unsure if I am missing something in Gleam or missing something with SQLite but all the docs and Googling seem to suggest I just need to set pragma journal_mode = wal; after I connect.
I've tried to run the following script (the pragma for the foreign keys seems to work tho)
pragma journal_mode=wal;
pragma synchronous=normal;
create table users (
id int
) strict;
insert into users (id) values (1)