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

Dont generate types for virtual tables #4015

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

AlecKazakova
Copy link
Collaborator

@AlecKazakova AlecKazakova commented Mar 28, 2023

Closes #4001

You can still query/insert them, they just wont have table-specific types for them.

This enables using virtual tables with incompatible modules / columns that are never used from kotlin

@AlecKazakova AlecKazakova merged commit cb5bcd4 into master Mar 28, 2023
@AlecKazakova AlecKazakova deleted the astrong/2023-03-28/dont-gen-fts-tables branch March 28, 2023 16:18
)
}

public fun selectFromTable2(): Query<Myftstable2> = selectFromTable2 { something, nice ->
Copy link
Collaborator

@hfhbd hfhbd Apr 5, 2023

Choose a reason for hiding this comment

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

I struggle to understand this type. This is the type of the virtual table. According to the PR, this would not be generated. And with a clean build locally, this type isn't generated and results into a compiler error. Is this expected? If so, how does the CI pass?

Copy link
Collaborator

@hfhbd hfhbd Jul 26, 2023

Choose a reason for hiding this comment

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

We should run the integration test twice, the first run generates (in-) valid code, the second run validates the code.

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.

Can't generate sqldelight interfaces if fts is being used unless typenames are specified
2 participants