Files
wehub-resource-sync 75f3dd141c
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CI and Release / lint-frontend (push) Has been cancelled
CI and Release / dockerfile-scan (push) Has been cancelled
CI and Release / test-frontend (push) Has been cancelled
CI and Release / lint-verification-agent (push) Has been cancelled
CI and Release / test-verification-agent (push) Has been cancelled
CI and Release / e2e-verification-agent (push) Has been cancelled
CI and Release / test-backend (push) Has been cancelled
CI and Release / build-dev-image (push) Has been cancelled
CI and Release / push-dev-image (push) Has been cancelled
CI and Release / build-image (push) Has been cancelled
CI and Release / build-verification-image (push) Has been cancelled
CI and Release / determine-version (push) Has been cancelled
CI and Release / push-image (push) Has been cancelled
CI and Release / push-verification-image (12) (push) Has been cancelled
CI and Release / lint-backend (push) Has been cancelled
CI and Release / push-verification-image (17) (push) Has been cancelled
CI and Release / push-verification-image (18) (push) Has been cancelled
CI and Release / release (push) Has been cancelled
CI and Release / publish-helm-chart (push) Has been cancelled
CI and Release / push-verification-image (13) (push) Has been cancelled
CI and Release / push-verification-image (14) (push) Has been cancelled
CI and Release / push-verification-image (15) (push) Has been cancelled
CI and Release / push-verification-image (16) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:11:07 +08:00
..

Pre-built DB client binaries committed to the repo so that local dev, CI, and the Docker image all read from one place. The Go backend resolves them at runtime via runtime.GOOS+runtime.GOARCHassets/tools/<arch-key>/<db>/<db>-<v>/bin/<command>.

Layout (one subtree per arch, identical shape):

assets/tools/<arch>/
  postgresql/postgresql-{12,13,14,15,16,17,18}/bin/
    pg_dump, pg_restore, psql
  mysql/mysql-{5.7,8.0,8.4,9}/bin/
    mysql, mysqldump
  mariadb/mariadb-{10.6,12.1}/bin/
    mariadb, mariadb-dump
  mongodb/bin/
    mongodump, mongorestore

<arch> keys (mapping in backend/internal/util/tools/paths.go):

GOOS / GOARCH key size
linux / amd64 x64 ~160 MB
linux / arm64 arm ~125 MB

Notes:

  • MySQL 5.7 is amd64-only — arm/mysql/mysql-5.7/ is intentionally absent.
  • MariaDB ships two client versions: legacy 10.6 (for MariaDB servers 5.5 / 10.1) and modern 12.1 (for 10.2+). The mapping lives in tools/mariadb.go.
  • MongoDB Database Tools are version 100.16.1 across all arches and are backward-compatible with all supported server versions (4.2 8.2). MongoDB 4.0 is not supported (wire version 7, requires older mongodump).

To refresh a tool set, drop the corresponding bin/ contents in place and commit. There are no install scripts in this directory; binaries are sourced from the upstream vendor downloads.