ghetzel / pivot

An extensible database abstraction service, written in Golang.
GNU Lesser General Public License v2.1
66 stars 5 forks source link

Qn: how to run the project #2

Closed bsr203 closed 6 years ago

bsr203 commented 6 years ago

Hi. thanks for this project. I stumbled upon it when looking for an example to use bleve. There are some neat ideas andI like to try it out. running the cli like

go run cli/main.go web
2017/11/12 17:15:01 DEBU[0001] Creating backend for connection string ""
2017/11/12 17:15:01 CRIT[0002] Failed to start server: Unknown backend type ""
exit status 1

gave error. can you please let me know how to run the app with a postgres db.

One minor suggestion. While looking through the code, one thing I found different is lack of early returns and bit hard to follow if else blocks.

please see https://github.com/golang/go/wiki/CodeReviewComments#indent-error-flow

thanks again for providing this library. bsr