Cuttlefish SDK Reference - v0.1.0
    Preparing search index...
    • Parse a SQL string into a Cuttlefish AST.

      The WASM parser module is automatically loaded on first call.

      Parameters

      • sql: string

        SQL string with $1, $2, etc. placeholders

      Returns Promise<OperationNode>

      OperationNode representation of the query

      const ast = await parseSQL("SELECT * FROM todos WHERE id = $1")