-
Notifications
You must be signed in to change notification settings - Fork 102
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
Unsafe table names generate invalid ts file #104
Comments
@xiamx, @crispmark Guys, the bug should state that finding invalid names isn't handled correctly. And the fix should be: Whenever finding such names that cannot be mapped into TypeScript names, report as error, explaining the issue, and not generate invalid code. |
@xiamx @crispmark |
I aim to maintain this project but I will have to fork the project first, I can't and don't want to operate under SweetIQ name. |
I think it'd be great if someone stepped up to maintain a fork of this project. It's very useful and has a lot of potential, but there are a few things that make this "original" version not usable for my needs (#105 for example, I've also been working on an implementation of enums for "lookup tables"). |
Ideally a new fork of this project would start from someone who uses it regularly, perhaps using it as part of a production setup. I started a fork last year to try to merge some good PRs in https://github.com/xiamx/schemats/ but just didn't have the time to work on it. |
Ok great, I will start from there. |
I think @evdhiggins made a fork (with useful changes) too (including copying my camel caseing PR 😉 ). (Link for convenience) |
I'd also be happy to contribute to a new maintained fork in the future. (@HoldYourWaffle -- your CC PR was a great start to some really helpful things that we've been able to do internally, so I suppose I owe you a great deal of thanks!) |
@evdhiggins Glad I could be of help! |
Good to see some life here 😄 |
It might be a good idea to collect all useful PR's and forks currently existant that could be merged into the new "active" fork. |
@HoldYourWaffle -- Regarding the implementation differences: I think that the main difference is that the camel case options were |
Whatever the next version/branch, it must be in For example, the latest pg-promise that I maintain, gives you 100% |
For clarity, I started #107 to continue the discussion about a new active project. Don't hesitate to comment it. |
If we have table names that, on the db side, need to be quoted, the generated type names end up being invalid typescript names. Not certain what the ideal end result should be, but just figured this was worth documenting.
for instance:
Produces
The text was updated successfully, but these errors were encountered: