#[sqlx::test] migrations/fixtures with own connection options? #4204
Unanswered
michalfita
asked this question in
Q&A
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.
-
I need to use
SqliteConnectionOptionstogether with.with_regexp()and.collation(), so one of my tables could have right constraints.However, it seems that use of automatic migrations and fixtures (btw. great feature) relies only on default options, so my migrations fail as
regexpfunction don't exist.Is there a way to amend settings for all test connection before actual test function is called? Using
signature is too late in the game. Do I really need to disable these nice default features and so all the setup myself in this case?
Beta Was this translation helpful? Give feedback.
All reactions