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
Copy file name to clipboardExpand all lines: readme.md
+1
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ Drop your CSV into */database/seeds/csvs/your_csv.csv* or whatever path you spec
51
51
52
52
In addition to setting the database table and CSV filename, the following configuration options are available. They can be set in your class constructor:
53
53
54
+
-`connection` (string '') Connection to use for inserts. Leave empty for default connection.
54
55
-`insert_chunk_size` (int 500) An SQL insert statement will trigger every `insert_chunk_size` number of rows while reading the CSV
55
56
-`csv_delimiter` (string ,) The CSV field delimiter.
56
57
-`hashable` (array [password]) List of fields to be hashed before import, useful if you are importing users and need their passwords hashed. Uses `Hash::make()`. Note: This is EXTREMELY SLOW. If you have a lot of rows in your CSV your import will take quite a long time.
0 commit comments