+**`shareable` and `setupSQL` interaction.** Shareable mode reserves the alias `malloy_db` and runs `ATTACH '<databasePath>' AS malloy_db; USE malloy_db.main` internally. Don't use `ATTACH` against `databasePath` or the `malloy_db` alias from `setupSQL` — those collide. Other `ATTACH` statements in `setupSQL` (different file, different alias) are fine, but they run once at connection setup and are not released on idle, so any file you attach that way keeps its lock for the lifetime of the connection. If you need a secondary file to be release-on-idle too, give it its own malloy connection with `shareable: true` instead of attaching it via `setupSQL`.
0 commit comments