hasSqliteDriverIn static method

bool hasSqliteDriverIn(
  1. Iterable<BeanDefinition<Object>> definitions
)

Whether definitions hold a SQLite driver: the bean the generator writes for the sqlite3 package (sqlite3JdbcDriver), or one of the application's own of class SqliteJdbcDriver.

Implementation

static bool hasSqliteDriverIn(Iterable<BeanDefinition<Object>> definitions) =>
    definitions.any(
      (definition) =>
          definition.name == 'sqlite3JdbcDriver' ||
          definition.types.contains(SqliteJdbcDriver),
    );