Polyglot SQL API Documentation - v0.2.0
    Preparing search index...

    Function getDialects

    • Get list of supported dialects in this build.

      The full build (@polyglot-sql/sdk) includes all 34 dialects. Per-dialect builds (e.g., @polyglot-sql/sdk/clickhouse) include only "generic" and the selected dialect.

      Use this function to check dialect availability before calling transpile.

      Returns string[]

      Array of dialect name strings available in this build

      const dialects = getDialects();
      // Full build: ["generic", "postgresql", "mysql", "bigquery", ...]
      // Per-dialect: ["generic", "clickhouse"]

      if (dialects.includes("postgresql")) {
      // Safe to transpile to PostgreSQL
      }