From 04ccd9a190b2d738c90c8e31e8b96dabb05c9c45 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Sun, 21 Feb 2016 14:43:14 +0100 Subject: [PATCH] Bump version 0.4 --- README.md | 13 +++++++++++-- pgfutter.go | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c14ea81..caeec68 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ You can download a single binary for Linux, OSX or Windows. **OSX** ```bash -wget -O pgfutter https://github.com/lukasmartinelli/pgfutter/releases/download/v0.3.2/pgfutter_darwin_amd64 +wget -O pgfutter https://github.com/lukasmartinelli/pgfutter/releases/download/v0.4/pgfutter_darwin_amd64 chmod +x pgfutter ./pgfutter --help @@ -30,7 +30,7 @@ chmod +x pgfutter **Linux** ```bash -wget -O pgfutter https://github.com/lukasmartinelli/pgfutter/releases/download/v0.3.2/pgfutter_linux_amd64 +wget -O pgfutter https://github.com/lukasmartinelli/pgfutter/releases/download/v0.4/pgfutter_linux_amd64 chmod +x pgfutter ./pgfutter --help @@ -229,6 +229,15 @@ This works the same for invalid JSON objects. pgfutter csv --table violations traffic_violations.csv ``` +### Import single JSON object + +Instead of using JSON lines you can also [import a single JSON object](https://github.com/lukasmartinelli/pgfutter/issues/9) +into the database. This will load the JSON document into memory first. + +```bash +pgfutter jsonobj document.json +``` + ## Alternatives For more sophisticated needs you should take a look at [pgloader](http://pgloader.io). diff --git a/pgfutter.go b/pgfutter.go index 43a4779..3441411 100644 --- a/pgfutter.go +++ b/pgfutter.go @@ -30,7 +30,7 @@ func parseTableName(c *cli.Context, filename string) string { func main() { app := cli.NewApp() app.Name = "pgfutter" - app.Version = "0.3.2" + app.Version = "0.4" app.Usage = "Import JSON and CSV into PostgreSQL the easy way" app.Flags = []cli.Flag{ cli.StringFlag{