-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement with_init_sql
for Postgres
, Mysql
and Mariadb
#182
Conversation
Thank you for the contribution! ❤️ |
Now it's possible with image.with_copy_to(
"/docker-entrypoint-initdb.d/init.sql",
include_bytes!("initdb.sql").to_vec(),
) Which I found simple enough. |
Yea that definitely cleans things up a ton. Thanks 🙏 => This PR might take a few weeks before I can actually invest the time it deserves |
3204048
to
1b443b2
Compare
Postgres::with_init_sql
Self::with_init_sql
9565042
to
c8cb10a
Compare
b23effe
to
506c529
Compare
Self::with_init_sql
Self::with_init_sql
Self::with_init_sql
Self::with_init_sql
for postgres
, mysql
and mariadb
Self::with_init_sql
for postgres
, mysql
and mariadb
Postgres::with_init_sql
, Mysql::with_init_sql
and and
Mariadb::with_init_sql`
Postgres::with_init_sql
, Mysql::with_init_sql
and and
Mariadb::with_init_sql`Postgres::with_init_sql
, Mysql::with_init_sql
and Mariadb::with_init_sql
Postgres::with_init_sql
, Mysql::with_init_sql
and Mariadb::with_init_sql
with_init_sql
for Postgres
, Mysql
and Mariadb
## 🤖 New release * `testcontainers-modules`: 0.11.0 -> 0.11.1 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.11.1] - 2024-09-26 ### Documentation - Disallow missing docs on crate level and allow where necessary ([#222](#222)) ### Features - Implement `with_init_sql` for `Postgres`, `Mysql` and `Mariadb` ([#182](#182)) - Tls certs and ldif file ([#217](#217)) <!-- generated by git-cliff --> </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/MarcoIeni/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Resolves #164
The implementation is a bit hacky, am open to better approaches or other feedback ^^The implementation is pretty straigtforeward and similar to #217