├── .cursorignore ├── .env.template ├── .github ├── actions │ └── install-dependencies │ │ └── action.yml └── workflows │ └── ci.yml ├── .gitignore ├── .npmrc ├── .nvmrc ├── .prettierignore ├── .vscode └── settings.json ├── README.md ├── buf.gen.yaml ├── buf.yaml ├── examples ├── _common │ └── env.ts ├── messaging.ts └── vstream.ts ├── package.json ├── pnpm-lock.yaml ├── proto ├── psdb │ ├── data.proto │ ├── psdb.proto │ └── psdbconnect.proto └── vitess │ ├── binlogdata.proto │ ├── query.proto │ ├── topodata.proto │ ├── vtgate.proto │ ├── vtrpc.proto │ └── vttime.proto ├── src ├── PlanetScaleMessagingStream.ts ├── PlanetScaleVStream │ ├── index.ts │ └── parseResponse.ts ├── _common │ └── parseQueryResult │ │ ├── index.ts │ │ ├── parseValue.ts │ │ ├── parseVitessRecord.ts │ │ ├── proto3ToRows.ts │ │ └── queryResultToRecords.ts ├── clients │ ├── createPsdbConnectV1Alpha1Client.ts │ └── createPsdbV1Alpha1DatabaseClient.ts ├── generated │ ├── README.md │ ├── binlogdata_pb.ts │ ├── data_pb.ts │ ├── psdb_connect.ts │ ├── psdb_pb.ts │ ├── psdbconnect_connect.ts │ ├── psdbconnect_pb.ts │ ├── query_pb.ts │ ├── topodata_pb.ts │ ├── vtgate_pb.ts │ ├── vtrpc_pb.ts │ └── vttime_pb.ts └── index.ts ├── tsconfig.build.json ├── tsconfig.json └── vitest.config.ts /.cursorignore: -------------------------------------------------------------------------------- 1 | .env -------------------------------------------------------------------------------- /.env.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/.env.template -------------------------------------------------------------------------------- /.github/actions/install-dependencies/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/.github/actions/install-dependencies/action.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/.npmrc -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 20.17.0 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/.prettierignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/README.md -------------------------------------------------------------------------------- /buf.gen.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/buf.gen.yaml -------------------------------------------------------------------------------- /buf.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/buf.yaml -------------------------------------------------------------------------------- /examples/_common/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/examples/_common/env.ts -------------------------------------------------------------------------------- /examples/messaging.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/examples/messaging.ts -------------------------------------------------------------------------------- /examples/vstream.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/examples/vstream.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /proto/psdb/data.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/psdb/data.proto -------------------------------------------------------------------------------- /proto/psdb/psdb.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/psdb/psdb.proto -------------------------------------------------------------------------------- /proto/psdb/psdbconnect.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/psdb/psdbconnect.proto -------------------------------------------------------------------------------- /proto/vitess/binlogdata.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/vitess/binlogdata.proto -------------------------------------------------------------------------------- /proto/vitess/query.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/vitess/query.proto -------------------------------------------------------------------------------- /proto/vitess/topodata.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/vitess/topodata.proto -------------------------------------------------------------------------------- /proto/vitess/vtgate.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/vitess/vtgate.proto -------------------------------------------------------------------------------- /proto/vitess/vtrpc.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/vitess/vtrpc.proto -------------------------------------------------------------------------------- /proto/vitess/vttime.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/proto/vitess/vttime.proto -------------------------------------------------------------------------------- /src/PlanetScaleMessagingStream.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/PlanetScaleMessagingStream.ts -------------------------------------------------------------------------------- /src/PlanetScaleVStream/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/PlanetScaleVStream/index.ts -------------------------------------------------------------------------------- /src/PlanetScaleVStream/parseResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/PlanetScaleVStream/parseResponse.ts -------------------------------------------------------------------------------- /src/_common/parseQueryResult/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/_common/parseQueryResult/index.ts -------------------------------------------------------------------------------- /src/_common/parseQueryResult/parseValue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/_common/parseQueryResult/parseValue.ts -------------------------------------------------------------------------------- /src/_common/parseQueryResult/parseVitessRecord.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/_common/parseQueryResult/parseVitessRecord.ts -------------------------------------------------------------------------------- /src/_common/parseQueryResult/proto3ToRows.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/_common/parseQueryResult/proto3ToRows.ts -------------------------------------------------------------------------------- /src/_common/parseQueryResult/queryResultToRecords.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/_common/parseQueryResult/queryResultToRecords.ts -------------------------------------------------------------------------------- /src/clients/createPsdbConnectV1Alpha1Client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/clients/createPsdbConnectV1Alpha1Client.ts -------------------------------------------------------------------------------- /src/clients/createPsdbV1Alpha1DatabaseClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/clients/createPsdbV1Alpha1DatabaseClient.ts -------------------------------------------------------------------------------- /src/generated/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/README.md -------------------------------------------------------------------------------- /src/generated/binlogdata_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/binlogdata_pb.ts -------------------------------------------------------------------------------- /src/generated/data_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/data_pb.ts -------------------------------------------------------------------------------- /src/generated/psdb_connect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/psdb_connect.ts -------------------------------------------------------------------------------- /src/generated/psdb_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/psdb_pb.ts -------------------------------------------------------------------------------- /src/generated/psdbconnect_connect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/psdbconnect_connect.ts -------------------------------------------------------------------------------- /src/generated/psdbconnect_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/psdbconnect_pb.ts -------------------------------------------------------------------------------- /src/generated/query_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/query_pb.ts -------------------------------------------------------------------------------- /src/generated/topodata_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/topodata_pb.ts -------------------------------------------------------------------------------- /src/generated/vtgate_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/vtgate_pb.ts -------------------------------------------------------------------------------- /src/generated/vtrpc_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/vtrpc_pb.ts -------------------------------------------------------------------------------- /src/generated/vttime_pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/generated/vttime_pb.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/src/index.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrao/planetscale-stream-ts/HEAD/vitest.config.ts --------------------------------------------------------------------------------