-
-
Notifications
You must be signed in to change notification settings - Fork 142
feat(typegen): Go Type Gen #687
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
Merged
soedirgo
merged 12 commits into
supabase:master
from
isaacharrisholt:feat/go_typegen_types
May 24, 2024
Merged
feat(typegen): Go Type Gen #687
soedirgo
merged 12 commits into
supabase:master
from
isaacharrisholt:feat/go_typegen_types
May 24, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Going to mark this as draft for now - I've decided it might be better to separate out the Select, Insert and Update models (as in JS) and make use of the |
c652162
to
936a6d7
Compare
I've now done the above, so this should be ready to go |
db43f73
to
f10acb5
Compare
soedirgo
approved these changes
May 24, 2024
Merged
avallete
pushed a commit
that referenced
this pull request
May 13, 2025
* feat(typegen): add route for go * feat(typegen): cleanup server.ts and set up local typegen for go * feat(typegen): create go table structs * feat(typegen): create go view/matview structs * feat(typegen): create go composite type structs * feat(typegen): go: handle range types * feat(typegen): go: test * feat(typegen): go: format * feat(typegen): separate go types by operation and add nullable types * feat(typegen): go: format * feat(typegen): go: handle empty tables * chore: update snapshot --------- Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Feature
What is the current behaviour?
No Go types
What is the new behaviour?
This PR adds type generation for Go based on the proposal in this discussion.
There's also some cleanup in
server.ts
for local development, which a) crosses off aTODO
comment and b) makes it simpler to extend with new type generators later.Additional context
This PR requires #685 to be merged first and currently contains the changes from that PR. If you're interested in the changes made by this one, I recommend looking at commits
b24e63d
onwards, which mostly touch these files:*/go.ts
server.ts
routes.ts
package.json
Still TODO:
Let me know your feedback or if you'd like any changes :)