├── .github └── workflows │ ├── nextjs_bundle_analysis.yml │ └── schedule.yml ├── .gitignore ├── .golangci.yaml ├── .pre-commit-config.yaml ├── .prettierrc ├── .vscode ├── extensions.json └── settings.json ├── CODEOWNERS ├── LICENSE ├── README.md ├── client ├── apiExample │ ├── aliyun.json │ ├── aws.json │ └── gcp.json ├── aws │ ├── aws.go │ ├── aws_mock.go │ ├── aws_test.go │ └── region-code.json ├── client.go └── gcp │ ├── gcp.go │ └── gcp_test.go ├── data ├── dbInstance.json └── sample.json ├── frontend ├── .eslintrc.json ├── .gitignore ├── .npmrc ├── components │ ├── ButtonGroup.tsx │ ├── CompareBadgeGroup.tsx │ ├── CompareMenu.tsx │ ├── CompareTable.tsx │ ├── Footer.tsx │ ├── Header.tsx │ ├── Icon.tsx │ ├── LineChart.tsx │ ├── RegionMenu.tsx │ ├── RegionPricingTable.tsx │ ├── RelatedTable.tsx │ ├── SearchMenu.tsx │ ├── TdCell.tsx │ └── primitives │ │ └── Tooltip.tsx ├── layouts │ └── main.tsx ├── next-sitemap.config.js ├── next.config.js ├── package.json ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── compare │ │ └── [comparison].tsx │ ├── index.tsx │ ├── instance │ │ └── [instance].tsx │ ├── provider │ │ └── [provider] │ │ │ ├── engine │ │ │ └── [engine].tsx │ │ │ └── index.tsx │ └── region │ │ └── [region].tsx ├── pnpm-lock.yaml ├── postcss.config.js ├── public │ ├── .gitignore │ ├── favicon.ico │ ├── fonts │ │ └── xkcd.ttf │ ├── icons │ │ ├── bytebase-cncf.svg │ │ ├── db-mysql.png │ │ ├── db-oracle.png │ │ ├── db-postgres.png │ │ ├── db-sqlserver.png │ │ ├── dbcost-logo-full.webp │ │ ├── provider-aws.png │ │ └── provider-gcp.png │ ├── mysql-vs-pg.webp │ ├── sqlchat.webp │ └── star-history.webp ├── stores │ ├── dbInstanceContext.tsx │ ├── index.ts │ └── searchConfigContext.tsx ├── styles │ └── globals.css ├── tailwind.config.js ├── tsconfig.json ├── types │ ├── common │ │ ├── chart.ts │ │ ├── common.ts │ │ ├── id.ts │ │ └── index.ts │ ├── dbInstance.ts │ ├── index.ts │ ├── region.ts │ ├── route.ts │ ├── searchConfig.ts │ ├── table.ts │ └── term.ts └── utils │ ├── assets.ts │ ├── compare.ts │ ├── config.ts │ ├── index.ts │ ├── instance.ts │ ├── price.ts │ ├── region.ts │ └── table.ts ├── go.mod ├── go.sum ├── seed └── main.go └── store ├── common.go ├── contributor.go ├── db_instance.go └── db_instance_test.go /.github/workflows/nextjs_bundle_analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/.github/workflows/nextjs_bundle_analysis.yml -------------------------------------------------------------------------------- /.github/workflows/schedule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/.github/workflows/schedule.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/.golangci.yaml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/README.md -------------------------------------------------------------------------------- /client/apiExample/aliyun.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/apiExample/aliyun.json -------------------------------------------------------------------------------- /client/apiExample/aws.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/apiExample/aws.json -------------------------------------------------------------------------------- /client/apiExample/gcp.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/apiExample/gcp.json -------------------------------------------------------------------------------- /client/aws/aws.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/aws/aws.go -------------------------------------------------------------------------------- /client/aws/aws_mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/aws/aws_mock.go -------------------------------------------------------------------------------- /client/aws/aws_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/aws/aws_test.go -------------------------------------------------------------------------------- /client/aws/region-code.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/aws/region-code.json -------------------------------------------------------------------------------- /client/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/client.go -------------------------------------------------------------------------------- /client/gcp/gcp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/gcp/gcp.go -------------------------------------------------------------------------------- /client/gcp/gcp_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/client/gcp/gcp_test.go -------------------------------------------------------------------------------- /data/dbInstance.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/data/dbInstance.json -------------------------------------------------------------------------------- /data/sample.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/data/sample.json -------------------------------------------------------------------------------- /frontend/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/.eslintrc.json -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/.gitignore -------------------------------------------------------------------------------- /frontend/.npmrc: -------------------------------------------------------------------------------- 1 | auto-install-peers=true -------------------------------------------------------------------------------- /frontend/components/ButtonGroup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/ButtonGroup.tsx -------------------------------------------------------------------------------- /frontend/components/CompareBadgeGroup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/CompareBadgeGroup.tsx -------------------------------------------------------------------------------- /frontend/components/CompareMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/CompareMenu.tsx -------------------------------------------------------------------------------- /frontend/components/CompareTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/CompareTable.tsx -------------------------------------------------------------------------------- /frontend/components/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/Footer.tsx -------------------------------------------------------------------------------- /frontend/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/Header.tsx -------------------------------------------------------------------------------- /frontend/components/Icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/Icon.tsx -------------------------------------------------------------------------------- /frontend/components/LineChart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/LineChart.tsx -------------------------------------------------------------------------------- /frontend/components/RegionMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/RegionMenu.tsx -------------------------------------------------------------------------------- /frontend/components/RegionPricingTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/RegionPricingTable.tsx -------------------------------------------------------------------------------- /frontend/components/RelatedTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/RelatedTable.tsx -------------------------------------------------------------------------------- /frontend/components/SearchMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/SearchMenu.tsx -------------------------------------------------------------------------------- /frontend/components/TdCell.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/TdCell.tsx -------------------------------------------------------------------------------- /frontend/components/primitives/Tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/components/primitives/Tooltip.tsx -------------------------------------------------------------------------------- /frontend/layouts/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/layouts/main.tsx -------------------------------------------------------------------------------- /frontend/next-sitemap.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/next-sitemap.config.js -------------------------------------------------------------------------------- /frontend/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/next.config.js -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pages/_app.tsx -------------------------------------------------------------------------------- /frontend/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pages/_document.tsx -------------------------------------------------------------------------------- /frontend/pages/compare/[comparison].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pages/compare/[comparison].tsx -------------------------------------------------------------------------------- /frontend/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pages/index.tsx -------------------------------------------------------------------------------- /frontend/pages/instance/[instance].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pages/instance/[instance].tsx -------------------------------------------------------------------------------- /frontend/pages/provider/[provider]/engine/[engine].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pages/provider/[provider]/engine/[engine].tsx -------------------------------------------------------------------------------- /frontend/pages/provider/[provider]/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pages/provider/[provider]/index.tsx -------------------------------------------------------------------------------- /frontend/pages/region/[region].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pages/region/[region].tsx -------------------------------------------------------------------------------- /frontend/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/pnpm-lock.yaml -------------------------------------------------------------------------------- /frontend/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/postcss.config.js -------------------------------------------------------------------------------- /frontend/public/.gitignore: -------------------------------------------------------------------------------- 1 | robots.txt 2 | sitemap*.xml 3 | -------------------------------------------------------------------------------- /frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/favicon.ico -------------------------------------------------------------------------------- /frontend/public/fonts/xkcd.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/fonts/xkcd.ttf -------------------------------------------------------------------------------- /frontend/public/icons/bytebase-cncf.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/icons/bytebase-cncf.svg -------------------------------------------------------------------------------- /frontend/public/icons/db-mysql.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/icons/db-mysql.png -------------------------------------------------------------------------------- /frontend/public/icons/db-oracle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/icons/db-oracle.png -------------------------------------------------------------------------------- /frontend/public/icons/db-postgres.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/icons/db-postgres.png -------------------------------------------------------------------------------- /frontend/public/icons/db-sqlserver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/icons/db-sqlserver.png -------------------------------------------------------------------------------- /frontend/public/icons/dbcost-logo-full.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/icons/dbcost-logo-full.webp -------------------------------------------------------------------------------- /frontend/public/icons/provider-aws.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/icons/provider-aws.png -------------------------------------------------------------------------------- /frontend/public/icons/provider-gcp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/icons/provider-gcp.png -------------------------------------------------------------------------------- /frontend/public/mysql-vs-pg.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/mysql-vs-pg.webp -------------------------------------------------------------------------------- /frontend/public/sqlchat.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/sqlchat.webp -------------------------------------------------------------------------------- /frontend/public/star-history.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/public/star-history.webp -------------------------------------------------------------------------------- /frontend/stores/dbInstanceContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/stores/dbInstanceContext.tsx -------------------------------------------------------------------------------- /frontend/stores/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/stores/index.ts -------------------------------------------------------------------------------- /frontend/stores/searchConfigContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/stores/searchConfigContext.tsx -------------------------------------------------------------------------------- /frontend/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/styles/globals.css -------------------------------------------------------------------------------- /frontend/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/tailwind.config.js -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/tsconfig.json -------------------------------------------------------------------------------- /frontend/types/common/chart.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/common/chart.ts -------------------------------------------------------------------------------- /frontend/types/common/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/common/common.ts -------------------------------------------------------------------------------- /frontend/types/common/id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/common/id.ts -------------------------------------------------------------------------------- /frontend/types/common/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/common/index.ts -------------------------------------------------------------------------------- /frontend/types/dbInstance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/dbInstance.ts -------------------------------------------------------------------------------- /frontend/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/index.ts -------------------------------------------------------------------------------- /frontend/types/region.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/region.ts -------------------------------------------------------------------------------- /frontend/types/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/route.ts -------------------------------------------------------------------------------- /frontend/types/searchConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/searchConfig.ts -------------------------------------------------------------------------------- /frontend/types/table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/table.ts -------------------------------------------------------------------------------- /frontend/types/term.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/types/term.ts -------------------------------------------------------------------------------- /frontend/utils/assets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/utils/assets.ts -------------------------------------------------------------------------------- /frontend/utils/compare.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/utils/compare.ts -------------------------------------------------------------------------------- /frontend/utils/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/utils/config.ts -------------------------------------------------------------------------------- /frontend/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/utils/index.ts -------------------------------------------------------------------------------- /frontend/utils/instance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/utils/instance.ts -------------------------------------------------------------------------------- /frontend/utils/price.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/utils/price.ts -------------------------------------------------------------------------------- /frontend/utils/region.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/utils/region.ts -------------------------------------------------------------------------------- /frontend/utils/table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/frontend/utils/table.ts -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/go.sum -------------------------------------------------------------------------------- /seed/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/seed/main.go -------------------------------------------------------------------------------- /store/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/store/common.go -------------------------------------------------------------------------------- /store/contributor.go: -------------------------------------------------------------------------------- 1 | package store 2 | 3 | const SYSTEM_BOT = 0 4 | -------------------------------------------------------------------------------- /store/db_instance.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/store/db_instance.go -------------------------------------------------------------------------------- /store/db_instance_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytebase/dbcost/HEAD/store/db_instance_test.go --------------------------------------------------------------------------------