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

Support synthesized and virtual tables #529

Closed
wants to merge 8 commits into from
Closed

Conversation

hfhbd
Copy link
Collaborator

@hfhbd hfhbd commented Jul 3, 2023

I also removed the package name from the predefined table class because we don't use them in sqldelight anymore.

@hfhbd hfhbd self-assigned this Jul 3, 2023
val name: String,
val content: String,
) {
val fileName = "___predefined/$name"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added because we could clash with user defined file names and we check the file name if we need to use the base package name in sqldelight. This isn't a real solution, but a doable and easy workaround.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could exclude the file from the file index instead? Or somehow create a temp file/remove the virtual file but keep the PsiElement?

@hfhbd hfhbd force-pushed the hfhbd/synthesizedTables branch from 18dc9af to 9ebccb1 Compare July 26, 2023 09:52
@hfhbd hfhbd changed the title Support synthesized tables Support synthesized and virtual tables Jul 26, 2023
@hfhbd
Copy link
Collaborator Author

hfhbd commented Jul 26, 2023

I always get a plugin validation error: Exiting due to a known, handled, plugin validation failure.: https://jetbrains-platform.slack.com/archives/C5U8BM1MK/p1690367594822739

Fixed by removing the default values of the interface.

@hfhbd
Copy link
Collaborator Author

hfhbd commented Aug 8, 2023

Superseded by #548

@hfhbd hfhbd closed this Aug 8, 2023
@hfhbd hfhbd deleted the hfhbd/synthesizedTables branch August 8, 2023 12:26
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