-
Notifications
You must be signed in to change notification settings - Fork 57
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
questions about empty strings #114
Comments
Do you mind expanding on the use case for an empty string enum value? And if you need to implement a different sql/valuer interface methods, you can create a custom template and have the tool use that for your use case if the provided one doesn't do the right thing for you. |
I think "" maybe is useful for some table schema design like varchar, which is don't want to be null, sometimes is easier for programing dont need deal with null |
+1 |
1 similar comment
+1 |
With the addition of string enums, you should be able to do this by adding an entry Let me know if this doesn't work for you. |
You mean |
I mean //ENUM(empty="", value1)
type TestEnum string The use case in question is about parsing empty strings as part of SQL, which would assume that there is no need for an integer part, so simply using strings would solve the problem at hand. |
Thanks again for the interest in the project... I'm going to close this ticket now, but if you have troubles with it still... please either reopen or open a new ticket and I'll see what I can do to resolve it for you. Thanks! |
Two questions about empty strings:
The text was updated successfully, but these errors were encountered: