From 637786331a43cdbef68e4a45f5b76e5314b92f6c Mon Sep 17 00:00:00 2001 From: Grigorii Papashvili Date: Tue, 16 Jul 2024 11:31:38 +0300 Subject: [PATCH] YDB FQ: Adding Oracle datasource to proto (#6639) --- .../generic/connector/api/common/data_source.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 index 6cd95c25e493..7be6bd8d7b27 100644 --- a/ydb/library/yql/providers/generic/connector/api/common/data_source.proto +++ b/ydb/library/yql/providers/generic/connector/api/common/data_source.proto @@ -35,6 +35,7 @@ enum EDataSourceKind { MYSQL = 5; MS_SQL_SERVER = 6; GREENPLUM = 7; + ORACLE = 8; } // EProtocol generalizes various kinds of network protocols supported by different databases. @@ -68,6 +69,14 @@ message TGreenplumDataSourceOptions { 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; +} + // TDataSourceInstance helps to identify the instance of a data source to redirect request to. message TDataSourceInstance { // Data source kind @@ -90,5 +99,6 @@ message TDataSourceInstance { TClickhouseDataSourceOptions ch_options = 8; TS3DataSourceOptions s3_options = 9; TGreenplumDataSourceOptions gp_options = 10; + TOracleDataSourceOptions ora_options = 11; } }