context.h 782 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <string_view>
  3. #include <yql/essentials/core/pg_settings/guc_settings.h>
  4. #include <yql/essentials/parser/pg_catalog/catalog.h>
  5. namespace NKikimr {
  6. namespace NMiniKQL {
  7. void* PgInitializeMainContext();
  8. void PgDestroyMainContext(void* ctx);
  9. void PgAcquireThreadContext(void* ctx);
  10. void PgReleaseThreadContext(void* ctx);
  11. std::unique_ptr<NYql::NPg::IExtensionLoader> CreateExtensionLoader();
  12. void* PgInitializeContext(const std::string_view& contextType);
  13. void PgDestroyContext(const std::string_view& contextType, void* ctx);
  14. void PgSetGUCSettings(void* ctx, const TGUCSettings::TPtr& GUCSettings);
  15. std::optional<std::string> PGGetGUCSetting(const std::string& key);
  16. void PgCreateSysCacheEntries(void* ctx);
  17. } // namespace NMiniKQL
  18. } // namespace NKikimr