summaryrefslogtreecommitdiffstats
path: root/yql/essentials/parser/pg_wrapper/interface/context.h
diff options
context:
space:
mode:
authorvvvv <[email protected]>2024-11-06 23:54:28 +0300
committervvvv <[email protected]>2024-11-07 00:04:25 +0300
commitcf2a23963ac10add28c50cc114fbf48953eca5aa (patch)
tree174b849b8ecfa96b0c8e4409ab3287721a9210c8 /yql/essentials/parser/pg_wrapper/interface/context.h
parent3a3113a2bf5a7fab32bde414932082b264c559fc (diff)
Prepare move yql/minikql YQL-19206
types,jsonpath,dom commit_hash:6b54be5968b6a30b6d97fe3a1611574bcefc749e
Diffstat (limited to 'yql/essentials/parser/pg_wrapper/interface/context.h')
-rw-r--r--yql/essentials/parser/pg_wrapper/interface/context.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/yql/essentials/parser/pg_wrapper/interface/context.h b/yql/essentials/parser/pg_wrapper/interface/context.h
new file mode 100644
index 00000000000..127fcfa3880
--- /dev/null
+++ b/yql/essentials/parser/pg_wrapper/interface/context.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <string_view>
+#include <yql/essentials/core/pg_settings/guc_settings.h>
+#include <yql/essentials/parser/pg_catalog/catalog.h>
+
+namespace NKikimr {
+namespace NMiniKQL {
+
+void* PgInitializeMainContext();
+void PgDestroyMainContext(void* ctx);
+
+void PgAcquireThreadContext(void* ctx);
+void PgReleaseThreadContext(void* ctx);
+
+std::unique_ptr<NYql::NPg::IExtensionLoader> CreateExtensionLoader();
+
+void* PgInitializeContext(const std::string_view& contextType);
+void PgDestroyContext(const std::string_view& contextType, void* ctx);
+
+void PgSetGUCSettings(void* ctx, const TGUCSettings::TPtr& GUCSettings);
+std::optional<std::string> PGGetGUCSetting(const std::string& key);
+
+void PgCreateSysCacheEntries(void* ctx);
+} // namespace NMiniKQL
+} // namespace NKikimr