Skip to content

Conversation

bearsh
Copy link
Contributor

@bearsh bearsh commented Feb 25, 2021

closes: #18

@fergusstrange
Copy link
Owner

All in all looks like a good start!

Couple of comments to look into and we should try to support back to GoLang 1.13 where possible.

I'm not 100% sure about checking the PG_VERSION file. You may need to include this coverage in the platform-tests in order to confirm that the logic works across all previous supported versions of Postgres. I think it does but no harm adding coverage.

Thanks!

@bearsh bearsh force-pushed the feature/dataPath branch 2 times, most recently from a23dd09 to ca261c5 Compare March 1, 2021 08:35

// Start will try to start the configured Postgres process returning an error when there were any problems with invocation.
// If any error occurs Start will try to also Stop the Postgres process in order to not leave any sub-process running.
//nolint:funlen
Copy link
Owner

@fergusstrange fergusstrange Mar 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to avoid this but I'll tidy up in a later commit.

@fergusstrange
Copy link
Owner

Looks great.

Be awesome if we could avoid dropping coverage but I will resolve this when I run back over and relint all the code in an upcoming release.

One last thing before I merge. Could you add some sort of documentation to the README.md and perhaps an example in examples directory.

Will aim to merge as soon as these are complete!

Thanks

bearsh added 4 commits March 2, 2021 09:57
- config: add field and setter for db data path
- do not delete/reinit db data dir if path is set
- data dir must exist and the pg (major) version
  must match used postgres version
@bearsh bearsh force-pushed the feature/dataPath branch from ca261c5 to e122d15 Compare March 2, 2021 08:58
@bearsh
Copy link
Contributor Author

bearsh commented Mar 2, 2021

One last thing before I merge. Could you add some sort of documentation to the README.md and perhaps an example in examples directory.

I've added a paragraph to the README.md, an example would have to wait, sorry...

@bearsh bearsh force-pushed the feature/dataPath branch from e122d15 to 8617807 Compare March 2, 2021 09:07
@fergusstrange
Copy link
Owner

One last thing before I merge. Could you add some sort of documentation to the README.md and perhaps an example in examples directory.

I've added a paragraph to the README.md, an example would have to wait, sorry...

Great.

Feel free to open a second PR with this, it would definitely be helpful to our users.

@fergusstrange fergusstrange merged commit e846ac4 into fergusstrange:master Mar 2, 2021
@bearsh bearsh deleted the feature/dataPath branch March 2, 2021 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better support for using as application database

2 participants