Skip to content

Sqlite fixup#20

Merged
antialize merged 5 commits intomainfrom
sqlite_fixup
May 2, 2026
Merged

Sqlite fixup#20
antialize merged 5 commits intomainfrom
sqlite_fixup

Conversation

@antialize
Copy link
Copy Markdown
Owner

No description provided.

antialize added 5 commits May 2, 2026 19:24
- Refactor type_test binary to use schema/queries subcommands
- Add *.queries.sql files with example queries for each schema
- Add *.queries.json expected argument and output-column types
- Update test.py to discover and run query tests automatically
Adds the sqlx-type-schema.sql from simpleadmin as a new test case
covering the SQLite dialect. The queries file covers all query! macros
used in the simpleadmin server.

simpleadmin.queries.json is not yet committed because a recently
introduced bug in qusql-type prevents the query typer from running
against this schema. Once fixed, run test.py --update to generate it.
…ases

Add a new FROM_ALIAS restrict set containing LEFT, RIGHT, INNER, CROSS,
FULL, NATURAL, OUTER, JOIN, and STRAIGHT_JOIN. Apply it only to the
implicit alias detection in parse_table_reference_named so that e.g.

    FROM docker_images LEFT JOIN docker_deployments ON ...

is no longer parsed as table docker_images with implicit alias LEFT
followed by a plain JOIN. Explicit AS aliases are unaffected.

These keywords are not reserved in SQLite (valid as unquoted column
names), so they cannot be added to Restrict::SQLITE; a dedicated
context-specific restrict set is the correct fix.
Generate query type baseline now that the parser bug (join keywords
being consumed as implicit table aliases) is fixed.
@antialize antialize merged commit dcdaa29 into main May 2, 2026
7 checks passed
@antialize antialize deleted the sqlite_fixup branch May 2, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant