Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dialect api for replacement of sql #3907

Open
hfhbd opened this issue Feb 19, 2023 · 0 comments
Open

Create dialect api for replacement of sql #3907

hfhbd opened this issue Feb 19, 2023 · 0 comments
Labels

Comments

@hfhbd
Copy link
Collaborator

hfhbd commented Feb 19, 2023

Description

The current replacement is hard coded here:

private fun PsiElement.rangesToReplace(): List<Pair<IntRange, String>> {

Use-case:
Create your own dialect with invalid SQL but replace it during code gen (basically the same use-case for sqldelight dialect) but use a dialect API instead.
Real use-case: #3338 (comment)

@hfhbd hfhbd added the feature label Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant