You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it is possible if we can specify which table(s) that we'll be convert into struct.
maybe using flag table ?
and also option to define the generated filename, such as model.go
example 1: tables-to-go -d booking_app -table invoice -of /internal/domain/invoice -o model
--> will create file /internal/domain/invoice/model.go
example 2: tables-to-go -d booking_app -table order -of /internal/domain/order -o model
--> will create file /internal/domain/order/model.go
I think this would allow us to be more selective on generating the struct and saving it into each domain folder with specified filename.
The text was updated successfully, but these errors were encountered:
guhkun13
changed the title
Specify single/multiple table
Specify table(s) and generated filename
Sep 2, 2023
I like the idea to filter by tables via (multiple) -table flags 👍
For the file name we need to decide what behavior we want:
If multiple tables are specified then also multiple file-names (in same order) needs to be specified?
Or we restrict the usage of only one -table flag and one -o flag at the same time?
???
Tbh I would like to keep the scope of the tool small, don't make it more complex as it is already. We can start on the -table flag first before moving on to the file-name output? Because I think these are 2 different new features.
Hi, thanks for great repo.
I wonder if it is possible if we can specify which table(s) that we'll be convert into struct.
maybe using flag
table
?and also option to define the generated filename, such as
model.go
example 1:
tables-to-go -d booking_app -table invoice -of /internal/domain/invoice -o model
--> will create file
/internal/domain/invoice/model.go
example 2:
tables-to-go -d booking_app -table order -of /internal/domain/order -o model
--> will create file
/internal/domain/order/model.go
I think this would allow us to be more selective on generating the struct and saving it into each domain folder with specified filename.
The text was updated successfully, but these errors were encountered: