|
@@ -3,8 +3,10 @@
|
|
|
#include "external_data_source.h"
|
|
|
|
|
|
#include <util/generic/map.h>
|
|
|
+#include <util/string/cast.h>
|
|
|
|
|
|
#include <ydb/library/yql/providers/common/provider/yql_provider_names.h>
|
|
|
+#include <ydb/library/yql/providers/generic/connector/libcpp/external_data_source.h>
|
|
|
|
|
|
|
|
|
namespace NKikimr::NExternalSource {
|
|
@@ -33,8 +35,14 @@ private:
|
|
|
IExternalSourceFactory::TPtr CreateExternalSourceFactory() {
|
|
|
return MakeIntrusive<TExternalSourceFactory>(TMap<TString, IExternalSource::TPtr>{
|
|
|
{"ObjectStorage", CreateObjectStorageExternalSource()},
|
|
|
- {"ClickHouse", CreateExternalDataSource(TString{NYql::GenericProviderName}, {"MDB_BASIC", "BASIC"}, {"database_name", "protocol", "mdb_cluster_id", "use_tls"})},
|
|
|
- {"PostgreSQL", CreateExternalDataSource(TString{NYql::GenericProviderName}, {"MDB_BASIC", "BASIC"}, {"database_name", "protocol", "mdb_cluster_id", "use_tls"})}
|
|
|
+ {
|
|
|
+ ToString(NYql::NConnector::EExternalDataSource::ClickHouse),
|
|
|
+ CreateExternalDataSource(TString{NYql::GenericProviderName}, {"MDB_BASIC", "BASIC"}, {"database_name", "protocol", "mdb_cluster_id", "use_tls"})
|
|
|
+ },
|
|
|
+ {
|
|
|
+ ToString(NYql::NConnector::EExternalDataSource::PostgreSQL),
|
|
|
+ CreateExternalDataSource(TString{NYql::GenericProviderName}, {"MDB_BASIC", "BASIC"}, {"database_name", "protocol", "mdb_cluster_id", "use_tls"})
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|