1 | #include "duckdb/main/client_context_file_opener.hpp" |
---|---|
2 | |
3 | #include "duckdb/main/client_context.hpp" |
4 | |
5 | namespace duckdb { |
6 | |
7 | bool ClientContextFileOpener::TryGetCurrentSetting(const string &key, Value &result) { |
8 | return context.TryGetCurrentSetting(key, result); |
9 | } |
10 | |
11 | ClientContext *FileOpener::TryGetClientContext(FileOpener *opener) { |
12 | if (!opener) { |
13 | return nullptr; |
14 | } |
15 | return opener->TryGetClientContext(); |
16 | } |
17 | |
18 | bool FileOpener::TryGetCurrentSetting(FileOpener *opener, const string &key, Value &result) { |
19 | if (!opener) { |
20 | return false; |
21 | } |
22 | return opener->TryGetCurrentSetting(key, result); |
23 | } |
24 | |
25 | } // namespace duckdb |
26 |