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
{{ message }}
Repository navigation
Add withInitScripts to the SQL database modules #1574
None of the SQL database modules has a way to run a schema or seed script at startup. Their builder methods are limited to credentials and the database name:
For images with no init directory (SQL Server), it means running the script with exec after start.
Expected
withInitScripts(...paths) on each SQL module, run in the order given, using the image's init directory where there is one and the database's CLI otherwise.
Java has withInitScript and withInitScripts on JdbcDatabaseContainer, shared by every JDBC module. Go has WithInitScripts and WithOrderedInitScripts on postgres and WithScripts on mysql.
Activity