unstorage db0 driver not working with config.ts #3437
ToBinio
started this conversation in
Help Wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am currently trying to play around with the unstorage db0 driver.
Sadly, it does not seem to work with the nitro config.
I am always getting:
my config looks like this:
The
.sqlsyntax works perfectly within theconfig.tsBased on this, my best guess on what is going on is that during the config run step, the whole thing gets serialized and deserialized, losing the all the functions within the
databaseobj.Since the string for sql
dialectis still present, only.sqlbreaks.Please let me know if I am doing something wrong or where I should report this!
Thanks
edit:
I found a workaround - https://nitro.build/guide/storage#runtime-configuration works which would make sense based on my theory
All reactions