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

Hardcoded database implementation package name #5178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Omico
Copy link

@Omico Omico commented Apr 21, 2024

Fixed #4906

@hfhbd
Copy link
Collaborator

hfhbd commented Apr 23, 2024

Personally I want to get rid of this file at all and move the implementation just below the Database interface with private accessor and also remove the KClass hack.

@Omico
Copy link
Author

Omico commented Apr 27, 2024

Personally I want to get rid of this file at all and move the implementation just below the Database interface with private accessor and also remove the KClass hack.

I think splitting the file helps with debugging. When you encounter a problem during use, the entire file is not generated, which may make it more difficult to locate the problem code. For this PR, I am just not satisfied with the generated naming only.

@hfhbd
Copy link
Collaborator

hfhbd commented May 20, 2024

I think splitting the file helps with debugging. When you encounter a problem during use, the entire file is not generated, which may make it more difficult to locate the problem code.

I don't understand this specific use-case: You do have problems with code gen, and you need debug the generating of the database file. If so, this is a bug in sqldelight but this should not be "improved" by changing the generated file name.

Do you want to change the PR? Otherwise, I can take it.

@Omico
Copy link
Author

Omico commented May 20, 2024

I think splitting the file helps with debugging. When you encounter a problem during use, the entire file is not generated, which may make it more difficult to locate the problem code.

I don't understand this specific use-case: You do have problems with code gen, and you need debug the generating of the database file. If so, this is a bug in sqldelight but this should not be "improved" by changing the generated file name.

Do you want to change the PR? Otherwise, I can take it.

I don't like the generated naming of the package name. It makes me feel this is ugly. This is my only motivation for submitting this PR. You should create a new PR if you have other ideas for this project.

Also, the reason I changed the test file is because it's associative.

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.

The implementation directory naming in the generated directory is very strange
2 participants