From ff01d3e9a5effe9b4f6fec1b8331e72348943267 Mon Sep 17 00:00:00 2001 From: Nicolas Even Date: Tue, 19 Mar 2024 18:40:40 +0100 Subject: [PATCH] Release v0.1.0 --- .github/workflows/build.yml | 20 ++++++++++++++++++-- CHANGELOG.md | 5 +++++ README.md | 4 ++-- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd0ce9b..06ba029 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,10 @@ jobs: name: Build - ${{ matrix.platform.target }} runs-on: ${{ matrix.platform.os }} + # To publish the releases + permissions: + contents: write + strategy: fail-fast: false matrix: @@ -20,15 +24,27 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Build binary uses: houseabsolute/actions-rust-cross@v0 with: target: ${{ matrix.platform.target }} args: "--release" strip: true + - name: Upload binary uses: actions/upload-artifact@v4 with: name: pgextract-${{ matrix.platform.target }} - path: target/${{ matrix.platform.target }}/release/pgextract \ No newline at end of file + path: target/${{ matrix.platform.target }}/release/pgextract + + - run: cp target/${{ matrix.platform.target }}/release/pgextract pgextract-${{ matrix.platform.target }} + + - name: Publish GitHub release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: "pgextract-*" + body_path: CHANGELOG.md + if: startsWith( github.ref, 'refs/tags/v' ) \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..deead9b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +## 0.1.0 - 2024-03-19 + +Initial release + +- Add newline-delimited JSON extract diff --git a/README.md b/README.md index aedf64b..f3d7454 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # pgextract -`pgextract` is a command-line utility to load or extract large or small amounts data from PostgreSQL in various formats. +`pgextract` is a command-line utility that loads or extracts large or small amounts of data from PostgreSQL in various formats. ## Download @@ -20,7 +20,7 @@ Unlike many databases, the `psql` CLI only supports text, csv and proprietary bi ## Performance -Same as psql with quick testing +`pgextract` can do 200MB/s+, and its performance is almost always limited by how fast the PostgreSQL server can stream the data. ## Supported formats