Skip to content

Conversation

@pyramation
Copy link
Collaborator

Summary

Updates the README files for both plpgsql-parser and plpgsql-deparser packages to document new APIs added in recent releases (v0.6.x/v0.4.x).

plpgsql-parser additions:

  • Return Type Helpers section showing getReturnInfoFromParsedFunction() usage
  • Schema Rename Example demonstrating heterogeneous AST transformation (SQL + embedded PL/pgSQL)
  • Updated Re-exports section with new exports (getReturnInfo, ReturnInfo, ReturnInfoKind)

plpgsql-deparser additions:

  • Return Context section for correct RETURN statement handling with ReturnInfo
  • Hydration Utilities section documenting hydratePlpgsqlAst, dehydratePlpgsqlAst, isHydratedExpr, getOriginalQuery

Review & Testing Checklist for Human

  • Verify the code examples compile and run correctly (especially the schema rename example which uses multiple imports)
  • Confirm the deparseSync(parseResult, {}, returnInfo) signature matches the actual API

Recommended test plan: Copy the schema rename example into a test file and verify it produces the expected output with schema names transformed.

Notes

plpgsql-parser:
- Add Return Type Helpers section (getReturnInfoFromParsedFunction)
- Add Schema Rename Example showing heterogeneous AST transformation
- Update Re-exports section with new exports

plpgsql-deparser:
- Add Return Context section for correct RETURN statement handling
- Add Hydration Utilities section (hydrate/dehydrate/isHydratedExpr/getOriginalQuery)
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@pyramation pyramation closed this Jan 7, 2026
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