Skip to content

Dynamic API? #2

@jackfirth

Description

@jackfirth

This package seems to provide two main pieces:

  1. A SQL-engine-agnostic AST and the ability to execute statements written in this AST
  2. A fancy and user-friendly macro-powered S-expression notation for constructing this AST

The second piece is nice when performing operations on a known table structure, but when trying to write libraries that abstract over bits of SQL the first piece is more important. It doesn't seem like dynamic constructors for the AST are stable or well documented. Based on the project TODOs, I'm guessing more support for the dynamic API is expected in the future. What do you imagine it looking like?

For reference, I'm trying to write a function that basically pairs an insert statement with a delete statement in a single value to automatically construct and destruct a row in a database for integration tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions