From be8bec59c12eabb92aac0728410f95a44ee869d7 Mon Sep 17 00:00:00 2001
From: Ben King <9087625+benfdking@users.noreply.github.com>
Date: Mon, 22 Apr 2024 16:12:01 +0100
Subject: [PATCH] feat: moving to open source first
---
.github/workflows/pr.yml | 48 +-
.github/workflows/release.yml | 2 +-
.gitignore | 4 +
.idea/quary.iml | 3 +
buf.gen.yaml | 13 -
.../quary/service/v1/cli_rpc_calls_connect.ts | 71 -
.../es/quary/service/v1/cli_rpc_calls_pb.ts | 431 -
.../quary/service/v1/column_description_pb.ts | 57 -
.../quary/service/v1/connection_config_pb.ts | 447 -
proto/gen/es/quary/service/v1/file_pb.ts | 90 -
proto/gen/es/quary/service/v1/position_pb.ts | 53 -
.../gen/es/quary/service/v1/project_dag_pb.ts | 140 -
.../es/quary/service/v1/project_file_pb.ts | 487 -
proto/gen/es/quary/service/v1/project_pb.ts | 84 -
.../es/quary/service/v1/query_result_pb.ts | 96 -
proto/gen/es/quary/service/v1/range_pb.ts | 54 -
.../es/quary/service/v1/table_address_pb.ts | 53 -
proto/gen/es/quary/service/v1/table_pb.ts | 473 -
.../gen/es/quary/service/v1/test_result_pb.ts | 315 -
.../es/quary/service/v1/test_results_pb.ts | 49 -
.../gen/es/quary/service/v1/test_runner_pb.ts | 37 -
proto/gen/es/quary/service/v1/types_pb.ts | 1205 ---
proto/gen/json_schema/ColumnDescription.json | 25 -
proto/gen/json_schema/ColumnTest.json | 22 -
proto/gen/json_schema/ConnectionConfig.json | 151 -
proto/gen/json_schema/DatabaseSource.json | 26 -
proto/gen/json_schema/Edge.json | 19 -
proto/gen/json_schema/ExecRequest.json | 16 -
proto/gen/json_schema/ExecResponse.json | 11 -
proto/gen/json_schema/Failed.json | 98 -
proto/gen/json_schema/FailedRunResults.json | 50 -
proto/gen/json_schema/File.json | 22 -
proto/gen/json_schema/FileSystem.json | 36 -
proto/gen/json_schema/InferredChain.json | 19 -
.../InferredChainWithOperation.json | 22 -
proto/gen/json_schema/ListColumnsRequest.json | 16 -
.../gen/json_schema/ListColumnsResponse.json | 19 -
proto/gen/json_schema/ListSourcesRequest.json | 11 -
.../gen/json_schema/ListSourcesResponse.json | 107 -
proto/gen/json_schema/ListTablesRequest.json | 11 -
proto/gen/json_schema/ListTablesResponse.json | 33 -
proto/gen/json_schema/ListViewsRequest.json | 11 -
proto/gen/json_schema/ListViewsResponse.json | 33 -
proto/gen/json_schema/Model.json | 61 -
proto/gen/json_schema/ModelTest.json | 22 -
proto/gen/json_schema/Node.json | 19 -
proto/gen/json_schema/Passed.json | 59 -
proto/gen/json_schema/Position.json | 20 -
proto/gen/json_schema/Project.json | 844 --
proto/gen/json_schema/ProjectDag.json | 52 -
proto/gen/json_schema/ProjectFile.json | 203 -
proto/gen/json_schema/ProjectFileColumn.json | 42 -
proto/gen/json_schema/ProjectFileSource.json | 94 -
proto/gen/json_schema/QueryRequest.json | 16 -
proto/gen/json_schema/QueryResponse.json | 50 -
proto/gen/json_schema/QueryResult.json | 39 -
proto/gen/json_schema/QueryResultColumn.json | 25 -
proto/gen/json_schema/Range.json | 36 -
proto/gen/json_schema/Row.json | 116 -
proto/gen/json_schema/RowDescription.json | 44 -
proto/gen/json_schema/RowTest.json | 57 -
proto/gen/json_schema/RowTestDetails.json | 37 -
proto/gen/json_schema/Seed.json | 22 -
proto/gen/json_schema/Snapshot.json | 67 -
proto/gen/json_schema/Source.json | 52 -
proto/gen/json_schema/Table.json | 179 -
proto/gen/json_schema/TableAddress.json | 20 -
proto/gen/json_schema/Test.json | 271 -
proto/gen/json_schema/TestAcceptedValues.json | 31 -
proto/gen/json_schema/TestGreaterThan.json | 28 -
.../json_schema/TestGreaterThanOrEqual.json | 28 -
proto/gen/json_schema/TestLessThan.json | 28 -
.../gen/json_schema/TestLessThanOrEqual.json | 28 -
.../json_schema/TestMultiColumnUnique.json | 28 -
proto/gen/json_schema/TestNotNull.json | 25 -
proto/gen/json_schema/TestRelationship.json | 34 -
proto/gen/json_schema/TestResult.json | 144 -
proto/gen/json_schema/TestResults.json | 158 -
proto/gen/json_schema/TestRunner.json | 20 -
proto/gen/json_schema/TestSQLFile.json | 22 -
proto/gen/json_schema/TestUnique.json | 25 -
proto/gen/json_schema/Var.json | 19 -
proto/gen/rust/Cargo.toml | 14 -
proto/gen/rust/src/lib.rs | 3124 ------
proto/gen/rust/src/quary.service.v1.serde.rs | 9562 -----------------
proto/gen/ts/google/protobuf/empty.ts | 72 -
.../gen/ts/quary/service/v1/cli_rpc_calls.ts | 783 --
.../ts/quary/service/v1/column_description.ts | 135 -
.../ts/quary/service/v1/connection_config.ts | 965 --
proto/gen/ts/quary/service/v1/file.ts | 310 -
proto/gen/ts/quary/service/v1/position.ts | 120 -
proto/gen/ts/quary/service/v1/project.ts | 816 --
proto/gen/ts/quary/service/v1/project_dag.ts | 278 -
proto/gen/ts/quary/service/v1/project_file.ts | 1175 --
proto/gen/ts/quary/service/v1/query_result.ts | 199 -
proto/gen/ts/quary/service/v1/range.ts | 104 -
proto/gen/ts/quary/service/v1/table.ts | 1042 --
.../gen/ts/quary/service/v1/table_address.ts | 120 -
proto/gen/ts/quary/service/v1/test_result.ts | 672 --
proto/gen/ts/quary/service/v1/test_results.ts | 102 -
proto/gen/ts/quary/service/v1/test_runner.ts | 44 -
proto/gen/ts/quary/service/v1/types.ts | 2590 -----
102 files changed, 40 insertions(+), 30222 deletions(-)
delete mode 100644 proto/gen/es/quary/service/v1/cli_rpc_calls_connect.ts
delete mode 100644 proto/gen/es/quary/service/v1/cli_rpc_calls_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/column_description_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/connection_config_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/file_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/position_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/project_dag_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/project_file_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/project_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/query_result_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/range_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/table_address_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/table_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/test_result_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/test_results_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/test_runner_pb.ts
delete mode 100644 proto/gen/es/quary/service/v1/types_pb.ts
delete mode 100644 proto/gen/json_schema/ColumnDescription.json
delete mode 100644 proto/gen/json_schema/ColumnTest.json
delete mode 100644 proto/gen/json_schema/ConnectionConfig.json
delete mode 100644 proto/gen/json_schema/DatabaseSource.json
delete mode 100644 proto/gen/json_schema/Edge.json
delete mode 100644 proto/gen/json_schema/ExecRequest.json
delete mode 100644 proto/gen/json_schema/ExecResponse.json
delete mode 100644 proto/gen/json_schema/Failed.json
delete mode 100644 proto/gen/json_schema/FailedRunResults.json
delete mode 100644 proto/gen/json_schema/File.json
delete mode 100644 proto/gen/json_schema/FileSystem.json
delete mode 100644 proto/gen/json_schema/InferredChain.json
delete mode 100644 proto/gen/json_schema/InferredChainWithOperation.json
delete mode 100644 proto/gen/json_schema/ListColumnsRequest.json
delete mode 100644 proto/gen/json_schema/ListColumnsResponse.json
delete mode 100644 proto/gen/json_schema/ListSourcesRequest.json
delete mode 100644 proto/gen/json_schema/ListSourcesResponse.json
delete mode 100644 proto/gen/json_schema/ListTablesRequest.json
delete mode 100644 proto/gen/json_schema/ListTablesResponse.json
delete mode 100644 proto/gen/json_schema/ListViewsRequest.json
delete mode 100644 proto/gen/json_schema/ListViewsResponse.json
delete mode 100644 proto/gen/json_schema/Model.json
delete mode 100644 proto/gen/json_schema/ModelTest.json
delete mode 100644 proto/gen/json_schema/Node.json
delete mode 100644 proto/gen/json_schema/Passed.json
delete mode 100644 proto/gen/json_schema/Position.json
delete mode 100644 proto/gen/json_schema/Project.json
delete mode 100644 proto/gen/json_schema/ProjectDag.json
delete mode 100644 proto/gen/json_schema/ProjectFile.json
delete mode 100644 proto/gen/json_schema/ProjectFileColumn.json
delete mode 100644 proto/gen/json_schema/ProjectFileSource.json
delete mode 100644 proto/gen/json_schema/QueryRequest.json
delete mode 100644 proto/gen/json_schema/QueryResponse.json
delete mode 100644 proto/gen/json_schema/QueryResult.json
delete mode 100644 proto/gen/json_schema/QueryResultColumn.json
delete mode 100644 proto/gen/json_schema/Range.json
delete mode 100644 proto/gen/json_schema/Row.json
delete mode 100644 proto/gen/json_schema/RowDescription.json
delete mode 100644 proto/gen/json_schema/RowTest.json
delete mode 100644 proto/gen/json_schema/RowTestDetails.json
delete mode 100644 proto/gen/json_schema/Seed.json
delete mode 100644 proto/gen/json_schema/Snapshot.json
delete mode 100644 proto/gen/json_schema/Source.json
delete mode 100644 proto/gen/json_schema/Table.json
delete mode 100644 proto/gen/json_schema/TableAddress.json
delete mode 100644 proto/gen/json_schema/Test.json
delete mode 100644 proto/gen/json_schema/TestAcceptedValues.json
delete mode 100644 proto/gen/json_schema/TestGreaterThan.json
delete mode 100644 proto/gen/json_schema/TestGreaterThanOrEqual.json
delete mode 100644 proto/gen/json_schema/TestLessThan.json
delete mode 100644 proto/gen/json_schema/TestLessThanOrEqual.json
delete mode 100644 proto/gen/json_schema/TestMultiColumnUnique.json
delete mode 100644 proto/gen/json_schema/TestNotNull.json
delete mode 100644 proto/gen/json_schema/TestRelationship.json
delete mode 100644 proto/gen/json_schema/TestResult.json
delete mode 100644 proto/gen/json_schema/TestResults.json
delete mode 100644 proto/gen/json_schema/TestRunner.json
delete mode 100644 proto/gen/json_schema/TestSQLFile.json
delete mode 100644 proto/gen/json_schema/TestUnique.json
delete mode 100644 proto/gen/json_schema/Var.json
delete mode 100644 proto/gen/rust/Cargo.toml
delete mode 100644 proto/gen/rust/src/lib.rs
delete mode 100644 proto/gen/rust/src/quary.service.v1.serde.rs
delete mode 100644 proto/gen/ts/google/protobuf/empty.ts
delete mode 100644 proto/gen/ts/quary/service/v1/cli_rpc_calls.ts
delete mode 100644 proto/gen/ts/quary/service/v1/column_description.ts
delete mode 100644 proto/gen/ts/quary/service/v1/connection_config.ts
delete mode 100644 proto/gen/ts/quary/service/v1/file.ts
delete mode 100644 proto/gen/ts/quary/service/v1/position.ts
delete mode 100644 proto/gen/ts/quary/service/v1/project.ts
delete mode 100644 proto/gen/ts/quary/service/v1/project_dag.ts
delete mode 100644 proto/gen/ts/quary/service/v1/project_file.ts
delete mode 100644 proto/gen/ts/quary/service/v1/query_result.ts
delete mode 100644 proto/gen/ts/quary/service/v1/range.ts
delete mode 100644 proto/gen/ts/quary/service/v1/table.ts
delete mode 100644 proto/gen/ts/quary/service/v1/table_address.ts
delete mode 100644 proto/gen/ts/quary/service/v1/test_result.ts
delete mode 100644 proto/gen/ts/quary/service/v1/test_results.ts
delete mode 100644 proto/gen/ts/quary/service/v1/test_runner.ts
delete mode 100644 proto/gen/ts/quary/service/v1/types.ts
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 650c8720..e114b062 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -10,20 +10,35 @@ concurrency:
env:
CARGO_INCREMENTAL: 0
jobs:
+ github-actions-ratchet-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
+ - name: Set up Go
+ uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # ratchet:actions/setup-go@v4
+ - name: Install ratchet
+ run: go install github.com/sethvargo/ratchet@latest
+ - name: Ratchet Check
+ run: make ratchet_check
rust-lint:
name: Rust Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
+ uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
+ - name: Set up Homebrew
+ id: set-up-homebrew
+ uses: Homebrew/actions/setup-homebrew@35cdeaf60df48fb1fb7eac25fea4ebde1f72fc46 # ratchet:Homebrew/actions/setup-homebrew@master
+ - name: Install buf
+ run: brew install bufbuild/buf/buf
+ - run: make proto
- name: Run cargo fmt
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # ratchet:actions-rs/cargo@v1
with:
@@ -33,25 +48,21 @@ jobs:
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # ratchet:actions-rs/cargo@v1
with:
command: clippy
- github-actions-ratchet-check:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
- - name: Set up Go
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # ratchet:actions/setup-go@v4
- - name: Install ratchet
- run: go install github.com/sethvargo/ratchet@latest
- - name: Ratchet Check
- run: make ratchet_check
rust-test:
name: Rust Test
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
+ - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
+ - name: Set up Homebrew
+ id: set-up-homebrew
+ uses: Homebrew/actions/setup-homebrew@35cdeaf60df48fb1fb7eac25fea4ebde1f72fc46 # ratchet:Homebrew/actions/setup-homebrew@master
+ - name: Install buf
+ run: brew install bufbuild/buf/buf
+ - run: make proto
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # ratchet:actions-rs/cargo@v1
with:
@@ -60,8 +71,7 @@ jobs:
name: Rust Build
runs-on: ubuntu-latest
steps:
- - name: Checkout sources
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
+ - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
@@ -73,13 +83,19 @@ jobs:
- uses: taiki-e/cache-cargo-install-action@e57d133d3c2bc6196d57ce056266ea53dd4feb6d # ratchet:taiki-e/cache-cargo-install-action@v1
with:
tool: wasm-bindgen-cli
+ - name: Set up Homebrew
+ id: set-up-homebrew
+ uses: Homebrew/actions/setup-homebrew@35cdeaf60df48fb1fb7eac25fea4ebde1f72fc46 # ratchet:Homebrew/actions/setup-homebrew@master
+ - name: Install buf
+ run: brew install bufbuild/buf/buf
+ - run: make proto
- name: Check CI scripts
run: make rust_build
sqlfluff-template:
name: Lint template with SQLFluff
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
+ - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Install SQLFluff
run: pip install sqlfluff
- name: Lint template
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 841e769d..6b4fe514 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
+ uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # ratchet:actions/checkout@v4
- name: Fetch Release Assets
id: fetch-assets
uses: actions/github-script@211cb3fefb35a799baa5156f9321bb774fe56294 # ratchet:actions/github-script@v5
diff --git a/.gitignore b/.gitignore
index 58b3c17f..6909be02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,7 @@
+# Generated proto
+
+proto/gen
+
# Terrraform
auth_details.tf
diff --git a/.idea/quary.iml b/.idea/quary.iml
index 7e656f2e..70e4b9f6 100644
--- a/.idea/quary.iml
+++ b/.idea/quary.iml
@@ -9,6 +9,9 @@
+
+
+
diff --git a/buf.gen.yaml b/buf.gen.yaml
index cb39986e..6102a483 100644
--- a/buf.gen.yaml
+++ b/buf.gen.yaml
@@ -1,10 +1,5 @@
version: v1
plugins:
- - plugin: buf.build/community/stephenh-ts-proto
- out: proto/gen/ts
- opt:
- - oneof=unions
- - globalThisPolyfill=true
- out: proto/gen/rust/src
plugin: buf.build/community/neoeinstein-prost
opt:
@@ -16,11 +11,3 @@ plugins:
out: proto/gen/rust/src
- out: proto/gen/json_schema
plugin: buf.build/community/chrusty-jsonschema
- - plugin: buf.build/bufbuild/connect-es
- out: proto/gen/es
- opt:
- - target=ts
- - plugin: buf.build/bufbuild/es
- out: proto/gen/es
- opt:
- - target=ts
diff --git a/proto/gen/es/quary/service/v1/cli_rpc_calls_connect.ts b/proto/gen/es/quary/service/v1/cli_rpc_calls_connect.ts
deleted file mode 100644
index 97474cb8..00000000
--- a/proto/gen/es/quary/service/v1/cli_rpc_calls_connect.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-// @generated by protoc-gen-connect-es v0.13.0 with parameter "target=ts"
-// @generated from file quary/service/v1/cli_rpc_calls.proto (package quary.service.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import { ExecRequest, ExecResponse, ListColumnsRequest, ListColumnsResponse, ListSourcesRequest, ListSourcesResponse, ListTablesRequest, ListTablesResponse, ListViewsRequest, ListViewsResponse, QueryRequest, QueryResponse } from "./cli_rpc_calls_pb.js";
-import { MethodKind } from "@bufbuild/protobuf";
-
-/**
- * @generated from service quary.service.v1.CLIRPCService
- */
-export const CLIRPCService = {
- typeName: "quary.service.v1.CLIRPCService",
- methods: {
- /**
- * @generated from rpc quary.service.v1.CLIRPCService.ListTables
- */
- listTables: {
- name: "ListTables",
- I: ListTablesRequest,
- O: ListTablesResponse,
- kind: MethodKind.Unary,
- },
- /**
- * @generated from rpc quary.service.v1.CLIRPCService.ListViews
- */
- listViews: {
- name: "ListViews",
- I: ListViewsRequest,
- O: ListViewsResponse,
- kind: MethodKind.Unary,
- },
- /**
- * @generated from rpc quary.service.v1.CLIRPCService.Exec
- */
- exec: {
- name: "Exec",
- I: ExecRequest,
- O: ExecResponse,
- kind: MethodKind.Unary,
- },
- /**
- * @generated from rpc quary.service.v1.CLIRPCService.Query
- */
- query: {
- name: "Query",
- I: QueryRequest,
- O: QueryResponse,
- kind: MethodKind.Unary,
- },
- /**
- * @generated from rpc quary.service.v1.CLIRPCService.ListColumns
- */
- listColumns: {
- name: "ListColumns",
- I: ListColumnsRequest,
- O: ListColumnsResponse,
- kind: MethodKind.Unary,
- },
- /**
- * @generated from rpc quary.service.v1.CLIRPCService.ListSources
- */
- listSources: {
- name: "ListSources",
- I: ListSourcesRequest,
- O: ListSourcesResponse,
- kind: MethodKind.Unary,
- },
- }
-} as const;
-
diff --git a/proto/gen/es/quary/service/v1/cli_rpc_calls_pb.ts b/proto/gen/es/quary/service/v1/cli_rpc_calls_pb.ts
deleted file mode 100644
index 9b96fcc8..00000000
--- a/proto/gen/es/quary/service/v1/cli_rpc_calls_pb.ts
+++ /dev/null
@@ -1,431 +0,0 @@
-// @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
-// @generated from file quary/service/v1/cli_rpc_calls.proto (package quary.service.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-import { TableAddress } from "./table_address_pb.js";
-import { QueryResult } from "./query_result_pb.js";
-import { ProjectFileSource } from "./project_file_pb.js";
-
-/**
- * @generated from message quary.service.v1.ListTablesRequest
- */
-export class ListTablesRequest extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ListTablesRequest";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ListTablesRequest {
- return new ListTablesRequest().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ListTablesRequest {
- return new ListTablesRequest().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ListTablesRequest {
- return new ListTablesRequest().fromJsonString(jsonString, options);
- }
-
- static equals(a: ListTablesRequest | PlainMessage | undefined, b: ListTablesRequest | PlainMessage | undefined): boolean {
- return proto3.util.equals(ListTablesRequest, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ListTablesResponse
- */
-export class ListTablesResponse extends Message {
- /**
- * @generated from field: repeated quary.service.v1.TableAddress tables = 1;
- */
- tables: TableAddress[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ListTablesResponse";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "tables", kind: "message", T: TableAddress, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ListTablesResponse {
- return new ListTablesResponse().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ListTablesResponse {
- return new ListTablesResponse().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ListTablesResponse {
- return new ListTablesResponse().fromJsonString(jsonString, options);
- }
-
- static equals(a: ListTablesResponse | PlainMessage | undefined, b: ListTablesResponse | PlainMessage | undefined): boolean {
- return proto3.util.equals(ListTablesResponse, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ListViewsRequest
- */
-export class ListViewsRequest extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ListViewsRequest";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ListViewsRequest {
- return new ListViewsRequest().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ListViewsRequest {
- return new ListViewsRequest().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ListViewsRequest {
- return new ListViewsRequest().fromJsonString(jsonString, options);
- }
-
- static equals(a: ListViewsRequest | PlainMessage | undefined, b: ListViewsRequest | PlainMessage | undefined): boolean {
- return proto3.util.equals(ListViewsRequest, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ListViewsResponse
- */
-export class ListViewsResponse extends Message {
- /**
- * @generated from field: repeated quary.service.v1.TableAddress views = 1;
- */
- views: TableAddress[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ListViewsResponse";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "views", kind: "message", T: TableAddress, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ListViewsResponse {
- return new ListViewsResponse().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ListViewsResponse {
- return new ListViewsResponse().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ListViewsResponse {
- return new ListViewsResponse().fromJsonString(jsonString, options);
- }
-
- static equals(a: ListViewsResponse | PlainMessage | undefined, b: ListViewsResponse | PlainMessage | undefined): boolean {
- return proto3.util.equals(ListViewsResponse, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ExecRequest
- */
-export class ExecRequest extends Message {
- /**
- * @generated from field: string query = 1;
- */
- query = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ExecRequest";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ExecRequest {
- return new ExecRequest().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ExecRequest {
- return new ExecRequest().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ExecRequest {
- return new ExecRequest().fromJsonString(jsonString, options);
- }
-
- static equals(a: ExecRequest | PlainMessage | undefined, b: ExecRequest | PlainMessage | undefined): boolean {
- return proto3.util.equals(ExecRequest, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ExecResponse
- */
-export class ExecResponse extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ExecResponse";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ExecResponse {
- return new ExecResponse().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ExecResponse {
- return new ExecResponse().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ExecResponse {
- return new ExecResponse().fromJsonString(jsonString, options);
- }
-
- static equals(a: ExecResponse | PlainMessage | undefined, b: ExecResponse | PlainMessage | undefined): boolean {
- return proto3.util.equals(ExecResponse, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.QueryRequest
- */
-export class QueryRequest extends Message {
- /**
- * @generated from field: string query = 1;
- */
- query = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.QueryRequest";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest {
- return new QueryRequest().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest {
- return new QueryRequest().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): QueryRequest {
- return new QueryRequest().fromJsonString(jsonString, options);
- }
-
- static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean {
- return proto3.util.equals(QueryRequest, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.QueryResponse
- */
-export class QueryResponse extends Message {
- /**
- * @generated from field: quary.service.v1.QueryResult result = 1;
- */
- result?: QueryResult;
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.QueryResponse";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "result", kind: "message", T: QueryResult },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): QueryResponse {
- return new QueryResponse().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): QueryResponse {
- return new QueryResponse().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): QueryResponse {
- return new QueryResponse().fromJsonString(jsonString, options);
- }
-
- static equals(a: QueryResponse | PlainMessage | undefined, b: QueryResponse | PlainMessage | undefined): boolean {
- return proto3.util.equals(QueryResponse, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ListColumnsRequest
- */
-export class ListColumnsRequest extends Message {
- /**
- * @generated from field: string table_name = 1;
- */
- tableName = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ListColumnsRequest";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "table_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ListColumnsRequest {
- return new ListColumnsRequest().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ListColumnsRequest {
- return new ListColumnsRequest().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ListColumnsRequest {
- return new ListColumnsRequest().fromJsonString(jsonString, options);
- }
-
- static equals(a: ListColumnsRequest | PlainMessage | undefined, b: ListColumnsRequest | PlainMessage | undefined): boolean {
- return proto3.util.equals(ListColumnsRequest, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ListColumnsResponse
- */
-export class ListColumnsResponse extends Message {
- /**
- * @generated from field: repeated string columns = 1;
- */
- columns: string[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ListColumnsResponse";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "columns", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ListColumnsResponse {
- return new ListColumnsResponse().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ListColumnsResponse {
- return new ListColumnsResponse().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ListColumnsResponse {
- return new ListColumnsResponse().fromJsonString(jsonString, options);
- }
-
- static equals(a: ListColumnsResponse | PlainMessage | undefined, b: ListColumnsResponse | PlainMessage | undefined): boolean {
- return proto3.util.equals(ListColumnsResponse, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ListSourcesRequest
- */
-export class ListSourcesRequest extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ListSourcesRequest";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ListSourcesRequest {
- return new ListSourcesRequest().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ListSourcesRequest {
- return new ListSourcesRequest().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ListSourcesRequest {
- return new ListSourcesRequest().fromJsonString(jsonString, options);
- }
-
- static equals(a: ListSourcesRequest | PlainMessage | undefined, b: ListSourcesRequest | PlainMessage | undefined): boolean {
- return proto3.util.equals(ListSourcesRequest, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ListSourcesResponse
- */
-export class ListSourcesResponse extends Message {
- /**
- * @generated from field: repeated quary.service.v1.ProjectFileSource sources = 1;
- */
- sources: ProjectFileSource[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ListSourcesResponse";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "sources", kind: "message", T: ProjectFileSource, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ListSourcesResponse {
- return new ListSourcesResponse().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ListSourcesResponse {
- return new ListSourcesResponse().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ListSourcesResponse {
- return new ListSourcesResponse().fromJsonString(jsonString, options);
- }
-
- static equals(a: ListSourcesResponse | PlainMessage | undefined, b: ListSourcesResponse | PlainMessage | undefined): boolean {
- return proto3.util.equals(ListSourcesResponse, a, b);
- }
-}
-
diff --git a/proto/gen/es/quary/service/v1/column_description_pb.ts b/proto/gen/es/quary/service/v1/column_description_pb.ts
deleted file mode 100644
index 72be8406..00000000
--- a/proto/gen/es/quary/service/v1/column_description_pb.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-// @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
-// @generated from file quary/service/v1/column_description.proto (package quary.service.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-
-/**
- * @generated from message quary.service.v1.ColumnDescription
- */
-export class ColumnDescription extends Message {
- /**
- * @generated from field: string name = 1;
- */
- name = "";
-
- /**
- * @generated from field: optional string description = 2;
- */
- description?: string;
-
- /**
- * @generated from field: repeated string tests = 3;
- */
- tests: string[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ColumnDescription";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 3, name: "tests", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ColumnDescription {
- return new ColumnDescription().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ColumnDescription {
- return new ColumnDescription().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ColumnDescription {
- return new ColumnDescription().fromJsonString(jsonString, options);
- }
-
- static equals(a: ColumnDescription | PlainMessage | undefined, b: ColumnDescription | PlainMessage | undefined): boolean {
- return proto3.util.equals(ColumnDescription, a, b);
- }
-}
-
diff --git a/proto/gen/es/quary/service/v1/connection_config_pb.ts b/proto/gen/es/quary/service/v1/connection_config_pb.ts
deleted file mode 100644
index a12afcce..00000000
--- a/proto/gen/es/quary/service/v1/connection_config_pb.ts
+++ /dev/null
@@ -1,447 +0,0 @@
-// @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
-// @generated from file quary/service/v1/connection_config.proto (package quary.service.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-
-/**
- * @generated from message quary.service.v1.Var
- */
-export class Var extends Message {
- /**
- * @generated from field: string name = 1;
- */
- name = "";
-
- /**
- * @generated from field: string value = 2;
- */
- value = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.Var";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Var {
- return new Var().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Var {
- return new Var().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): Var {
- return new Var().fromJsonString(jsonString, options);
- }
-
- static equals(a: Var | PlainMessage | undefined, b: Var | PlainMessage | undefined): boolean {
- return proto3.util.equals(Var, a, b);
- }
-}
-
-/**
- * Configuration describes the configuration of the project.
- *
- * @generated from message quary.service.v1.ConnectionConfig
- */
-export class ConnectionConfig extends Message {
- /**
- * @generated from oneof quary.service.v1.ConnectionConfig.config
- */
- config: {
- /**
- * @generated from field: quary.service.v1.ConnectionConfig.ConnectionConfigDuckDB duckdb = 1;
- */
- value: ConnectionConfig_ConnectionConfigDuckDB;
- case: "duckdb";
- } | {
- /**
- * @generated from field: quary.service.v1.ConnectionConfig.ConnectionConfigDuckDBInMemory duckdb_in_memory = 2;
- */
- value: ConnectionConfig_ConnectionConfigDuckDBInMemory;
- case: "duckdbInMemory";
- } | {
- /**
- * @generated from field: quary.service.v1.ConnectionConfig.ConnectionConfigSqLite sqlite = 3;
- */
- value: ConnectionConfig_ConnectionConfigSqLite;
- case: "sqlite";
- } | {
- /**
- * @generated from field: quary.service.v1.ConnectionConfig.ConnectionConfigSqLiteInMemory sqlite_in_memory = 4;
- */
- value: ConnectionConfig_ConnectionConfigSqLiteInMemory;
- case: "sqliteInMemory";
- } | {
- /**
- * @generated from field: quary.service.v1.ConnectionConfig.ConnectionConfigBigQuery big_query = 5;
- */
- value: ConnectionConfig_ConnectionConfigBigQuery;
- case: "bigQuery";
- } | {
- /**
- * @generated from field: quary.service.v1.ConnectionConfig.ConnectionConfigSnowflake snowflake = 6;
- */
- value: ConnectionConfig_ConnectionConfigSnowflake;
- case: "snowflake";
- } | {
- /**
- * @generated from field: quary.service.v1.ConnectionConfig.ConnectionConfigPostgres postgres = 7;
- */
- value: ConnectionConfig_ConnectionConfigPostgres;
- case: "postgres";
- } | { case: undefined; value?: undefined } = { case: undefined };
-
- /**
- * @generated from field: repeated quary.service.v1.Var vars = 8;
- */
- vars: Var[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ConnectionConfig";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "duckdb", kind: "message", T: ConnectionConfig_ConnectionConfigDuckDB, oneof: "config" },
- { no: 2, name: "duckdb_in_memory", kind: "message", T: ConnectionConfig_ConnectionConfigDuckDBInMemory, oneof: "config" },
- { no: 3, name: "sqlite", kind: "message", T: ConnectionConfig_ConnectionConfigSqLite, oneof: "config" },
- { no: 4, name: "sqlite_in_memory", kind: "message", T: ConnectionConfig_ConnectionConfigSqLiteInMemory, oneof: "config" },
- { no: 5, name: "big_query", kind: "message", T: ConnectionConfig_ConnectionConfigBigQuery, oneof: "config" },
- { no: 6, name: "snowflake", kind: "message", T: ConnectionConfig_ConnectionConfigSnowflake, oneof: "config" },
- { no: 7, name: "postgres", kind: "message", T: ConnectionConfig_ConnectionConfigPostgres, oneof: "config" },
- { no: 8, name: "vars", kind: "message", T: Var, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionConfig {
- return new ConnectionConfig().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionConfig {
- return new ConnectionConfig().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConnectionConfig {
- return new ConnectionConfig().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConnectionConfig | PlainMessage | undefined, b: ConnectionConfig | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConnectionConfig, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ConnectionConfig.ConnectionConfigSqLite
- */
-export class ConnectionConfig_ConnectionConfigSqLite extends Message {
- /**
- * @generated from field: string path = 1;
- */
- path = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ConnectionConfig.ConnectionConfigSqLite";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionConfig_ConnectionConfigSqLite {
- return new ConnectionConfig_ConnectionConfigSqLite().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionConfig_ConnectionConfigSqLite {
- return new ConnectionConfig_ConnectionConfigSqLite().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConnectionConfig_ConnectionConfigSqLite {
- return new ConnectionConfig_ConnectionConfigSqLite().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConnectionConfig_ConnectionConfigSqLite | PlainMessage | undefined, b: ConnectionConfig_ConnectionConfigSqLite | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConnectionConfig_ConnectionConfigSqLite, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ConnectionConfig.ConnectionConfigSqLiteInMemory
- */
-export class ConnectionConfig_ConnectionConfigSqLiteInMemory extends Message {
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ConnectionConfig.ConnectionConfigSqLiteInMemory";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionConfig_ConnectionConfigSqLiteInMemory {
- return new ConnectionConfig_ConnectionConfigSqLiteInMemory().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionConfig_ConnectionConfigSqLiteInMemory {
- return new ConnectionConfig_ConnectionConfigSqLiteInMemory().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConnectionConfig_ConnectionConfigSqLiteInMemory {
- return new ConnectionConfig_ConnectionConfigSqLiteInMemory().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConnectionConfig_ConnectionConfigSqLiteInMemory | PlainMessage | undefined, b: ConnectionConfig_ConnectionConfigSqLiteInMemory | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConnectionConfig_ConnectionConfigSqLiteInMemory, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ConnectionConfig.ConnectionConfigDuckDB
- */
-export class ConnectionConfig_ConnectionConfigDuckDB extends Message {
- /**
- * @generated from field: string path = 1;
- */
- path = "";
-
- /**
- * @generated from field: optional string schema = 2;
- */
- schema?: string;
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ConnectionConfig.ConnectionConfigDuckDB";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionConfig_ConnectionConfigDuckDB {
- return new ConnectionConfig_ConnectionConfigDuckDB().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionConfig_ConnectionConfigDuckDB {
- return new ConnectionConfig_ConnectionConfigDuckDB().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConnectionConfig_ConnectionConfigDuckDB {
- return new ConnectionConfig_ConnectionConfigDuckDB().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConnectionConfig_ConnectionConfigDuckDB | PlainMessage | undefined, b: ConnectionConfig_ConnectionConfigDuckDB | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConnectionConfig_ConnectionConfigDuckDB, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ConnectionConfig.ConnectionConfigDuckDBInMemory
- */
-export class ConnectionConfig_ConnectionConfigDuckDBInMemory extends Message {
- /**
- * @generated from field: optional string schema = 1;
- */
- schema?: string;
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ConnectionConfig.ConnectionConfigDuckDBInMemory";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionConfig_ConnectionConfigDuckDBInMemory {
- return new ConnectionConfig_ConnectionConfigDuckDBInMemory().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionConfig_ConnectionConfigDuckDBInMemory {
- return new ConnectionConfig_ConnectionConfigDuckDBInMemory().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConnectionConfig_ConnectionConfigDuckDBInMemory {
- return new ConnectionConfig_ConnectionConfigDuckDBInMemory().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConnectionConfig_ConnectionConfigDuckDBInMemory | PlainMessage | undefined, b: ConnectionConfig_ConnectionConfigDuckDBInMemory | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConnectionConfig_ConnectionConfigDuckDBInMemory, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ConnectionConfig.ConnectionConfigPostgres
- */
-export class ConnectionConfig_ConnectionConfigPostgres extends Message {
- /**
- * @generated from field: string schema = 1;
- */
- schema = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ConnectionConfig.ConnectionConfigPostgres";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionConfig_ConnectionConfigPostgres {
- return new ConnectionConfig_ConnectionConfigPostgres().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionConfig_ConnectionConfigPostgres {
- return new ConnectionConfig_ConnectionConfigPostgres().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConnectionConfig_ConnectionConfigPostgres {
- return new ConnectionConfig_ConnectionConfigPostgres().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConnectionConfig_ConnectionConfigPostgres | PlainMessage | undefined, b: ConnectionConfig_ConnectionConfigPostgres | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConnectionConfig_ConnectionConfigPostgres, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ConnectionConfig.ConnectionConfigBigQuery
- */
-export class ConnectionConfig_ConnectionConfigBigQuery extends Message {
- /**
- * @generated from field: string project_id = 1;
- */
- projectId = "";
-
- /**
- * @generated from field: string dataset_id = 2;
- */
- datasetId = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ConnectionConfig.ConnectionConfigBigQuery";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "dataset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionConfig_ConnectionConfigBigQuery {
- return new ConnectionConfig_ConnectionConfigBigQuery().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionConfig_ConnectionConfigBigQuery {
- return new ConnectionConfig_ConnectionConfigBigQuery().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConnectionConfig_ConnectionConfigBigQuery {
- return new ConnectionConfig_ConnectionConfigBigQuery().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConnectionConfig_ConnectionConfigBigQuery | PlainMessage | undefined, b: ConnectionConfig_ConnectionConfigBigQuery | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConnectionConfig_ConnectionConfigBigQuery, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ConnectionConfig.ConnectionConfigSnowflake
- */
-export class ConnectionConfig_ConnectionConfigSnowflake extends Message {
- /**
- * @generated from field: string account_url = 1;
- */
- accountUrl = "";
-
- /**
- * @generated from field: string client_id = 2;
- */
- clientId = "";
-
- /**
- * @generated from field: string client_secret = 3;
- */
- clientSecret = "";
-
- /**
- * TODO: think about making optional
- *
- * @generated from field: string role = 4;
- */
- role = "";
-
- /**
- * @generated from field: string database = 5;
- */
- database = "";
-
- /**
- * @generated from field: string schema = 6;
- */
- schema = "";
-
- /**
- * @generated from field: string warehouse = 7;
- */
- warehouse = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ConnectionConfig.ConnectionConfigSnowflake";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "account_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 3, name: "client_secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 4, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 5, name: "database", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 6, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 7, name: "warehouse", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionConfig_ConnectionConfigSnowflake {
- return new ConnectionConfig_ConnectionConfigSnowflake().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionConfig_ConnectionConfigSnowflake {
- return new ConnectionConfig_ConnectionConfigSnowflake().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ConnectionConfig_ConnectionConfigSnowflake {
- return new ConnectionConfig_ConnectionConfigSnowflake().fromJsonString(jsonString, options);
- }
-
- static equals(a: ConnectionConfig_ConnectionConfigSnowflake | PlainMessage | undefined, b: ConnectionConfig_ConnectionConfigSnowflake | PlainMessage | undefined): boolean {
- return proto3.util.equals(ConnectionConfig_ConnectionConfigSnowflake, a, b);
- }
-}
-
diff --git a/proto/gen/es/quary/service/v1/file_pb.ts b/proto/gen/es/quary/service/v1/file_pb.ts
deleted file mode 100644
index be21ea7f..00000000
--- a/proto/gen/es/quary/service/v1/file_pb.ts
+++ /dev/null
@@ -1,90 +0,0 @@
-// @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
-// @generated from file quary/service/v1/file.proto (package quary.service.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-
-/**
- * @generated from message quary.service.v1.File
- */
-export class File extends Message {
- /**
- * The name of the file. Names are relative to the root of the file system.
- *
- * @generated from field: string name = 1;
- */
- name = "";
-
- /**
- * @generated from field: bytes contents = 2;
- */
- contents = new Uint8Array(0);
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.File";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "contents", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): File {
- return new File().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): File {
- return new File().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): File {
- return new File().fromJsonString(jsonString, options);
- }
-
- static equals(a: File | PlainMessage | undefined, b: File | PlainMessage | undefined): boolean {
- return proto3.util.equals(File, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.FileSystem
- */
-export class FileSystem extends Message {
- /**
- * @generated from field: map files = 1;
- */
- files: { [key: string]: File } = {};
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.FileSystem";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "files", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: File} },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): FileSystem {
- return new FileSystem().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): FileSystem {
- return new FileSystem().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): FileSystem {
- return new FileSystem().fromJsonString(jsonString, options);
- }
-
- static equals(a: FileSystem | PlainMessage | undefined, b: FileSystem | PlainMessage | undefined): boolean {
- return proto3.util.equals(FileSystem, a, b);
- }
-}
-
diff --git a/proto/gen/es/quary/service/v1/position_pb.ts b/proto/gen/es/quary/service/v1/position_pb.ts
deleted file mode 100644
index 88eed9b2..00000000
--- a/proto/gen/es/quary/service/v1/position_pb.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-// @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
-// @generated from file quary/service/v1/position.proto (package quary.service.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-
-/**
- * Position is a simple representation of a line and character position in a file.
- *
- * @generated from message quary.service.v1.Position
- */
-export class Position extends Message {
- /**
- * @generated from field: uint32 line = 1;
- */
- line = 0;
-
- /**
- * @generated from field: uint32 character = 2;
- */
- character = 0;
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.Position";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "line", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
- { no: 2, name: "character", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Position {
- return new Position().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Position {
- return new Position().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): Position {
- return new Position().fromJsonString(jsonString, options);
- }
-
- static equals(a: Position | PlainMessage | undefined, b: Position | PlainMessage | undefined): boolean {
- return proto3.util.equals(Position, a, b);
- }
-}
-
diff --git a/proto/gen/es/quary/service/v1/project_dag_pb.ts b/proto/gen/es/quary/service/v1/project_dag_pb.ts
deleted file mode 100644
index 8301c0e9..00000000
--- a/proto/gen/es/quary/service/v1/project_dag_pb.ts
+++ /dev/null
@@ -1,140 +0,0 @@
-// @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
-// @generated from file quary/service/v1/project_dag.proto (package quary.service.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-
-/**
- * DirectedAcyclicGraph represents a directed acyclic graph that is used to visualize the project dependencies in a
- * project.
- *
- * @generated from message quary.service.v1.ProjectDag
- */
-export class ProjectDag extends Message {
- /**
- * @generated from field: repeated quary.service.v1.Node nodes = 1;
- */
- nodes: Node[] = [];
-
- /**
- * @generated from field: repeated quary.service.v1.Edge edges = 2;
- */
- edges: Edge[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ProjectDag";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "nodes", kind: "message", T: Node, repeated: true },
- { no: 2, name: "edges", kind: "message", T: Edge, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDag {
- return new ProjectDag().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDag {
- return new ProjectDag().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProjectDag {
- return new ProjectDag().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProjectDag | PlainMessage | undefined, b: ProjectDag | PlainMessage | undefined): boolean {
- return proto3.util.equals(ProjectDag, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.Node
- */
-export class Node extends Message {
- /**
- * @generated from field: string id = 1;
- */
- id = "";
-
- /**
- * @generated from field: bool is_cached = 2;
- */
- isCached = false;
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.Node";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "is_cached", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Node {
- return new Node().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Node {
- return new Node().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): Node {
- return new Node().fromJsonString(jsonString, options);
- }
-
- static equals(a: Node | PlainMessage | undefined, b: Node | PlainMessage | undefined): boolean {
- return proto3.util.equals(Node, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.Edge
- */
-export class Edge extends Message {
- /**
- * @generated from field: string to = 1;
- */
- to = "";
-
- /**
- * @generated from field: string from = 2;
- */
- from = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.Edge";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Edge {
- return new Edge().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Edge {
- return new Edge().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): Edge {
- return new Edge().fromJsonString(jsonString, options);
- }
-
- static equals(a: Edge | PlainMessage | undefined, b: Edge | PlainMessage | undefined): boolean {
- return proto3.util.equals(Edge, a, b);
- }
-}
-
diff --git a/proto/gen/es/quary/service/v1/project_file_pb.ts b/proto/gen/es/quary/service/v1/project_file_pb.ts
deleted file mode 100644
index 9e26c9ff..00000000
--- a/proto/gen/es/quary/service/v1/project_file_pb.ts
+++ /dev/null
@@ -1,487 +0,0 @@
-// @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
-// @generated from file quary/service/v1/project_file.proto (package quary.service.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-
-/**
- * @generated from message quary.service.v1.ProjectFile
- */
-export class ProjectFile extends Message {
- /**
- * @generated from field: repeated quary.service.v1.ProjectFileSource sources = 1;
- */
- sources: ProjectFileSource[] = [];
-
- /**
- * @generated from field: repeated quary.service.v1.ProjectFile.Model models = 2;
- */
- models: ProjectFile_Model[] = [];
-
- /**
- * @generated from field: repeated quary.service.v1.ProjectFile.Snapshot snapshots = 3;
- */
- snapshots: ProjectFile_Snapshot[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ProjectFile";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "sources", kind: "message", T: ProjectFileSource, repeated: true },
- { no: 2, name: "models", kind: "message", T: ProjectFile_Model, repeated: true },
- { no: 3, name: "snapshots", kind: "message", T: ProjectFile_Snapshot, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProjectFile {
- return new ProjectFile().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ProjectFile {
- return new ProjectFile().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProjectFile {
- return new ProjectFile().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProjectFile | PlainMessage | undefined, b: ProjectFile | PlainMessage | undefined): boolean {
- return proto3.util.equals(ProjectFile, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ProjectFile.Model
- */
-export class ProjectFile_Model extends Message {
- /**
- * @generated from field: string name = 1;
- */
- name = "";
-
- /**
- * Tags are used to group different parts of the project together. For example, you could tag all models that are
- * related to a specific department with the same tag.
- *
- * @generated from field: repeated string tags = 6;
- */
- tags: string[] = [];
-
- /**
- * @generated from field: optional string description = 2;
- */
- description?: string;
-
- /**
- * The materialization of the model, available types are specified by each database.
- *
- * @generated from field: optional string materialization = 4;
- */
- materialization?: string;
-
- /**
- * @generated from field: repeated quary.service.v1.ModelTest tests = 5;
- */
- tests: ModelTest[] = [];
-
- /**
- * @generated from field: repeated quary.service.v1.ProjectFileColumn columns = 3;
- */
- columns: ProjectFileColumn[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ProjectFile.Model";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 6, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 4, name: "materialization", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 5, name: "tests", kind: "message", T: ModelTest, repeated: true },
- { no: 3, name: "columns", kind: "message", T: ProjectFileColumn, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProjectFile_Model {
- return new ProjectFile_Model().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ProjectFile_Model {
- return new ProjectFile_Model().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProjectFile_Model {
- return new ProjectFile_Model().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProjectFile_Model | PlainMessage | undefined, b: ProjectFile_Model | PlainMessage | undefined): boolean {
- return proto3.util.equals(ProjectFile_Model, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ProjectFile.Snapshot
- */
-export class ProjectFile_Snapshot extends Message {
- /**
- * @generated from field: string name = 1;
- */
- name = "";
-
- /**
- * Tags are used to group different parts of the project together. For example, you could tag all models that are
- * related to a specific department with the same tag.
- *
- * @generated from field: repeated string tags = 4;
- */
- tags: string[] = [];
-
- /**
- * @generated from field: optional string description = 5;
- */
- description?: string;
-
- /**
- * @generated from field: string unique_key = 2;
- */
- uniqueKey = "";
-
- /**
- * @generated from field: quary.service.v1.ProjectFile.SnapshotStrategy strategy = 3;
- */
- strategy?: ProjectFile_SnapshotStrategy;
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ProjectFile.Snapshot";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 4, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 2, name: "unique_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 3, name: "strategy", kind: "message", T: ProjectFile_SnapshotStrategy },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProjectFile_Snapshot {
- return new ProjectFile_Snapshot().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ProjectFile_Snapshot {
- return new ProjectFile_Snapshot().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProjectFile_Snapshot {
- return new ProjectFile_Snapshot().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProjectFile_Snapshot | PlainMessage | undefined, b: ProjectFile_Snapshot | PlainMessage | undefined): boolean {
- return proto3.util.equals(ProjectFile_Snapshot, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ProjectFile.SnapshotStrategy
- */
-export class ProjectFile_SnapshotStrategy extends Message {
- /**
- * @generated from oneof quary.service.v1.ProjectFile.SnapshotStrategy.strategy_type
- */
- strategyType: {
- /**
- * @generated from field: quary.service.v1.ProjectFile.TimestampStrategy timestamp = 1;
- */
- value: ProjectFile_TimestampStrategy;
- case: "timestamp";
- } | { case: undefined; value?: undefined } = { case: undefined };
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ProjectFile.SnapshotStrategy";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "timestamp", kind: "message", T: ProjectFile_TimestampStrategy, oneof: "strategy_type" },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProjectFile_SnapshotStrategy {
- return new ProjectFile_SnapshotStrategy().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ProjectFile_SnapshotStrategy {
- return new ProjectFile_SnapshotStrategy().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProjectFile_SnapshotStrategy {
- return new ProjectFile_SnapshotStrategy().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProjectFile_SnapshotStrategy | PlainMessage | undefined, b: ProjectFile_SnapshotStrategy | PlainMessage | undefined): boolean {
- return proto3.util.equals(ProjectFile_SnapshotStrategy, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ProjectFile.TimestampStrategy
- */
-export class ProjectFile_TimestampStrategy extends Message {
- /**
- * @generated from field: string updated_at = 1;
- */
- updatedAt = "";
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ProjectFile.TimestampStrategy";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProjectFile_TimestampStrategy {
- return new ProjectFile_TimestampStrategy().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ProjectFile_TimestampStrategy {
- return new ProjectFile_TimestampStrategy().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProjectFile_TimestampStrategy {
- return new ProjectFile_TimestampStrategy().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProjectFile_TimestampStrategy | PlainMessage | undefined, b: ProjectFile_TimestampStrategy | PlainMessage | undefined): boolean {
- return proto3.util.equals(ProjectFile_TimestampStrategy, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ProjectFileSource
- */
-export class ProjectFileSource extends Message {
- /**
- * @generated from field: string name = 1;
- */
- name = "";
-
- /**
- * Tags are used to group different parts of the project together. For example, you could tag all sources that are
- * related to a specific department with the same tag.
- *
- * @generated from field: repeated string tags = 6;
- */
- tags: string[] = [];
-
- /**
- * @generated from field: optional string description = 2;
- */
- description?: string;
-
- /**
- * The full path of the source table in the database. This is used to reference the table itself. For example:
- * - 'public.users' for where the schema is 'public' and the table is 'users'
- * - 'project_id_123.dataset_id_123.table_id_123' for a BigQuery table
- *
- * @generated from field: string path = 3;
- */
- path = "";
-
- /**
- * @generated from field: repeated quary.service.v1.ModelTest tests = 5;
- */
- tests: ModelTest[] = [];
-
- /**
- * @generated from field: repeated quary.service.v1.ProjectFileColumn columns = 4;
- */
- columns: ProjectFileColumn[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ProjectFileSource";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 6, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 3, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 5, name: "tests", kind: "message", T: ModelTest, repeated: true },
- { no: 4, name: "columns", kind: "message", T: ProjectFileColumn, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProjectFileSource {
- return new ProjectFileSource().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ProjectFileSource {
- return new ProjectFileSource().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProjectFileSource {
- return new ProjectFileSource().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProjectFileSource | PlainMessage | undefined, b: ProjectFileSource | PlainMessage | undefined): boolean {
- return proto3.util.equals(ProjectFileSource, a, b);
- }
-}
-
-/**
- * Standard types are:
- * - not_null
- * - unique
- * - 'relationship' which takes into data (model and field)
- *
- * @generated from message quary.service.v1.ProjectFileColumn
- */
-export class ProjectFileColumn extends Message {
- /**
- * @generated from field: string name = 1;
- */
- name = "";
-
- /**
- * @generated from field: optional string description = 2;
- */
- description?: string;
-
- /**
- * @generated from field: repeated quary.service.v1.ColumnTest tests = 3;
- */
- tests: ColumnTest[] = [];
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ProjectFileColumn";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 3, name: "tests", kind: "message", T: ColumnTest, repeated: true },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ProjectFileColumn {
- return new ProjectFileColumn().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ProjectFileColumn {
- return new ProjectFileColumn().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ProjectFileColumn {
- return new ProjectFileColumn().fromJsonString(jsonString, options);
- }
-
- static equals(a: ProjectFileColumn | PlainMessage | undefined, b: ProjectFileColumn | PlainMessage | undefined): boolean {
- return proto3.util.equals(ProjectFileColumn, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ColumnTest
- */
-export class ColumnTest extends Message {
- /**
- * @generated from field: string type = 1;
- */
- type = "";
-
- /**
- * @generated from field: map info = 2;
- */
- info: { [key: string]: string } = {};
-
- constructor(data?: PartialMessage) {
- super();
- proto3.util.initPartial(data, this);
- }
-
- static readonly runtime: typeof proto3 = proto3;
- static readonly typeName = "quary.service.v1.ColumnTest";
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "info", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
- ]);
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ColumnTest {
- return new ColumnTest().fromBinary(bytes, options);
- }
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ColumnTest {
- return new ColumnTest().fromJson(jsonValue, options);
- }
-
- static fromJsonString(jsonString: string, options?: Partial): ColumnTest {
- return new ColumnTest().fromJsonString(jsonString, options);
- }
-
- static equals(a: ColumnTest | PlainMessage | undefined, b: ColumnTest | PlainMessage | undefined): boolean {
- return proto3.util.equals(ColumnTest, a, b);
- }
-}
-
-/**
- * @generated from message quary.service.v1.ModelTest
- */
-export class ModelTest extends Message