• Returns the read-write provider if it exists, otherwise returns the original provider if options is not provided or if options.allowFallbackToReadOnly is true.

    Parameters

    • providers: ProviderInfo[]
    • Optional options: {
          allowFallbackToReadOnly: boolean;
      }
      • allowFallbackToReadOnly: boolean

    Returns DatabaseProviderBase