sqitchers / homebrew-sqitch

Homebrew Formulas for Sqitch
22 stars 10 forks source link

Update Flags in README to Match Respective DB #40

Closed billdybas closed 5 years ago

billdybas commented 5 years ago

I was reading through the README and was a bit confused about some of the flags.

Correct me if I'm wrong, but I think these updates map to what the paragraphs are talking about (ie. you can install w/ SQLite / MySQL but opt out of installing the underlying Homebrew dependency). Was a bit confused how installing with PostgreSQL support would install w/ SQLite / MySQL.

If you combine the --with-<db>-support and --without-<db>, would they do anything other than cancel each other and install Sqitch w/o a db dependency?

Anyways, thanks for maintaining Sqitch!

theory commented 5 years ago

D'oh, pastos, thanks!

Yes, --with-<db>--support is the option to tell the Sqitch installer to build the Perl dependencies it needs to manage <db>. By default, when you do that, most of those Sqitch database engines will then also require other Homebrew packages — Postgres, MySQL, SQLite, libodbc, etc. Some folks don't need those other packages, though. I myself use pgenv to run a slew of Postgres versions, so I don't need the Homebrew Postgres. When I pass --with-postgres-support --without-postgresql, it means "Build Sqitch with support for Postgres, but don't install the Homebrew PostgreSQL package. Now, if I didn't have my own copy of Postgres installed where the Perl installer could find it, the install would fail, because it still wants to build the Perl Postgres database driver.

Does that make sense? Perhaps I ought to explain that a little more in the README.