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

    Function getDialects

    • Get list of supported dialects in this build.

      The published npm package includes all supported dialects. Custom WASM builds created from source can expose a subset selected through Cargo features.

      Use this function to check dialect availability before calling transpile.

      Returns string[]

      Array of dialect name strings available in this build

      const dialects = getDialects();
      // ["generic", "postgresql", "mysql", "bigquery", ...]

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