aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Isaev <vitalyisaev@ydb.tech>2024-12-13 12:43:58 +0300
committerGitHub <noreply@github.com>2024-12-13 12:43:58 +0300
commit95b97a54f58ffdf8f75dd0ca345ad7ebf226d94a (patch)
tree91413f3476a51bdca7059d5d477a91f959277378
parent812b8cf221f0d849d71cadf43e63e2a7177fc2d9 (diff)
downloadydb-95b97a54f58ffdf8f75dd0ca345ad7ebf226d94a.tar.gz
YDB FQ: drop protofiles that are no more used (#12596)
-rw-r--r--ydb/library/yql/providers/generic/connector/api/common/data_source.proto111
-rw-r--r--ydb/library/yql/providers/generic/connector/api/common/endpoint.proto11
-rw-r--r--ydb/library/yql/providers/generic/connector/api/common/ya.make11
3 files changed, 0 insertions, 133 deletions
diff --git a/ydb/library/yql/providers/generic/connector/api/common/data_source.proto b/ydb/library/yql/providers/generic/connector/api/common/data_source.proto
deleted file mode 100644
index 40c6f8ff55..0000000000
--- a/ydb/library/yql/providers/generic/connector/api/common/data_source.proto
+++ /dev/null
@@ -1,111 +0,0 @@
-syntax = "proto3";
-
-package NYql.NConnector.NApi;
-
-import "ydb/library/yql/providers/generic/connector/api/common/endpoint.proto";
-
-option go_package = "github.com/ydb-platform/ydb/ydb/library/yql/providers/generic/connector/api/common";
-
-// TCredentials represents various ways of user authentication in the data source instance
-message TCredentials {
- message TBasic {
- string username = 1;
- string password = 2;
- }
-
- message TToken {
- string type = 1;
- string value = 2;
- }
-
- oneof payload {
- TBasic basic = 1;
- TToken token = 2;
- }
-}
-
-// EDataSourceKind enumerates the external data sources
-// supported by the federated query system
-enum EDataSourceKind {
- DATA_SOURCE_KIND_UNSPECIFIED = 0;
- CLICKHOUSE = 1;
- POSTGRESQL = 2;
- S3 = 3;
- YDB = 4;
- MYSQL = 5;
- MS_SQL_SERVER = 6;
- GREENPLUM = 7;
- ORACLE = 8;
- LOGGING = 9;
-}
-
-// EProtocol generalizes various kinds of network protocols supported by different databases.
-enum EProtocol {
- PROTOCOL_UNSPECIFIED = 0;
- NATIVE = 1; // CLICKHOUSE, POSTGRESQL
- HTTP = 2; // CLICKHOUSE, S3
-}
-
-// TPostgreSQLDataSourceOptions represents settings specific to PostgreSQL
-message TPostgreSQLDataSourceOptions {
- // PostgreSQL schema
- string schema = 1;
-}
-
-// TClickhouseDataSourceOptions represents settings specific to Clickhouse
-message TClickhouseDataSourceOptions {
-}
-
-// TS3DataSourceOptions represents settings specific to S3 (Simple Storage Service)
-message TS3DataSourceOptions {
- // the region where data is stored
- string region = 1;
- // the bucket the object belongs to
- string bucket = 2;
-}
-
-// TGreenplumDataSourceOptions represents settings specific to Greenplum
-message TGreenplumDataSourceOptions {
- // Greenplum schema
- string schema = 1;
-}
-
-// TOracleDataSourceOptions represents settings specific to Oracle
-message TOracleDataSourceOptions {
- // Oracle service_name - alias to SID of oracle INSTANCE, or SID, or PDB.
- // More about connection options in Oracle docs:
- // https://docs.oracle.com/en/database/other-databases/essbase/21/essoa/connection-string-formats.html
- string service_name = 1;
-}
-
-// TLoggingDataSourceOptions represents settings specific to Logging
-message TLoggingDataSourceOptions {
- string folder_id = 1;
-}
-
-// TDataSourceInstance helps to identify the instance of a data source to redirect request to.
-message TDataSourceInstance {
- // Data source kind
- EDataSourceKind kind = 1;
- // Network address
- TEndpoint endpoint = 2;
- // Database name
- string database = 3;
- // Credentials to access database
- TCredentials credentials = 4;
- // If true, Connector server will use secure connections to access remote data sources.
- // Certificates will be obtained from the standard system paths.
- bool use_tls = 5;
- // Allows to specify network protocol that should be used between
- // during the connection between Connector and the remote data source
- EProtocol protocol = 6;
- // Options specific to various data sources
- oneof options {
- TPostgreSQLDataSourceOptions pg_options = 7;
- TClickhouseDataSourceOptions ch_options = 8;
- TS3DataSourceOptions s3_options = 9;
- TGreenplumDataSourceOptions gp_options = 10;
- TOracleDataSourceOptions oracle_options = 11;
- TLoggingDataSourceOptions logging_options = 12;
- }
-}
diff --git a/ydb/library/yql/providers/generic/connector/api/common/endpoint.proto b/ydb/library/yql/providers/generic/connector/api/common/endpoint.proto
deleted file mode 100644
index 1e4f19eff4..0000000000
--- a/ydb/library/yql/providers/generic/connector/api/common/endpoint.proto
+++ /dev/null
@@ -1,11 +0,0 @@
-syntax = "proto3";
-
-package NYql.NConnector.NApi;
-
-option go_package = "github.com/ydb-platform/ydb/ydb/library/yql/providers/generic/connector/api/common";
-
-// TEndpoint represents the network address of a data source instance
-message TEndpoint {
- string host = 1;
- uint32 port = 2;
-}
diff --git a/ydb/library/yql/providers/generic/connector/api/common/ya.make b/ydb/library/yql/providers/generic/connector/api/common/ya.make
deleted file mode 100644
index 0dd3d856cb..0000000000
--- a/ydb/library/yql/providers/generic/connector/api/common/ya.make
+++ /dev/null
@@ -1,11 +0,0 @@
-# WARNING: never add dependency to YDB protofiles here,
-# because it would break Go code generation.
-
-PROTO_LIBRARY()
-
-SRCS(
- data_source.proto
- endpoint.proto
-)
-
-END()