Member Junction
    Preparing search index...

    Function ResolvePlatformKey

    • THE seam through which runtime code picks a SQL dialect.

      Any code that generates, formats, or re-executes SQL must derive its dialect from the provider that will actually run the SQL — never from a literal. A hardcoded 'sqlserver' is invisible on a SQL Server tenant and silently wrong on every other one.

      Parameters

      • provider: unknown

        anything that may expose PlatformKey (a data provider, a metadata provider, BaseEntity.Provider, undefined, …)

      • fallback: DatabasePlatform = DEFAULT_DATABASE_PLATFORM

        the platform to assume when the provider is absent or does not name a platform this build supports. Defaults to DEFAULT_DATABASE_PLATFORM.

      Returns DatabasePlatform