DriftDatabase constructor

const DriftDatabase(
  1. {List<Type> tables = const [],
  2. List<Type> views = const [],
  3. List<Type> daos = const [],
  4. Map<String, String> queries = const {},
  5. Set<String> include = const {}}
)

Use this class as an annotation to inform the generator that a database class should be generated using the specified DriftDatabase.tables.

Implementation

const DriftDatabase({
  this.tables = const [],
  this.views = const [],
  this.daos = const [],
  this.queries = const {},
  this.include = const {},
});