Member Junction
    Preparing search index...

    Function GetReadOnlyProvider

    • Returns the read-only provider if one is configured. Otherwise returns the first (read-write) provider ONLY when options.allowFallbackToReadWrite is true, and null when it is omitted.

      The read-only pool exists only when dbReadOnlyUsername/dbReadOnlyPassword are set, which most deployments leave unset — so a caller that omits the flag gets null on those servers. Pass it for any pure read.

      Parameters

      • providers: ProviderInfo[]
      • Optionaloptions: { allowFallbackToReadWrite: boolean }

      Returns DatabaseProviderBase