checkForIsReadyDatabase function

bool checkForIsReadyDatabase(
  1. List<SqfEntityTableBase> dbTables
)

Check the tables if initialized

Implementation

bool checkForIsReadyDatabase(List<SqfEntityTableBase> dbTables) {
  if (dbTables.where((i) => !i.initialized).isEmpty) {
    print('SQFENTITIY: The database is ready for use');
    return true;
  } else {
    return false;
  }
}