Skip to content

docs: API.md still documents Spec::layer_sql/stat_sql removed in #569 #590

Open

Description

@cpsievert

src/doc/API.md still documents Spec::layer_sql() and Spec::stat_sql(), but these methods were removed in #569 (afe60e6).

The affected section is "Query Introspection Methods" (around line 268): the table lists layer_sql / stat_sql, and the example below it calls spec.layer_sql(i) / spec.stat_sql(i), which no longer compiles against main.

For context: these accessors were already vestigial before removal — since #82, Spec::new() populated the backing fields with vec![None; ...], so they returned None in every released crate. The docs made the dead API look live (this confused at least one downstream binding — posit-dev/ggsql-python — into mirroring it).

Suggested fix: drop the two rows from the introspection table and the corresponding lines from the example. It may also be worth a sentence in that section noting that per-layer SQL is constructed centrally through the dialect layer at execution time and is no longer exposed on Spec.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions