initializeTable method

Future<bool> initializeTable()

Implementation

Future<bool> initializeTable() async {
  if (!initialized) throw ArgumentError(C_MUST_INIT);
  if (!await doesTableExist()) {
    try {
      await createTable();
    } on SqlException {
      rethrow;
    }
    return true;
  }
  return false;
}