-
Actual@DriftDatabase(
include: {
'package:daily_routine_tracker/config/app_db/schema/profile_table.drift',
},
) to include Project folder structure is,
now, inside the
in that we are exporting all the files related to the app_db like below export 'app_db/app_db.dart';
export 'app_db/db_typedef.dart';
export 'app_db/query/profile_table_query.dart'; ExpectingSo, is it possible to make below import work? import 'package:daily_routine_tracker/config/config.dart';
@DriftDatabase(
include: {
'profile_table.drift',
},
) |
Beta Was this translation helpful? Give feedback.
Answered by
simolus3
Jan 2, 2024
Replies: 1 comment 1 reply
-
Is the database file in the same folder as the drift file? The relative import should work in that case, you can also do |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Vedsaga
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is the database file in the same folder as the drift file? The relative import should work in that case, you can also do
'schema/profile_table.drift'
if it's in a subdirectory. Generally, imports and includes in drift are designed to behave like Dart imports.