Skip to content

Commit e684b9d

Browse files
authored
Merge pull request #76 from databendcloud/fix/rename-bend-archiver
fix: rename as bend-archiver
2 parents 269569a + c8ec576 commit e684b9d

File tree

16 files changed

+39
-38
lines changed

16 files changed

+39
-38
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838
cd cmd && \
3939
${{ env.GO_BUILD_ENV }} GOOS=${{ steps.get_matrix.outputs.OS }} GOARCH=${{ steps.get_matrix.outputs.ARCH }} \
4040
go build \
41-
-o _bin/db-archiver/${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}/db-archiver
41+
-o _bin/bend-archiver/${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}/bend-archiver
4242
- name: Compress
4343
run: |
44-
cd cmd/_bin/db-archiver && \
44+
cd cmd/_bin/bend-archiver && \
4545
${{ env.DIST_DIRS }} cp ../../LICENSE {} \; && \
4646
${{ env.DIST_DIRS }} cp ../../README.md {} \; && \
47-
${{ env.DIST_DIRS }} tar -zcf db-archiver-{}-${{ github.ref_name }}.tar.gz {} \; && \
47+
${{ env.DIST_DIRS }} tar -zcf bend-archiver-{}-${{ github.ref_name }}.tar.gz {} \; && \
4848
cd .. && \
49-
sha256sum db-archiver/db-archiver-*-${{ github.ref_name }}.tar.gz >> sha256-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.txt
49+
sha256sum bend-archiver/bend-archiver-*-${{ github.ref_name }}.tar.gz >> sha256-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.txt
5050
- name: Delete existing asset
5151
uses: actions/github-script@v6
5252
with:
@@ -58,7 +58,7 @@ jobs:
5858
repo: context.repo.repo,
5959
tag: '${{ github.ref_name }}'
6060
});
61-
const asset_name = 'db-archiver-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}-${{ github.ref_name }}.tar.gz';
61+
const asset_name = 'bend-archiver-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}-${{ github.ref_name }}.tar.gz';
6262
for (const asset of release.data.assets) {
6363
if (asset.name === asset_name) {
6464
await github.rest.repos.deleteReleaseAsset({
@@ -70,12 +70,12 @@ jobs:
7070
break;
7171
}
7272
}
73-
- name: Upload db-archiver tar.gz
73+
- name: Upload bend-archiver tar.gz
7474
uses: actions/upload-release-asset@v1.0.2
7575
with:
7676
upload_url: ${{ steps.get_release.outputs.upload_url }}
77-
asset_path: cmd/_bin/db-archiver/db-archiver-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}-${{ github.ref_name }}.tar.gz
78-
asset_name: db-archiver-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}-${{ github.ref_name }}.tar.gz
77+
asset_path: cmd/_bin/bend-archiver/bend-archiver-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}-${{ github.ref_name }}.tar.gz
78+
asset_name: bend-archiver-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}-${{ github.ref_name }}.tar.gz
7979
asset_content_type: application/gzip
8080
- name: Post sha256
8181
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# Dependency directories (remove the comment below to include it)
1717
# vendor/
1818
bend-ingest-kafka
19+
cmd/bend-arcihver
1920

2021
front/node_modules
2122
front/.DS_Store

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# db-archiver
1+
# bend-archiver
22
A simple tool to archive databases to Databend.
33

44
## Supported data sources
@@ -14,7 +14,7 @@ A simple tool to archive databases to Databend.
1414

1515

1616
## Installation
17-
Download the binary from [release page](https://github.com/databendcloud/db-archiver/releases) according to your arch.
17+
Download the binary from [release page](https://github.com/databendcloud/bend-archiver/releases) according to your arch.
1818

1919
## Usage
2020

@@ -44,7 +44,7 @@ Config your database and Databend connection in `config/conf.json`:
4444

4545
Run the tool and start your sync:
4646
```bash
47-
./db-archiver -f conf.json
47+
./bend-archiver -f conf.json
4848
```
4949

5050
The log output:

cmd/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import (
1313

1414
"github.com/sirupsen/logrus"
1515

16-
"github.com/databendcloud/db-archiver/config"
17-
"github.com/databendcloud/db-archiver/ingester"
18-
"github.com/databendcloud/db-archiver/source"
19-
"github.com/databendcloud/db-archiver/worker"
16+
"github.com/databendcloud/bend-archiver/config"
17+
"github.com/databendcloud/bend-archiver/ingester"
18+
"github.com/databendcloud/bend-archiver/source"
19+
"github.com/databendcloud/bend-archiver/worker"
2020
)
2121

2222
func main() {

cmd/main_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import (
1414
go_ora "github.com/sijms/go-ora/v2"
1515
"github.com/test-go/testify/assert"
1616

17-
cfg "github.com/databendcloud/db-archiver/config"
18-
"github.com/databendcloud/db-archiver/ingester"
19-
"github.com/databendcloud/db-archiver/source"
20-
"github.com/databendcloud/db-archiver/worker"
17+
cfg "github.com/databendcloud/bend-archiver/config"
18+
"github.com/databendcloud/bend-archiver/ingester"
19+
"github.com/databendcloud/bend-archiver/source"
20+
"github.com/databendcloud/bend-archiver/worker"
2121

2222
_ "github.com/datafuselabs/databend-go"
2323
)

cmd/postgres_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010

1111
"github.com/test-go/testify/assert"
1212

13-
cfg "github.com/databendcloud/db-archiver/config"
14-
"github.com/databendcloud/db-archiver/ingester"
15-
"github.com/databendcloud/db-archiver/source"
16-
"github.com/databendcloud/db-archiver/utils/testutils"
17-
"github.com/databendcloud/db-archiver/worker"
13+
cfg "github.com/databendcloud/bend-archiver/config"
14+
"github.com/databendcloud/bend-archiver/ingester"
15+
"github.com/databendcloud/bend-archiver/source"
16+
"github.com/databendcloud/bend-archiver/utils/testutils"
17+
"github.com/databendcloud/bend-archiver/worker"
1818
)
1919

2020
const testPostgresPort = 15432

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/databendcloud/db-archiver
1+
module github.com/databendcloud/bend-archiver
22

33
go 1.23.0
44

ingester/ingest_databend.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818

1919
godatabend "github.com/datafuselabs/databend-go"
2020

21-
"github.com/databendcloud/db-archiver/config"
22-
"github.com/databendcloud/db-archiver/source"
21+
"github.com/databendcloud/bend-archiver/config"
22+
"github.com/databendcloud/bend-archiver/source"
2323
)
2424

2525
var (

source/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"github.com/sirupsen/logrus"
1414

15-
"github.com/databendcloud/db-archiver/config"
15+
"github.com/databendcloud/bend-archiver/config"
1616
)
1717

1818
type MysqlSource struct {

source/oracle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
_ "github.com/sijms/go-ora/v2"
1616

17-
"github.com/databendcloud/db-archiver/config"
17+
"github.com/databendcloud/bend-archiver/config"
1818
)
1919

2020
type OracleSource struct {

0 commit comments

Comments
 (0)