Builder package
#1393
Replies: 1 comment
-
Looks like what you're looking for is boilingfactory I created this cause I needed this too. There may be some rough edges, it's been a while since I used it. EDIT: It seems you have your own version of a factory, which also includes randomizing fields by default. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
At our company we are using sqlboiler a lot and it is great.
For our tests, we often needed to generate random struct with random populated data.
Code size growing, and amount of tables as well, I made a code generator that run after the sqlboiler generator, to create a struct with random populated properties.
It is using the builder pattern.
Syntax example :
builder.NewProduct().WithQty(5)
Is it something that would be relevant to propose for the sqlboiler project ? Has such thing been discussed before ?
I'd be happy to contribute should this be desirable.
Beta Was this translation helpful? Give feedback.
All reactions