From d9d23a153d03efbbeabbcbd573a6af49db3e0fc1 Mon Sep 17 00:00:00 2001 From: Frederik Creemers Date: Thu, 22 Mar 2018 18:52:20 +0100 Subject: [PATCH] Document the need to use `-tags sqlite` for sqlite support (#39) * Document the need to use `-tags sqlite` for sqlite support * Add explanation of building a project with sqlite support, without bufalo. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1ed63457..40bf4a77 100644 --- a/README.md +++ b/README.md @@ -90,11 +90,22 @@ Pop features CLI support via the `soda` command for the following operations: ### Installing CLI Support +**Without** sqlite 3 support: + ```bash $ go get github.com/gobuffalo/pop/... $ go install github.com/gobuffalo/pop/soda ``` +**with** sqlite 3 support: + +```bash +$ go get -u -v -tags sqlite github.com/gobuffalo/pop/... +$ go install github.com/gobuffalo/pop/soda +``` + +If you're not building your code with `buffalo build`, you'll also have to pass `-tags sqlite` to `go build` when building your program. + ### Creating Databases Assuming you defined a configuration file like that described in the above section you can automatically create those databases using the `soda` command: