> I heard about SQLc a lot, but my question is how can I use it to manage 
my database schemas with it, is it event possible?

sqlc works with a bunch of different migration tools:
https://docs.sqlc.dev/en/latest/howto/ddl.html#handling-sql-migrations

The one called "tern" is postgres-specific but from the same person who 
wrote pgx
https://github.com/jackc/tern

> Also, I found that when I run raw queries my JSON columns come as some 
weird hash, what am I missing here?

Can you give an example?

On Sunday, 22 December 2024 at 13:45:23 UTC Bhavesh Kothari wrote:

> Hello everyone,
> I'm new to go and have to work on a project from scratch.
> I looked into for various resources and learnt golang, also selected gin 
> as my project framework and pgx as my post-gres driver.
>
> Now I'm looking out for guidance on how I can manage my database schemas 
> for this project.
> I know about ORMs but go community avoid them.
> I heard about SQLc a lot, but my question is how can I use it to manage my 
> database schemas with it, is it event possible? Like If I add new column in 
> database or rename one how will it get synced to in codebase and will I 
> have to update all of my queries manually?
> Also, I found that when I run raw queries my JSON columns come as some 
> weird hash, what am I missing here?
>
> If possible, I would be more than happy if I can connect with someone who 
> is into golang for years and can provide expert advice over teams or meet 
> call.
>
> Thank You.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/33f642d8-c456-4738-80b1-fe65ae5d0d58n%40googlegroups.com.

Reply via email to