Skip to content
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: add Postgres module #945

Merged
merged 20 commits into from
Mar 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: reorder
  • Loading branch information
mdelapenya committed Mar 21, 2023
commit 3644753fd6cf40b0e5db7131ba317e7738a026d4
10 changes: 5 additions & 5 deletions docs/modules/postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ If you need to set a different database, and its credentials, you can use the `W
[Set Initial database](../../modules/postgres/postgres_test.go) inside_block:withInitialDatabase
<!--/codeinclude-->

### InitDB arguments

This optional function can be used to send arguments to postgres initdb. The value is a space separated string of arguments as postgres initdb would expect them.
This is useful for adding functionality like data page checksums: `WithInitDBArgs("--data-checksums")`.

### Wait Strategies

Given you could need to wait for different conditions, in particular using a wait.ForSQL strategy,
Expand All @@ -53,8 +58,3 @@ the Postgres container exposes a `WithWaitStrategy` option to set a custom wait
<!--codeinclude-->
[Set Wait Strategy](../../modules/postgres/postgres_test.go) inside_block:withWaitStrategy
<!--/codeinclude-->

### InitDB arguments

This optional function can be used to send arguments to postgres initdb. The value is a space separated string of arguments as postgres initdb would expect them.
This is useful for adding functionality like data page checksums: `WithInitDBArgs("--data-checksums")`.