process method

  1. @override
Database process()
override

Implementation

@override
Database process() {
  final databaseName = _classElement.displayName;
  final databaseTypeConverters =
      _classElement.getTypeConverters(TypeConverterScope.database);
  final entities = _getEntities(_classElement, databaseTypeConverters);
  final views = _getViews(_classElement, databaseTypeConverters);
  final daoGetters = _getDaoGetters(
    databaseName,
    entities,
    views,
    databaseTypeConverters,
  );
  final version = _getDatabaseVersion();
  final allTypeConverters = _getAllTypeConverters(
    daoGetters,
    [...entities, ...views],
  );

  return Database(
    _classElement,
    databaseName,
    entities,
    views,
    daoGetters,
    version,
    databaseTypeConverters,
    allTypeConverters,
  );
}