createRepositoryAdapter<O> method

DBRepositoryAdapter<O>? createRepositoryAdapter<O>(
  1. String name, {
  2. String? tableName,
  3. Type? type,
})

Implementation

DBRepositoryAdapter<O>? createRepositoryAdapter<O>(String name,
    {String? tableName, Type? type}) {
  if (isClosed) {
    return null;
  }

  return _repositoriesAdapters.putIfAbsent(
          name, () => instantiateRepositoryAdapter<O>(name, tableName, type))
      as DBRepositoryAdapter<O>;
}