├── .claude └── skills │ └── testing │ └── SKILL.md ├── .dockerignore ├── .env.example ├── .github ├── CODEOWNERS ├── copilot-instructions.md └── workflows │ ├── docker-publish.yml │ ├── npm-publish.yml │ └── run-tests.yml ├── .gitignore ├── .npmrc ├── .prettierrc.json ├── CLAUDE.md ├── Dockerfile ├── LICENSE ├── README.md ├── bun.lock ├── dbhub.toml.example ├── demo └── employee-sqlite │ ├── employee.sql │ ├── load_department.sql │ ├── load_dept_emp.sql │ ├── load_dept_manager.sql │ ├── load_employee.sql │ ├── load_salary1.sql │ └── load_title.sql ├── docs ├── README.md ├── api-reference │ ├── endpoint │ │ ├── create.mdx │ │ ├── delete.mdx │ │ ├── get.mdx │ │ └── webhook.mdx │ ├── introduction.mdx │ └── openapi.json ├── config │ ├── debug.mdx │ ├── multi-database.mdx │ └── server-options.mdx ├── docs.json ├── favicon.svg ├── images │ ├── claude-desktop.webp │ ├── console.webp │ ├── cursor.webp │ ├── logo │ │ ├── full-dark.svg │ │ ├── full-light.svg │ │ ├── icon.svg │ │ ├── text-dark.svg │ │ └── text-light.svg │ └── mcp-inspector.webp ├── index.mdx ├── installation.mdx ├── integrations │ ├── claude-code.mdx │ ├── claude-desktop.mdx │ ├── codex.mdx │ ├── cursor.mdx │ ├── dify.mdx │ ├── librechat.mdx │ └── vscode.mdx ├── quickstart.mdx └── tools │ ├── custom-tools.mdx │ ├── execute-sql.mdx │ ├── overview.mdx │ └── search-objects.mdx ├── frontend ├── components.json ├── index.html ├── package.json ├── postcss.config.js ├── public │ ├── favicon.svg │ └── logo-full-light.svg ├── src │ ├── App.tsx │ ├── api │ │ ├── errors.ts │ │ ├── requests.ts │ │ └── sources.ts │ ├── assets │ │ └── logos │ │ │ ├── mariadb.svg │ │ │ ├── mysql.svg │ │ │ ├── postgres.svg │ │ │ ├── sqlite.svg │ │ │ └── sqlserver.svg │ ├── components │ │ ├── ErrorBoundary.tsx │ │ ├── Layout.tsx │ │ ├── Sidebar │ │ │ ├── Logo.tsx │ │ │ ├── Sidebar.tsx │ │ │ └── SourceList.tsx │ │ ├── Toast.tsx │ │ ├── icons │ │ │ ├── HelpIcon.tsx │ │ │ ├── HomeIcon.tsx │ │ │ └── LockIcon.tsx │ │ └── views │ │ │ ├── HomeView.tsx │ │ │ ├── NotFoundView.tsx │ │ │ └── SourceDetailView.tsx │ ├── index.css │ ├── lib │ │ └── utils.ts │ ├── main.tsx │ ├── types │ │ ├── datasource.ts │ │ └── request.ts │ └── vite-env.d.ts ├── tailwind.config.ts ├── tsconfig.json └── vite.config.ts ├── package.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── src ├── __fixtures__ │ ├── helpers.ts │ └── toml │ │ ├── multi-sqlite.toml │ │ └── readonly-maxrows.toml ├── __tests__ │ └── json-rpc-integration.test.ts ├── api │ ├── __tests__ │ │ ├── requests.integration.test.ts │ │ └── sources.integration.test.ts │ ├── openapi.d.ts │ ├── openapi.yaml │ ├── requests.ts │ └── sources.ts ├── config │ ├── __tests__ │ │ ├── env.test.ts │ │ ├── ssh-config-integration.test.ts │ │ └── toml-loader.test.ts │ ├── demo-loader.ts │ ├── env.ts │ └── toml-loader.ts ├── connectors │ ├── __tests__ │ │ ├── mariadb.integration.test.ts │ │ ├── multi-sqlite-sources.integration.test.ts │ │ ├── mysql.integration.test.ts │ │ ├── postgres-ssh.integration.test.ts │ │ ├── postgres.integration.test.ts │ │ ├── shared │ │ │ └── integration-test-base.ts │ │ ├── sqlite.integration.test.ts │ │ └── sqlserver.integration.test.ts │ ├── interface.ts │ ├── manager.ts │ ├── mariadb │ │ └── index.ts │ ├── mysql │ │ └── index.ts │ ├── postgres │ │ └── index.ts │ ├── sqlite │ │ └── index.ts │ └── sqlserver │ │ └── index.ts ├── index.ts ├── requests │ ├── __tests__ │ │ └── store.test.ts │ ├── index.ts │ └── store.ts ├── server.ts ├── tools │ ├── __tests__ │ │ ├── custom-tool-handler.test.ts │ │ ├── execute-sql.test.ts │ │ └── search-objects.test.ts │ ├── custom-tool-handler.ts │ ├── custom-tool-registry.ts │ ├── execute-sql.ts │ ├── index.ts │ └── search-objects.ts ├── types │ ├── config.ts │ ├── sql.ts │ └── ssh.ts └── utils │ ├── __tests__ │ ├── allowed-keywords.test.ts │ ├── dsn-obfuscate.test.ts │ ├── identifier-quoter.test.ts │ ├── normalize-id.test.ts │ ├── parameter-mapper.test.ts │ ├── safe-url.test.ts │ ├── sql-parser.test.ts │ ├── sql-row-limiter.test.ts │ ├── ssh-config-parser.test.ts │ └── ssh-tunnel.test.ts │ ├── allowed-keywords.ts │ ├── client-identifier.ts │ ├── dsn-obfuscate.ts │ ├── identifier-quoter.ts │ ├── multi-statement-result-parser.ts │ ├── normalize-id.ts │ ├── parameter-mapper.ts │ ├── response-formatter.ts │ ├── safe-url.ts │ ├── sql-parser.ts │ ├── sql-row-limiter.ts │ ├── ssh-config-parser.ts │ ├── ssh-tunnel.ts │ └── tool-metadata.ts ├── tsconfig.json ├── tsup.config.ts └── vitest.config.ts /.claude/skills/testing/SKILL.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.claude/skills/testing/SKILL.md -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.env.example -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @tianzhou -------------------------------------------------------------------------------- /.github/copilot-instructions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.github/copilot-instructions.md -------------------------------------------------------------------------------- /.github/workflows/docker-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.github/workflows/docker-publish.yml -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.github/workflows/npm-publish.yml -------------------------------------------------------------------------------- /.github/workflows/run-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.github/workflows/run-tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.npmrc -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/README.md -------------------------------------------------------------------------------- /bun.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/bun.lock -------------------------------------------------------------------------------- /dbhub.toml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/dbhub.toml.example -------------------------------------------------------------------------------- /demo/employee-sqlite/employee.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/demo/employee-sqlite/employee.sql -------------------------------------------------------------------------------- /demo/employee-sqlite/load_department.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/demo/employee-sqlite/load_department.sql -------------------------------------------------------------------------------- /demo/employee-sqlite/load_dept_emp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/demo/employee-sqlite/load_dept_emp.sql -------------------------------------------------------------------------------- /demo/employee-sqlite/load_dept_manager.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/demo/employee-sqlite/load_dept_manager.sql -------------------------------------------------------------------------------- /demo/employee-sqlite/load_employee.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/demo/employee-sqlite/load_employee.sql -------------------------------------------------------------------------------- /demo/employee-sqlite/load_salary1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/demo/employee-sqlite/load_salary1.sql -------------------------------------------------------------------------------- /demo/employee-sqlite/load_title.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/demo/employee-sqlite/load_title.sql -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/api-reference/endpoint/create.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/api-reference/endpoint/create.mdx -------------------------------------------------------------------------------- /docs/api-reference/endpoint/delete.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/api-reference/endpoint/delete.mdx -------------------------------------------------------------------------------- /docs/api-reference/endpoint/get.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/api-reference/endpoint/get.mdx -------------------------------------------------------------------------------- /docs/api-reference/endpoint/webhook.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/api-reference/endpoint/webhook.mdx -------------------------------------------------------------------------------- /docs/api-reference/introduction.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/api-reference/introduction.mdx -------------------------------------------------------------------------------- /docs/api-reference/openapi.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/api-reference/openapi.json -------------------------------------------------------------------------------- /docs/config/debug.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/config/debug.mdx -------------------------------------------------------------------------------- /docs/config/multi-database.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/config/multi-database.mdx -------------------------------------------------------------------------------- /docs/config/server-options.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/config/server-options.mdx -------------------------------------------------------------------------------- /docs/docs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/docs.json -------------------------------------------------------------------------------- /docs/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/favicon.svg -------------------------------------------------------------------------------- /docs/images/claude-desktop.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/claude-desktop.webp -------------------------------------------------------------------------------- /docs/images/console.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/console.webp -------------------------------------------------------------------------------- /docs/images/cursor.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/cursor.webp -------------------------------------------------------------------------------- /docs/images/logo/full-dark.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/logo/full-dark.svg -------------------------------------------------------------------------------- /docs/images/logo/full-light.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/logo/full-light.svg -------------------------------------------------------------------------------- /docs/images/logo/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/logo/icon.svg -------------------------------------------------------------------------------- /docs/images/logo/text-dark.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/logo/text-dark.svg -------------------------------------------------------------------------------- /docs/images/logo/text-light.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/logo/text-light.svg -------------------------------------------------------------------------------- /docs/images/mcp-inspector.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/images/mcp-inspector.webp -------------------------------------------------------------------------------- /docs/index.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/index.mdx -------------------------------------------------------------------------------- /docs/installation.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/installation.mdx -------------------------------------------------------------------------------- /docs/integrations/claude-code.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/integrations/claude-code.mdx -------------------------------------------------------------------------------- /docs/integrations/claude-desktop.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/integrations/claude-desktop.mdx -------------------------------------------------------------------------------- /docs/integrations/codex.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/integrations/codex.mdx -------------------------------------------------------------------------------- /docs/integrations/cursor.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/integrations/cursor.mdx -------------------------------------------------------------------------------- /docs/integrations/dify.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/integrations/dify.mdx -------------------------------------------------------------------------------- /docs/integrations/librechat.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/integrations/librechat.mdx -------------------------------------------------------------------------------- /docs/integrations/vscode.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/integrations/vscode.mdx -------------------------------------------------------------------------------- /docs/quickstart.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/quickstart.mdx -------------------------------------------------------------------------------- /docs/tools/custom-tools.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/tools/custom-tools.mdx -------------------------------------------------------------------------------- /docs/tools/execute-sql.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/tools/execute-sql.mdx -------------------------------------------------------------------------------- /docs/tools/overview.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/tools/overview.mdx -------------------------------------------------------------------------------- /docs/tools/search-objects.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/docs/tools/search-objects.mdx -------------------------------------------------------------------------------- /frontend/components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/components.json -------------------------------------------------------------------------------- /frontend/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/index.html -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/postcss.config.js -------------------------------------------------------------------------------- /frontend/public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/public/favicon.svg -------------------------------------------------------------------------------- /frontend/public/logo-full-light.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/public/logo-full-light.svg -------------------------------------------------------------------------------- /frontend/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/App.tsx -------------------------------------------------------------------------------- /frontend/src/api/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/api/errors.ts -------------------------------------------------------------------------------- /frontend/src/api/requests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/api/requests.ts -------------------------------------------------------------------------------- /frontend/src/api/sources.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/api/sources.ts -------------------------------------------------------------------------------- /frontend/src/assets/logos/mariadb.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/assets/logos/mariadb.svg -------------------------------------------------------------------------------- /frontend/src/assets/logos/mysql.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/assets/logos/mysql.svg -------------------------------------------------------------------------------- /frontend/src/assets/logos/postgres.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/assets/logos/postgres.svg -------------------------------------------------------------------------------- /frontend/src/assets/logos/sqlite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/assets/logos/sqlite.svg -------------------------------------------------------------------------------- /frontend/src/assets/logos/sqlserver.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/assets/logos/sqlserver.svg -------------------------------------------------------------------------------- /frontend/src/components/ErrorBoundary.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/ErrorBoundary.tsx -------------------------------------------------------------------------------- /frontend/src/components/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/Layout.tsx -------------------------------------------------------------------------------- /frontend/src/components/Sidebar/Logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/Sidebar/Logo.tsx -------------------------------------------------------------------------------- /frontend/src/components/Sidebar/Sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/Sidebar/Sidebar.tsx -------------------------------------------------------------------------------- /frontend/src/components/Sidebar/SourceList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/Sidebar/SourceList.tsx -------------------------------------------------------------------------------- /frontend/src/components/Toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/Toast.tsx -------------------------------------------------------------------------------- /frontend/src/components/icons/HelpIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/icons/HelpIcon.tsx -------------------------------------------------------------------------------- /frontend/src/components/icons/HomeIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/icons/HomeIcon.tsx -------------------------------------------------------------------------------- /frontend/src/components/icons/LockIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/icons/LockIcon.tsx -------------------------------------------------------------------------------- /frontend/src/components/views/HomeView.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/views/HomeView.tsx -------------------------------------------------------------------------------- /frontend/src/components/views/NotFoundView.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/views/NotFoundView.tsx -------------------------------------------------------------------------------- /frontend/src/components/views/SourceDetailView.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/components/views/SourceDetailView.tsx -------------------------------------------------------------------------------- /frontend/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/index.css -------------------------------------------------------------------------------- /frontend/src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/lib/utils.ts -------------------------------------------------------------------------------- /frontend/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/main.tsx -------------------------------------------------------------------------------- /frontend/src/types/datasource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/types/datasource.ts -------------------------------------------------------------------------------- /frontend/src/types/request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/src/types/request.ts -------------------------------------------------------------------------------- /frontend/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /frontend/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/tailwind.config.ts -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/tsconfig.json -------------------------------------------------------------------------------- /frontend/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/frontend/vite.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /src/__fixtures__/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/__fixtures__/helpers.ts -------------------------------------------------------------------------------- /src/__fixtures__/toml/multi-sqlite.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/__fixtures__/toml/multi-sqlite.toml -------------------------------------------------------------------------------- /src/__fixtures__/toml/readonly-maxrows.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/__fixtures__/toml/readonly-maxrows.toml -------------------------------------------------------------------------------- /src/__tests__/json-rpc-integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/__tests__/json-rpc-integration.test.ts -------------------------------------------------------------------------------- /src/api/__tests__/requests.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/api/__tests__/requests.integration.test.ts -------------------------------------------------------------------------------- /src/api/__tests__/sources.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/api/__tests__/sources.integration.test.ts -------------------------------------------------------------------------------- /src/api/openapi.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/api/openapi.d.ts -------------------------------------------------------------------------------- /src/api/openapi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/api/openapi.yaml -------------------------------------------------------------------------------- /src/api/requests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/api/requests.ts -------------------------------------------------------------------------------- /src/api/sources.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/api/sources.ts -------------------------------------------------------------------------------- /src/config/__tests__/env.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/config/__tests__/env.test.ts -------------------------------------------------------------------------------- /src/config/__tests__/ssh-config-integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/config/__tests__/ssh-config-integration.test.ts -------------------------------------------------------------------------------- /src/config/__tests__/toml-loader.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/config/__tests__/toml-loader.test.ts -------------------------------------------------------------------------------- /src/config/demo-loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/config/demo-loader.ts -------------------------------------------------------------------------------- /src/config/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/config/env.ts -------------------------------------------------------------------------------- /src/config/toml-loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/config/toml-loader.ts -------------------------------------------------------------------------------- /src/connectors/__tests__/mariadb.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/__tests__/mariadb.integration.test.ts -------------------------------------------------------------------------------- /src/connectors/__tests__/multi-sqlite-sources.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/__tests__/multi-sqlite-sources.integration.test.ts -------------------------------------------------------------------------------- /src/connectors/__tests__/mysql.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/__tests__/mysql.integration.test.ts -------------------------------------------------------------------------------- /src/connectors/__tests__/postgres-ssh.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/__tests__/postgres-ssh.integration.test.ts -------------------------------------------------------------------------------- /src/connectors/__tests__/postgres.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/__tests__/postgres.integration.test.ts -------------------------------------------------------------------------------- /src/connectors/__tests__/shared/integration-test-base.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/__tests__/shared/integration-test-base.ts -------------------------------------------------------------------------------- /src/connectors/__tests__/sqlite.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/__tests__/sqlite.integration.test.ts -------------------------------------------------------------------------------- /src/connectors/__tests__/sqlserver.integration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/__tests__/sqlserver.integration.test.ts -------------------------------------------------------------------------------- /src/connectors/interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/interface.ts -------------------------------------------------------------------------------- /src/connectors/manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/manager.ts -------------------------------------------------------------------------------- /src/connectors/mariadb/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/mariadb/index.ts -------------------------------------------------------------------------------- /src/connectors/mysql/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/mysql/index.ts -------------------------------------------------------------------------------- /src/connectors/postgres/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/postgres/index.ts -------------------------------------------------------------------------------- /src/connectors/sqlite/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/sqlite/index.ts -------------------------------------------------------------------------------- /src/connectors/sqlserver/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/connectors/sqlserver/index.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/requests/__tests__/store.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/requests/__tests__/store.test.ts -------------------------------------------------------------------------------- /src/requests/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/requests/index.ts -------------------------------------------------------------------------------- /src/requests/store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/requests/store.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/tools/__tests__/custom-tool-handler.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/tools/__tests__/custom-tool-handler.test.ts -------------------------------------------------------------------------------- /src/tools/__tests__/execute-sql.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/tools/__tests__/execute-sql.test.ts -------------------------------------------------------------------------------- /src/tools/__tests__/search-objects.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/tools/__tests__/search-objects.test.ts -------------------------------------------------------------------------------- /src/tools/custom-tool-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/tools/custom-tool-handler.ts -------------------------------------------------------------------------------- /src/tools/custom-tool-registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/tools/custom-tool-registry.ts -------------------------------------------------------------------------------- /src/tools/execute-sql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/tools/execute-sql.ts -------------------------------------------------------------------------------- /src/tools/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/tools/index.ts -------------------------------------------------------------------------------- /src/tools/search-objects.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/tools/search-objects.ts -------------------------------------------------------------------------------- /src/types/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/types/config.ts -------------------------------------------------------------------------------- /src/types/sql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/types/sql.ts -------------------------------------------------------------------------------- /src/types/ssh.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/types/ssh.ts -------------------------------------------------------------------------------- /src/utils/__tests__/allowed-keywords.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/allowed-keywords.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/dsn-obfuscate.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/dsn-obfuscate.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/identifier-quoter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/identifier-quoter.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/normalize-id.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/normalize-id.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/parameter-mapper.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/parameter-mapper.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/safe-url.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/safe-url.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/sql-parser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/sql-parser.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/sql-row-limiter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/sql-row-limiter.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/ssh-config-parser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/ssh-config-parser.test.ts -------------------------------------------------------------------------------- /src/utils/__tests__/ssh-tunnel.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/__tests__/ssh-tunnel.test.ts -------------------------------------------------------------------------------- /src/utils/allowed-keywords.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/allowed-keywords.ts -------------------------------------------------------------------------------- /src/utils/client-identifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/client-identifier.ts -------------------------------------------------------------------------------- /src/utils/dsn-obfuscate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/dsn-obfuscate.ts -------------------------------------------------------------------------------- /src/utils/identifier-quoter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/identifier-quoter.ts -------------------------------------------------------------------------------- /src/utils/multi-statement-result-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/multi-statement-result-parser.ts -------------------------------------------------------------------------------- /src/utils/normalize-id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/normalize-id.ts -------------------------------------------------------------------------------- /src/utils/parameter-mapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/parameter-mapper.ts -------------------------------------------------------------------------------- /src/utils/response-formatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/response-formatter.ts -------------------------------------------------------------------------------- /src/utils/safe-url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/safe-url.ts -------------------------------------------------------------------------------- /src/utils/sql-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/sql-parser.ts -------------------------------------------------------------------------------- /src/utils/sql-row-limiter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/sql-row-limiter.ts -------------------------------------------------------------------------------- /src/utils/ssh-config-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/ssh-config-parser.ts -------------------------------------------------------------------------------- /src/utils/ssh-tunnel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/ssh-tunnel.ts -------------------------------------------------------------------------------- /src/utils/tool-metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/src/utils/tool-metadata.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbhub/HEAD/vitest.config.ts --------------------------------------------------------------------------------