Example of using codemod that changes SQL.
It detects all SELECT statements and adds an index creation statement before them.
Inside SELECT statement for any fields that ends with _id it creates an index on that field.
Example
Before
sql
After
ts
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
No description available
The easiest way to run this codemod without installing anything globally:
Example of using codemod that changes SQL.
It detects all SELECT statements and adds an index creation statement before them.
Inside SELECT statement for any fields that ends with _id it creates an index on that field.
sql
ts
Build your own codemod and share it with the community.