Skip to content
Discussion options

You must be logged in to vote

The tests expect that your database is set up like this to allow passing a custom connection:

class DriftAppDatabase extends _$DriftAppDatabase {
  DriftAppDatabase([QueryExecutor? e]) : super(e ?? _openConnection());

I think we should add a check in the command that warns about this if the database has no arguments in its default constructor (and also fix the snippets on the documentation site to align with the format expected by the tests).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@joseph-neeraj
Comment options

@goerlitz
Comment options

Answer selected by joseph-neeraj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants