-
Notifications
You must be signed in to change notification settings - Fork 1
Add initSQLFilePath option #249
Copy link
Copy link
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requesttestsModifies/adds/removes testsModifies/adds/removes tests
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requesttestsModifies/adds/removes testsModifies/adds/removes tests
Like the
initSQLStringoption, but instead of providing a SQL string, you can provide a file path to a .sql file.The order of operations for the init file that the MySQL Server will use to initialise will be (first - last):
mysql-memory-serverinternal SQL operations (for things like setting user username and creating initial database)initSQLStringoptioninitSQLFilePathoptionIf there is an error reading the
initSQLFilePathfile when a value is provided for that option, an error should be thrown and the database should not be started.