sqlc #83
-
Hello, Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are welcome and thank you for the interest. I find sqlc great to kickstart a project since generates all the structs and methods. But I like to take over it after initial work to have full control. For example both posts and comments have a user, but you cannot reuse the same user model. Or post and timeline item have the same fields but they generate a different model. Etc. |
Beta Was this translation helpful? Give feedback.
You are welcome and thank you for the interest.
I find sqlc great to kickstart a project since generates all the structs and methods. But I like to take over it after initial work to have full control.
Otherwise you spend time fighting the tool and looking up how to do things instead of actually implementing the features.
For example both posts and comments have a user, but you cannot reuse the same user model.
Or post and timeline item have the same fields but they generate a different model.
Etc.