How can I use NativeDatabase to define SQLite functions with migration testing? #2941
Answered
by
simolus3
notcancername
asked this question in
Q&A
-
I am using a SQLite custom function in my database class: LazyDatabase _openConnection() {
return LazyDatabase(() async {
// ...
return NativeDatabase(..., setup: (raw) {
raw.createFunction(...);
});
}); How can I ensure this function gets defined even when using |
Beta Was this translation helpful? Give feedback.
Answered by
simolus3
Apr 5, 2024
Replies: 1 comment 1 reply
-
This is not possible with a released drift version unfortunately, but I've just added the necessary callback in 37f120d. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
notcancername
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not possible with a released drift version unfortunately, but I've just added the necessary callback in 37f120d.