-
Notifications
You must be signed in to change notification settings - Fork 133
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
[WIP] Support for AutoMigrate SQL #723
Comments
|
Sometimes we need to override existing table if necessary especially when we're in development stage.
|
Update by today,
Example golang struct
will be
|
How will the user use this? |
I revise the function into
therefore user can access dropIfExists parameter to access the feature |
@reski-rukmantiyo after some discussion with the team we have came to a point that at a particular time we don't want to deep dive into all the supported functionalities for SQL CRUD feature but we should first completely implement some basic necessary features and then we will keep updating and upgrading it with next advanced features. For now please refer to below points :
Please work on adding the necessary things first and after that you can raise separate PR's for other advanced features. |
Noted @Umang01-hash , by the end of this week i will separate
While keep
Please confirm |
Sure @reski-rukmantiyo moreover i will suggest let's do the second one first:
and merge it and then you can pick up the first |
To complete about SQL CRUD journey, i think it's better to create similiar like AutoMigrate in Gorm.
The reason is that to make consistent values between golang struct and sql table without manual interference.
The Automigrate function that I propose
Example golang struct
Output of create table SQL statement
Code: #724
Please comments for these features
The text was updated successfully, but these errors were encountered: