Skip to content

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented Sep 19, 2025

This PR picks up the work done in PR #5382. Its main purpose is to help evaluate how such an interface would work. There's no expectation that this will ever make it into a graph-node release at this point.

Documentation can be found in docs/implementation/sql-interface.md in this PR

This is a continuation of PR #5799 but had to be a new PR because of commit signing

lutter and others added 17 commits September 18, 2025 16:53
1. Do not use CTE's to inject a view of a table at a certain block. Instead
   rewrite the 'from' clause
2. Do not turn bytea columns into string columns since that is hugely
   wasteful
That setup makes it much easier to add more tests that check that we scrub
dangerous constructs from SQL
The wrapping with to_jsonb is closely tied to how we run the query
This is to keep Postgres from complaining about reserved words as column
names, e.g., the column `to` needs to appear as `"to"` in a query
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.

2 participants