You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to start a dev-server with specific sqlite settings (pragma), for example to enable WAL journal
Describe the bug
The parameters set on the CLI are not applied to the sqlite database
Temporal CLI doesn't support all pragma statements supported by sqlite
Minimal Reproduction
temporal server start-dev --db-filename temporal.sqlite --sqlite-pragma journal_mode=WAL
this should create 3 files:
temporal.sqlite
temporal.sqlite-shm
temporal.sqlite-wal
but only 1 is created: temporal.sqlite - which means that the journal_mode=WAL pragma statement has not been applied to the sqlite DB
also, not all pragma statements supported by sqlite in https://www.sqlite.org/pragma.html are accepted by temporal CLI. the CLI only support 2 statements: journal_mode and synchronous.
What are you really trying to do?
I'm trying to start a dev-server with specific sqlite settings (pragma), for example to enable WAL journal
Describe the bug
Minimal Reproduction
temporal server start-dev --db-filename temporal.sqlite --sqlite-pragma journal_mode=WAL
this should create 3 files:
temporal.sqlite
temporal.sqlite-shm
temporal.sqlite-wal
but only 1 is created:
temporal.sqlite
- which means that thejournal_mode=WAL
pragma statement has not been applied to the sqlite DBalso, not all pragma statements supported by sqlite in https://www.sqlite.org/pragma.html are accepted by temporal CLI. the CLI only support 2 statements:
journal_mode
andsynchronous
.Environment/Versions
Additional context
_
to the pragma key, but the sqlite plugin doesn't remove it before building the DSN https://github.com/temporalio/temporal/blob/release/v1.23.x/common/persistence/sql/sqlplugin/sqlite/plugin.go#L205 so we end up with an sqlite URL similar totemporal.sqlite?_pragma=_journal_mode=WAL
instead oftemporal.sqlite?_pragma=journal_mode=WAL
The text was updated successfully, but these errors were encountered: