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
The generated package will define a Seeder struct whose fields control seeding.
115
113
The comments help understand what each field does.
116
114
@@ -178,7 +176,7 @@ seeder.JetsPerPilot = 2
178
176
179
177
### `MinRelsPerXXX`
180
178
181
-
The `MinRelsPerXXX` fields are control how many `many-to-many` relationships are added. In this example, it will **try** to give each Pilot *at least* 3 Languages and each Language *at least* 3 pilots.
179
+
The `MinRelsPerXXX` fields are control how many `many-to-many` relationships are added. In this example, it will **try** to give each Pilot _at least_ 3 Languages and each Language _at least_ 3 pilots.
182
180
183
181
Naturally, if there are more pilots than languages, each language will likely have more than 3 pilots.
The package has `defaultRandomXXX` functions that use `github.com/volatiletech/randomize`. However, for better control you can set custom `RandomXXX` functions. A single function that randomly generates a model.
189
+
The package has `defaultRandomXXX` functions that use `github.com/aarondl/randomize`. However, for better control you can set custom `RandomXXX` functions. A single function that randomly generates a model.
192
190
193
191
The `RandomXXX` functions do not need to add any relationships to the models.
194
192
@@ -322,9 +320,10 @@ CREATE TABLE book_tags (
322
320
The integration tests require:
323
321
324
322
1.**SQLBoiler** - Must be installed and available in your PATH
323
+
325
324
```bash
326
-
go install github.com/volatiletech/sqlboiler/v4@latest
327
-
go install github.com/volatiletech/sqlboiler/v4/drivers/sqlboiler-sqlite3@latest
325
+
go install github.com/aarondl/sqlboiler/v4@latest
326
+
go install github.com/aarondl/sqlboiler/v4/drivers/sqlboiler-sqlite3@latest
328
327
```
329
328
330
329
2.**Go environment** - The tests create temporary Go modules and build executables
@@ -334,6 +333,7 @@ The integration tests require:
334
333
### Test Output
335
334
336
335
The integration tests provide detailed output showing:
336
+
337
337
- Database setup and schema creation
338
338
- SQLBoiler model generation
339
339
- BoilingSeed seeder generation
@@ -342,6 +342,7 @@ The integration tests provide detailed output showing:
0 commit comments