simplebank icon indicating copy to clipboard operation
simplebank copied to clipboard

How can i execute raw sql query ? Can we create table using sqlc ?

Open sirjager opened this issue 2 years ago • 1 comments

How can i execute raw sql query ? Can we create table using sqlc ? I want to create a table dynamically through api .

Is there any way i can execute raw sql query with this series setup ?

sirjager avatar Jul 14 '22 14:07 sirjager

Hi, I think you can run any raw SQL query. You can try it with SQLC to see if it's working or not. Even if it's not working, you can still create your own .go file and write your own Golang code that executes the raw SQL query. (SQLC just helps us write the codes automatically. we can always write the codes on our own if we want).

techschool avatar Jul 14 '22 15:07 techschool