blob: b639da8203a23fd8c7f4b627cda38917f899e58d [file]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iceberg-cpp: iceberg/catalog/sql/sql_catalog.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">iceberg-cpp
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_51d145386ec5f52aa06ebf5e46944abc.html">iceberg</a></li><li class="navelem"><a class="el" href="dir_a7beda0dac529a54d3cdf90e787bdce7.html">catalog</a></li><li class="navelem"><a class="el" href="dir_c69715e845db0a3a505d9b985062ede4.html">sql</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">sql_catalog.h</div></div>
</div><!--header-->
<div class="contents">
<a href="sql__catalog_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * distributed with this work for additional information</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * with the License. You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> *</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> *</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * software distributed under the License is distributed on an</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * KIND, either express or implied. See the License for the</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * specific language governing permissions and limitations</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * under the License.</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> */</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &lt;unordered_set&gt;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor">#include &quot;<a class="code" href="catalog_8h.html">iceberg/catalog.h</a>&quot;</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="preprocessor">#include &quot;<a class="code" href="catalog__store_8h.html">iceberg/catalog/sql/catalog_store.h</a>&quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="preprocessor">#include &quot;<a class="code" href="iceberg__sql__catalog__export_8h.html">iceberg/catalog/sql/iceberg_sql_catalog_export.h</a>&quot;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="preprocessor">#include &quot;<a class="code" href="result_8h.html">iceberg/result.h</a>&quot;</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="preprocessor">#include &quot;<a class="code" href="table__identifier_8h.html">iceberg/table_identifier.h</a>&quot;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="preprocessor">#include &quot;<a class="code" href="type__fwd_8h.html">iceberg/type_fwd.h</a>&quot;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceiceberg_1_1sql.html">iceberg::sql</a> {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="keyword">constexpr</span> <span class="keyword">static</span> int32_t kMaxConnections = 10;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="foldopen" id="foldopen00049" data-start="{" data-end="};">
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html"> 49</a></span><span class="keyword">struct </span>ICEBERG_SQL_CATALOG_EXPORT <a class="code hl_struct" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html">SqlCatalogConfig</a> {</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#a8b1dad5745a2992d54dbdda57bbcdc8d"> 52</a></span> std::string name = <span class="stringliteral">&quot;sql_catalog&quot;</span>;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#a5d9bf833e7f272a9bdeaf9f1fd21ba34"> 54</a></span> std::string <a class="code hl_variable" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#a5d9bf833e7f272a9bdeaf9f1fd21ba34">uri</a>;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#a4327acffe86325125214edeb8674bd16"> 56</a></span> std::string <a class="code hl_variable" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#a4327acffe86325125214edeb8674bd16">warehouse_location</a>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#a769c1181fc06413257ded26a915a6839"> 59</a></span> int32_t max_connections = kMaxConnections;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#ae9aa26b126dd678fb63d89f690cb0f51"> 61</a></span> std::unordered_map&lt;std::string, std::string&gt; <a class="code hl_variable" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#ae9aa26b126dd678fb63d89f690cb0f51">props</a>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span>};</div>
</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="foldopen" id="foldopen00065" data-start="{" data-end="};">
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html"> 65</a></span><span class="keyword">class </span>ICEBERG_SQL_CATALOG_EXPORT <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> : <span class="keyword">public</span> <a class="code hl_class" href="classiceberg_1_1Catalog.html">Catalog</a>,</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">public</span> std::enable_shared_from_this&lt;SqlCatalog&gt; {</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">~SqlCatalog</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>&amp; operator=(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>(<a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>&amp; operator=(<a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a34253618611bae2ce0a1ad51b1c4e051"> 86</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;SqlCatalog&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a34253618611bae2ce0a1ad51b1c4e051">Make</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html">SqlCatalogConfig</a>&amp; config,</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> std::shared_ptr&lt;FileIO&gt; file_io,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> std::shared_ptr&lt;CatalogStore&gt; store);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a4c7df0b381fcd39d1935694708714374"> 90</a></span> std::string_view <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a4c7df0b381fcd39d1935694708714374">name</a>() <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a2a37e1c45a1c2265f19bcaa451a31176"> 92</a></span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a2a37e1c45a1c2265f19bcaa451a31176">CreateNamespace</a>(</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns,</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; properties) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a7b29be7c29c73e4e9c7040bc27fd3e14"> 96</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::vector&lt;Namespace&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a7b29be7c29c73e4e9c7040bc27fd3e14">ListNamespaces</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a8dd4454e8e9b9a5038be2f1ce73d401d"> 98</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::unordered_map&lt;std::string, std::string&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a8dd4454e8e9b9a5038be2f1ce73d401d">GetNamespaceProperties</a>(</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#ab8269341489fd168833a982f34f0700f"> 101</a></span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#ab8269341489fd168833a982f34f0700f">DropNamespace</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a553d82f760b586e6cea7c6ab765fae4b"> 103</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;bool&gt;</a> <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a553d82f760b586e6cea7c6ab765fae4b">NamespaceExists</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#acd9d6b81e29f3a52ebae536af567f7e5"> 105</a></span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#acd9d6b81e29f3a52ebae536af567f7e5">UpdateNamespaceProperties</a>(</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns, <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; updates,</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keyword">const</span> std::unordered_set&lt;std::string&gt;&amp; removals) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#ac82582385b20a955064c25b99af3056a"> 109</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::vector&lt;TableIdentifier&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#ac82582385b20a955064c25b99af3056a">ListTables</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#acca2f2561bb3123442485d190c0bee29"> 111</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Table&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#acca2f2561bb3123442485d190c0bee29">CreateTable</a>(</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier, <span class="keyword">const</span> std::shared_ptr&lt;Schema&gt;&amp; schema,</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">const</span> std::shared_ptr&lt;PartitionSpec&gt;&amp; spec, <span class="keyword">const</span> std::shared_ptr&lt;SortOrder&gt;&amp; order,</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keyword">const</span> std::string&amp; location,</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; properties) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a7aa815bc4971c045763ec42d1f804b51"> 117</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Table&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a7aa815bc4971c045763ec42d1f804b51">UpdateTable</a>(</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier,</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">const</span> std::vector&lt;std::unique_ptr&lt;TableRequirement&gt;&gt;&amp; requirements,</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keyword">const</span> std::vector&lt;std::unique_ptr&lt;TableUpdate&gt;&gt;&amp; updates) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#ac5d7096f8538cbbade82a91a397cad20"> 122</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Transaction&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#ac5d7096f8538cbbade82a91a397cad20">StageCreateTable</a>(</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier, <span class="keyword">const</span> std::shared_ptr&lt;Schema&gt;&amp; schema,</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keyword">const</span> std::shared_ptr&lt;PartitionSpec&gt;&amp; spec, <span class="keyword">const</span> std::shared_ptr&lt;SortOrder&gt;&amp; order,</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keyword">const</span> std::string&amp; location,</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; properties) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#aed262279818cfdc45aaed44c2a2112ca"> 128</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;bool&gt;</a> <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#aed262279818cfdc45aaed44c2a2112ca">TableExists</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#acb8b780ad7a8b1730a3e7d2378842869"> 134</a></span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#acb8b780ad7a8b1730a3e7d2378842869">DropTable</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier, <span class="keywordtype">bool</span> purge) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#ac8e469489a93c4e5e2853acfea469379"> 136</a></span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#ac8e469489a93c4e5e2853acfea469379">RenameTable</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; from, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; to) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a92d295d5e6d56b666b9bf4cc93324a30"> 138</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Table&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a92d295d5e6d56b666b9bf4cc93324a30">LoadTable</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#af4541d0c68f876ad1bf19b9fb59b4c7a"> 140</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Table&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#af4541d0c68f876ad1bf19b9fb59b4c7a">RegisterTable</a>(</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier,</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keyword">const</span> std::string&amp; metadata_file_location) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#aff5e328ed20a1970774dde882e947c23"> 150</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;SqlCatalog&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#aff5e328ed20a1970774dde882e947c23">MakeSqliteCatalog</a>(</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html">SqlCatalogConfig</a>&amp; config, std::shared_ptr&lt;FileIO&gt; file_io);</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#aea1adbcb8379f4cbd3103ce25d45634a"> 160</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;SqlCatalog&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#aea1adbcb8379f4cbd3103ce25d45634a">MakePostgreSqlCatalog</a>(</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html">SqlCatalogConfig</a>&amp; config, std::shared_ptr&lt;FileIO&gt; file_io);</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1SqlCatalog.html#a99f827faf3657c31e7a320782c4c7d51"> 170</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;SqlCatalog&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1SqlCatalog.html#a99f827faf3657c31e7a320782c4c7d51">MakeMySqlCatalog</a>(</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html">SqlCatalogConfig</a>&amp; config, std::shared_ptr&lt;FileIO&gt; file_io);</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1SqlCatalog.html">SqlCatalog</a>(<a class="code hl_struct" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html">SqlCatalogConfig</a> config, std::shared_ptr&lt;FileIO&gt; file_io,</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> std::shared_ptr&lt;CatalogStore&gt; store,</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> std::shared_ptr&lt;MetricsReporter&gt; reporter);</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::string&gt;</a> GetTableMetadataLocation(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Table&gt;</a>&gt; LoadTableFrom(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier,</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keyword">const</span> std::string&amp; metadata_location);</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <a class="code hl_struct" href="structiceberg_1_1sql_1_1SqlCatalogConfig.html">SqlCatalogConfig</a> config_;</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> std::shared_ptr&lt;FileIO&gt; file_io_;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> std::shared_ptr&lt;CatalogStore&gt; store_;</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> std::shared_ptr&lt;MetricsReporter&gt; reporter_;</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span>};</div>
</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span>} <span class="comment">// namespace iceberg::sql</span></div>
<div class="ttc" id="acatalog_8h_html"><div class="ttname"><a href="catalog_8h.html">catalog.h</a></div><div class="ttdoc">Define the catalog API for table and namespace operations.</div></div>
<div class="ttc" id="acatalog__store_8h_html"><div class="ttname"><a href="catalog__store_8h.html">catalog_store.h</a></div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html"><div class="ttname"><a href="classiceberg_1_1Catalog.html">iceberg::Catalog</a></div><div class="ttdoc">A Catalog API for table create, drop, and load operations.</div><div class="ttdef"><b>Definition</b> catalog.h:42</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html">iceberg::sql::SqlCatalog</a></div><div class="ttdoc">SQL-backed Iceberg catalog.</div><div class="ttdef"><b>Definition</b> sql_catalog.h:67</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a2a37e1c45a1c2265f19bcaa451a31176"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a2a37e1c45a1c2265f19bcaa451a31176">iceberg::sql::SqlCatalog::CreateNamespace</a></div><div class="ttdeci">Status CreateNamespace(const Namespace &amp;ns, const std::unordered_map&lt; std::string, std::string &gt; &amp;properties) override</div><div class="ttdoc">Create a namespace with associated properties.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a34253618611bae2ce0a1ad51b1c4e051"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a34253618611bae2ce0a1ad51b1c4e051">iceberg::sql::SqlCatalog::Make</a></div><div class="ttdeci">static Result&lt; std::shared_ptr&lt; SqlCatalog &gt; &gt; Make(const SqlCatalogConfig &amp;config, std::shared_ptr&lt; FileIO &gt; file_io, std::shared_ptr&lt; CatalogStore &gt; store)</div><div class="ttdoc">Create a catalog backed by a user-supplied CatalogStore.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a4c7df0b381fcd39d1935694708714374"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a4c7df0b381fcd39d1935694708714374">iceberg::sql::SqlCatalog::name</a></div><div class="ttdeci">std::string_view name() const override</div><div class="ttdoc">Return the name for this catalog.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a553d82f760b586e6cea7c6ab765fae4b"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a553d82f760b586e6cea7c6ab765fae4b">iceberg::sql::SqlCatalog::NamespaceExists</a></div><div class="ttdeci">Result&lt; bool &gt; NamespaceExists(const Namespace &amp;ns) const override</div><div class="ttdoc">Check whether the namespace exists.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a7aa815bc4971c045763ec42d1f804b51"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a7aa815bc4971c045763ec42d1f804b51">iceberg::sql::SqlCatalog::UpdateTable</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; Table &gt; &gt; UpdateTable(const TableIdentifier &amp;identifier, const std::vector&lt; std::unique_ptr&lt; TableRequirement &gt; &gt; &amp;requirements, const std::vector&lt; std::unique_ptr&lt; TableUpdate &gt; &gt; &amp;updates) override</div><div class="ttdoc">Update a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a7b29be7c29c73e4e9c7040bc27fd3e14"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a7b29be7c29c73e4e9c7040bc27fd3e14">iceberg::sql::SqlCatalog::ListNamespaces</a></div><div class="ttdeci">Result&lt; std::vector&lt; Namespace &gt; &gt; ListNamespaces(const Namespace &amp;ns) const override</div><div class="ttdoc">List child namespaces from the given namespace.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a8dd4454e8e9b9a5038be2f1ce73d401d"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a8dd4454e8e9b9a5038be2f1ce73d401d">iceberg::sql::SqlCatalog::GetNamespaceProperties</a></div><div class="ttdeci">Result&lt; std::unordered_map&lt; std::string, std::string &gt; &gt; GetNamespaceProperties(const Namespace &amp;ns) const override</div><div class="ttdoc">Get metadata properties for a namespace.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a92d295d5e6d56b666b9bf4cc93324a30"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a92d295d5e6d56b666b9bf4cc93324a30">iceberg::sql::SqlCatalog::LoadTable</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; Table &gt; &gt; LoadTable(const TableIdentifier &amp;identifier) override</div><div class="ttdoc">Load a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_a99f827faf3657c31e7a320782c4c7d51"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#a99f827faf3657c31e7a320782c4c7d51">iceberg::sql::SqlCatalog::MakeMySqlCatalog</a></div><div class="ttdeci">static Result&lt; std::shared_ptr&lt; SqlCatalog &gt; &gt; MakeMySqlCatalog(const SqlCatalogConfig &amp;config, std::shared_ptr&lt; FileIO &gt; file_io)</div><div class="ttdoc">Create a catalog backed by the built-in MySQL client.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_ab8269341489fd168833a982f34f0700f"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#ab8269341489fd168833a982f34f0700f">iceberg::sql::SqlCatalog::DropNamespace</a></div><div class="ttdeci">Status DropNamespace(const Namespace &amp;ns) override</div><div class="ttdoc">Drop a namespace.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_ac5d7096f8538cbbade82a91a397cad20"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#ac5d7096f8538cbbade82a91a397cad20">iceberg::sql::SqlCatalog::StageCreateTable</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; Transaction &gt; &gt; StageCreateTable(const TableIdentifier &amp;identifier, const std::shared_ptr&lt; Schema &gt; &amp;schema, const std::shared_ptr&lt; PartitionSpec &gt; &amp;spec, const std::shared_ptr&lt; SortOrder &gt; &amp;order, const std::string &amp;location, const std::unordered_map&lt; std::string, std::string &gt; &amp;properties) override</div><div class="ttdoc">Start a transaction to create a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_ac82582385b20a955064c25b99af3056a"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#ac82582385b20a955064c25b99af3056a">iceberg::sql::SqlCatalog::ListTables</a></div><div class="ttdeci">Result&lt; std::vector&lt; TableIdentifier &gt; &gt; ListTables(const Namespace &amp;ns) const override</div><div class="ttdoc">Return all the identifiers under this namespace.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_ac8e469489a93c4e5e2853acfea469379"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#ac8e469489a93c4e5e2853acfea469379">iceberg::sql::SqlCatalog::RenameTable</a></div><div class="ttdeci">Status RenameTable(const TableIdentifier &amp;from, const TableIdentifier &amp;to) override</div><div class="ttdoc">Rename a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_acb8b780ad7a8b1730a3e7d2378842869"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#acb8b780ad7a8b1730a3e7d2378842869">iceberg::sql::SqlCatalog::DropTable</a></div><div class="ttdeci">Status DropTable(const TableIdentifier &amp;identifier, bool purge) override</div><div class="ttdoc">Drop a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_acca2f2561bb3123442485d190c0bee29"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#acca2f2561bb3123442485d190c0bee29">iceberg::sql::SqlCatalog::CreateTable</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; Table &gt; &gt; CreateTable(const TableIdentifier &amp;identifier, const std::shared_ptr&lt; Schema &gt; &amp;schema, const std::shared_ptr&lt; PartitionSpec &gt; &amp;spec, const std::shared_ptr&lt; SortOrder &gt; &amp;order, const std::string &amp;location, const std::unordered_map&lt; std::string, std::string &gt; &amp;properties) override</div><div class="ttdoc">Create a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_acd9d6b81e29f3a52ebae536af567f7e5"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#acd9d6b81e29f3a52ebae536af567f7e5">iceberg::sql::SqlCatalog::UpdateNamespaceProperties</a></div><div class="ttdeci">Status UpdateNamespaceProperties(const Namespace &amp;ns, const std::unordered_map&lt; std::string, std::string &gt; &amp;updates, const std::unordered_set&lt; std::string &gt; &amp;removals) override</div><div class="ttdoc">Update a namespace's properties by applying additions and removals.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_aea1adbcb8379f4cbd3103ce25d45634a"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#aea1adbcb8379f4cbd3103ce25d45634a">iceberg::sql::SqlCatalog::MakePostgreSqlCatalog</a></div><div class="ttdeci">static Result&lt; std::shared_ptr&lt; SqlCatalog &gt; &gt; MakePostgreSqlCatalog(const SqlCatalogConfig &amp;config, std::shared_ptr&lt; FileIO &gt; file_io)</div><div class="ttdoc">Create a catalog backed by the built-in PostgreSQL (libpq) client.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_aed262279818cfdc45aaed44c2a2112ca"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#aed262279818cfdc45aaed44c2a2112ca">iceberg::sql::SqlCatalog::TableExists</a></div><div class="ttdeci">Result&lt; bool &gt; TableExists(const TableIdentifier &amp;identifier) const override</div><div class="ttdoc">Check whether table exists.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_af4541d0c68f876ad1bf19b9fb59b4c7a"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#af4541d0c68f876ad1bf19b9fb59b4c7a">iceberg::sql::SqlCatalog::RegisterTable</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; Table &gt; &gt; RegisterTable(const TableIdentifier &amp;identifier, const std::string &amp;metadata_file_location) override</div><div class="ttdoc">Register a table with the catalog if it does not exist.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1SqlCatalog_html_aff5e328ed20a1970774dde882e947c23"><div class="ttname"><a href="classiceberg_1_1sql_1_1SqlCatalog.html#aff5e328ed20a1970774dde882e947c23">iceberg::sql::SqlCatalog::MakeSqliteCatalog</a></div><div class="ttdeci">static Result&lt; std::shared_ptr&lt; SqlCatalog &gt; &gt; MakeSqliteCatalog(const SqlCatalogConfig &amp;config, std::shared_ptr&lt; FileIO &gt; file_io)</div><div class="ttdoc">Create a catalog backed by the built-in SQLite client.</div></div>
<div class="ttc" id="aiceberg__sql__catalog__export_8h_html"><div class="ttname"><a href="iceberg__sql__catalog__export_8h.html">iceberg_sql_catalog_export.h</a></div><div class="ttdoc">Define symbol visibility macros for the SQL catalog library.</div></div>
<div class="ttc" id="anamespaceiceberg_1_1sql_html"><div class="ttname"><a href="namespaceiceberg_1_1sql.html">iceberg::sql</a></div><div class="ttdoc">SQL catalog APIs.</div><div class="ttdef"><b>Definition</b> catalog_store.h:41</div></div>
<div class="ttc" id="anamespaceiceberg_html_a9d5594e371beb516b0120e07e69d3af6"><div class="ttname"><a href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">iceberg::Result</a></div><div class="ttdeci">std::expected&lt; T, E &gt; Result</div><div class="ttdoc">Result alias.</div><div class="ttdef"><b>Definition</b> result.h:88</div></div>
<div class="ttc" id="aresult_8h_html"><div class="ttname"><a href="result_8h.html">result.h</a></div><div class="ttdoc">Define Result, Status, and error helpers.</div></div>
<div class="ttc" id="astructiceberg_1_1Namespace_html"><div class="ttname"><a href="structiceberg_1_1Namespace.html">iceberg::Namespace</a></div><div class="ttdoc">A namespace in a catalog.</div><div class="ttdef"><b>Definition</b> table_identifier.h:35</div></div>
<div class="ttc" id="astructiceberg_1_1TableIdentifier_html"><div class="ttname"><a href="structiceberg_1_1TableIdentifier.html">iceberg::TableIdentifier</a></div><div class="ttdoc">Identifies a table in iceberg catalog.</div><div class="ttdef"><b>Definition</b> table_identifier.h:46</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1SqlCatalogConfig_html"><div class="ttname"><a href="structiceberg_1_1sql_1_1SqlCatalogConfig.html">iceberg::sql::SqlCatalogConfig</a></div><div class="ttdoc">Configuration for the SQL catalog.</div><div class="ttdef"><b>Definition</b> sql_catalog.h:49</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1SqlCatalogConfig_html_a4327acffe86325125214edeb8674bd16"><div class="ttname"><a href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#a4327acffe86325125214edeb8674bd16">iceberg::sql::SqlCatalogConfig::warehouse_location</a></div><div class="ttdeci">std::string warehouse_location</div><div class="ttdoc">Base location used to derive table locations when none is supplied.</div><div class="ttdef"><b>Definition</b> sql_catalog.h:56</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1SqlCatalogConfig_html_a5d9bf833e7f272a9bdeaf9f1fd21ba34"><div class="ttname"><a href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#a5d9bf833e7f272a9bdeaf9f1fd21ba34">iceberg::sql::SqlCatalogConfig::uri</a></div><div class="ttdeci">std::string uri</div><div class="ttdoc">Database connection string interpreted by the chosen CatalogStore.</div><div class="ttdef"><b>Definition</b> sql_catalog.h:54</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1SqlCatalogConfig_html_ae9aa26b126dd678fb63d89f690cb0f51"><div class="ttname"><a href="structiceberg_1_1sql_1_1SqlCatalogConfig.html#ae9aa26b126dd678fb63d89f690cb0f51">iceberg::sql::SqlCatalogConfig::props</a></div><div class="ttdeci">std::unordered_map&lt; std::string, std::string &gt; props</div><div class="ttdoc">Additional connector-specific properties.</div><div class="ttdef"><b>Definition</b> sql_catalog.h:61</div></div>
<div class="ttc" id="atable__identifier_8h_html"><div class="ttname"><a href="table__identifier_8h.html">table_identifier.h</a></div></div>
<div class="ttc" id="atype__fwd_8h_html"><div class="ttname"><a href="type__fwd_8h.html">type_fwd.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>