1
Add database `afterCreate` pool `init` hook
Source: directus/directus#22973 · opened by @rijkvanzanten
This will allow specific database connection params to be used, like WAL mode on Sqlite, or CockroachDB options like serial_normalization etc.
Discussed in
<div type='discussions-op-text'>
<sup>Originally posted by xmichaelx June 28, 2022</sup>
Is Directus using WAL with SQLite backend? If not is it possible to enable it with executing pragma journal_mode=wal; somewhere? Can it be configured?
I see that in
there is line which enables foreign_keys await run('PRAGMA foreign_keys = ON'); would it be possible to add WAL? or at least do so depending on additional variable?</div>
Discussed in
<div type='discussions-op-text'>
<sup>Originally posted by xmichaelx June 28, 2022</sup>
Is Directus using WAL with SQLite backend? If not is it possible to enable it with executing pragma journal_mode=wal; somewhere? Can it be configured?
I see that in
there is line which enables foreign_keys await run('PRAGMA foreign_keys = ON'); would it be possible to add WAL? or at least do so depending on additional variable?</div>
No pledges yet. Be the first to back this.
Comments
Similar requests
Configurable hook execution order for extensions
3 votes · 0 comments
Schema Apply on Startup
3 votes · 0 comments
Storing Directus metadata in a different database and keeping user database clean
12 votes · 0 comments
A way for a hook to identify root calls
1 vote · 0 comments
Add hook "context" information
18 votes · 0 comments
No comments yet.