blob: 1e4fbeadb6a7b2b09951c3d28698e6e8e994c0cc [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/catalog_store.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">catalog_store.h</div></div>
</div><!--header-->
<div class="contents">
<a href="catalog__store_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="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &lt;optional&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</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> </div>
<div class="foldopen" id="foldopen00041" data-start="{" data-end="}">
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="namespaceiceberg_1_1sql.html"> 41</a></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="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="foldopen" id="foldopen00044" data-start="{" data-end="};">
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1NamespaceProperty.html"> 44</a></span><span class="keyword">struct </span>ICEBERG_SQL_CATALOG_EXPORT <a class="code hl_struct" href="structiceberg_1_1sql_1_1NamespaceProperty.html">NamespaceProperty</a> {</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1NamespaceProperty.html#a4863c14bf493372de7d3a4281ee96ad3"> 46</a></span> std::string <a class="code hl_variable" href="structiceberg_1_1sql_1_1NamespaceProperty.html#a4863c14bf493372de7d3a4281ee96ad3">key</a>;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1NamespaceProperty.html#a2d37c4e3b9d9e67b263bb0533385c791"> 48</a></span> std::optional&lt;std::string&gt; <a class="code hl_variable" href="structiceberg_1_1sql_1_1NamespaceProperty.html#a2d37c4e3b9d9e67b263bb0533385c791">value</a>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>};</div>
</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="foldopen" id="foldopen00052" data-start="{" data-end="};">
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html"> 52</a></span><span class="keyword">struct </span>ICEBERG_SQL_CATALOG_EXPORT <a class="code hl_struct" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html">CatalogStoreOptions</a> {</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#ab66d5b70a3b23d82a0d8dae1689cfe9e"> 54</a></span> std::string <a class="code hl_variable" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#ab66d5b70a3b23d82a0d8dae1689cfe9e">catalog_name</a>;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#a1b359f23e89662800bc7669800cd202c"> 56</a></span> std::string <a class="code hl_variable" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#a1b359f23e89662800bc7669800cd202c">uri</a>;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#aba95408bbd47d76c72f5878d97330c0b"> 58</a></span> int32_t max_connections = 1;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#ab678411ded511db3f4d3fc34ad146e8b"> 60</a></span> std::unordered_map&lt;std::string, std::string&gt; <a class="code hl_variable" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#ab678411ded511db3f4d3fc34ad146e8b">properties</a>;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>};</div>
</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="foldopen" id="foldopen00072" data-start="{" data-end="};">
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html"> 72</a></span><span class="keyword">class </span>ICEBERG_SQL_CATALOG_EXPORT <a class="code hl_class" href="classiceberg_1_1sql_1_1CatalogStore.html">CatalogStore</a> {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classiceberg_1_1sql_1_1CatalogStore.html">~CatalogStore</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#ae56f64bd20de171ac60a6b5540f4f7a9"> 79</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#ae56f64bd20de171ac60a6b5540f4f7a9">Initialize</a>() = 0;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#aef850caa1650a3bf7b3942089ac56727"> 84</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::vector&lt;std::string&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#aef850caa1650a3bf7b3942089ac56727">ListNamespaceNames</a>() = 0;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a6a9fbcc42c6934308313ddf7577fcb88"> 90</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::vector&lt;NamespaceProperty&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a6a9fbcc42c6934308313ddf7577fcb88">GetNamespaceProperties</a>(</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> std::string_view ns) = 0;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a85ade7cc91c5f1db1ea9b5ab4f993ab7"> 102</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a85ade7cc91c5f1db1ea9b5ab4f993ab7">InsertNamespaceProperty</a>(std::string_view ns, std::string_view key,</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> std::optional&lt;std::string_view&gt; value) = 0;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a6093a2b131cf6553f26167813357c83b"> 110</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a6093a2b131cf6553f26167813357c83b">DeleteNamespaceProperty</a>(std::string_view ns, std::string_view key) = 0;</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a7f898b5381a60b8caca41f97a2eedddb"> 116</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a7f898b5381a60b8caca41f97a2eedddb">DeleteNamespace</a>(std::string_view ns) = 0;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#ab0cfe85e5003d43edb4ff05c7b53acbd"> 122</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::vector&lt;std::string&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#ab0cfe85e5003d43edb4ff05c7b53acbd">ListTableNames</a>(std::string_view ns) = 0;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a8efafbd14e65aab9f3f876ca1843cda6"> 129</a></span> <span class="keyword">virtual</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_1CatalogStore.html#a8efafbd14e65aab9f3f876ca1843cda6">TableExists</a>(std::string_view ns, std::string_view name) = 0;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a047c2b1353469bfdda8739b846fbde46"> 137</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::optional&lt;std::string&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a047c2b1353469bfdda8739b846fbde46">GetTableMetadataLocation</a>(</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> std::string_view ns, std::string_view name) = 0;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a393d3119d8b17efa36f7021189fd02e4"> 149</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a393d3119d8b17efa36f7021189fd02e4">InsertTable</a>(std::string_view ns, std::string_view name,</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> std::string_view metadata_location) = 0;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a56167796110713ca46b7b6980b7e6949"> 163</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a56167796110713ca46b7b6980b7e6949">UpdateTableMetadataLocation</a>(</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> std::string_view ns, std::string_view name, std::string_view new_location,</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> std::string_view new_previous_location,</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> std::string_view expected_current_location) = 0;</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a1371ff43f19636a8ff2a287e330eeb11"> 173</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a1371ff43f19636a8ff2a287e330eeb11">DeleteTable</a>(std::string_view ns, std::string_view name) = 0;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#a1756e757adccb1f7315e5645c3496516"> 185</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#a1756e757adccb1f7315e5645c3496516">RenameTable</a>(std::string_view from_ns,</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> std::string_view from_name, std::string_view to_ns,</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> std::string_view to_name) = 0;</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"><a class="line" href="classiceberg_1_1sql_1_1CatalogStore.html#aa8662070d94c72e3671367a726f7427e"> 198</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1sql_1_1CatalogStore.html#aa8662070d94c72e3671367a726f7427e">RunInTransaction</a>(<span class="keyword">const</span> std::function&lt;Status()&gt;&amp; body) = 0;</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span>};</div>
</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"><a class="line" href="namespaceiceberg_1_1sql.html#adf05d65d0b4ba42b506ec295efa0f43e"> 208</a></span>ICEBERG_SQL_CATALOG_EXPORT <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;CatalogStore&gt;</a>&gt; <a class="code hl_function" href="namespaceiceberg_1_1sql.html#adf05d65d0b4ba42b506ec295efa0f43e">MakeSqliteCatalogStore</a>(</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html">CatalogStoreOptions</a>&amp; options);</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span>ICEBERG_SQL_CATALOG_EXPORT <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;CatalogStore&gt;</a>&gt;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="namespaceiceberg_1_1sql.html#af2c675c64474ef7068ab0b5ade651743"> 220</a></span><a class="code hl_function" href="namespaceiceberg_1_1sql.html#af2c675c64474ef7068ab0b5ade651743">MakePostgreSqlCatalogStore</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html">CatalogStoreOptions</a>&amp; options);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"><a class="line" href="namespaceiceberg_1_1sql.html#abfc2441c2dbabf47d15ed25df775f7d4"> 230</a></span>ICEBERG_SQL_CATALOG_EXPORT <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;CatalogStore&gt;</a>&gt; <a class="code hl_function" href="namespaceiceberg_1_1sql.html#abfc2441c2dbabf47d15ed25df775f7d4">MakeMySqlCatalogStore</a>(</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1sql_1_1CatalogStoreOptions.html">CatalogStoreOptions</a>&amp; options);</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> </div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span>} <span class="comment">// namespace iceberg::sql</span></div>
</div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html">iceberg::sql::CatalogStore</a></div><div class="ttdoc">Semantic, driver-agnostic storage interface for the SQL catalog.</div><div class="ttdef"><b>Definition</b> catalog_store.h:72</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a047c2b1353469bfdda8739b846fbde46"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a047c2b1353469bfdda8739b846fbde46">iceberg::sql::CatalogStore::GetTableMetadataLocation</a></div><div class="ttdeci">virtual Result&lt; std::optional&lt; std::string &gt; &gt; GetTableMetadataLocation(std::string_view ns, std::string_view name)=0</div><div class="ttdoc">Return the current metadata location of (ns, name).</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a1371ff43f19636a8ff2a287e330eeb11"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a1371ff43f19636a8ff2a287e330eeb11">iceberg::sql::CatalogStore::DeleteTable</a></div><div class="ttdeci">virtual Result&lt; int64_t &gt; DeleteTable(std::string_view ns, std::string_view name)=0</div><div class="ttdoc">Delete the table row (ns, name), if present.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a1756e757adccb1f7315e5645c3496516"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a1756e757adccb1f7315e5645c3496516">iceberg::sql::CatalogStore::RenameTable</a></div><div class="ttdeci">virtual Result&lt; int64_t &gt; RenameTable(std::string_view from_ns, std::string_view from_name, std::string_view to_ns, std::string_view to_name)=0</div><div class="ttdoc">Move a table row to a new namespace and/or name.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a393d3119d8b17efa36f7021189fd02e4"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a393d3119d8b17efa36f7021189fd02e4">iceberg::sql::CatalogStore::InsertTable</a></div><div class="ttdeci">virtual Status InsertTable(std::string_view ns, std::string_view name, std::string_view metadata_location)=0</div><div class="ttdoc">Insert a new table row with the given metadata location.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a56167796110713ca46b7b6980b7e6949"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a56167796110713ca46b7b6980b7e6949">iceberg::sql::CatalogStore::UpdateTableMetadataLocation</a></div><div class="ttdeci">virtual Result&lt; int64_t &gt; UpdateTableMetadataLocation(std::string_view ns, std::string_view name, std::string_view new_location, std::string_view new_previous_location, std::string_view expected_current_location)=0</div><div class="ttdoc">Conditionally update a table's metadata location (optimistic CAS).</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a6093a2b131cf6553f26167813357c83b"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a6093a2b131cf6553f26167813357c83b">iceberg::sql::CatalogStore::DeleteNamespaceProperty</a></div><div class="ttdeci">virtual Status DeleteNamespaceProperty(std::string_view ns, std::string_view key)=0</div><div class="ttdoc">Delete the property row identified by (ns, key), if present.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a6a9fbcc42c6934308313ddf7577fcb88"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a6a9fbcc42c6934308313ddf7577fcb88">iceberg::sql::CatalogStore::GetNamespaceProperties</a></div><div class="ttdeci">virtual Result&lt; std::vector&lt; NamespaceProperty &gt; &gt; GetNamespaceProperties(std::string_view ns)=0</div><div class="ttdoc">Return all property rows stored for ns.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a7f898b5381a60b8caca41f97a2eedddb"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a7f898b5381a60b8caca41f97a2eedddb">iceberg::sql::CatalogStore::DeleteNamespace</a></div><div class="ttdeci">virtual Result&lt; int64_t &gt; DeleteNamespace(std::string_view ns)=0</div><div class="ttdoc">Delete all property rows for ns.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a85ade7cc91c5f1db1ea9b5ab4f993ab7"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a85ade7cc91c5f1db1ea9b5ab4f993ab7">iceberg::sql::CatalogStore::InsertNamespaceProperty</a></div><div class="ttdeci">virtual Status InsertNamespaceProperty(std::string_view ns, std::string_view key, std::optional&lt; std::string_view &gt; value)=0</div><div class="ttdoc">Insert one property row for ns.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_a8efafbd14e65aab9f3f876ca1843cda6"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#a8efafbd14e65aab9f3f876ca1843cda6">iceberg::sql::CatalogStore::TableExists</a></div><div class="ttdeci">virtual Result&lt; bool &gt; TableExists(std::string_view ns, std::string_view name)=0</div><div class="ttdoc">Whether a row exists for the table (ns, name).</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_aa8662070d94c72e3671367a726f7427e"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#aa8662070d94c72e3671367a726f7427e">iceberg::sql::CatalogStore::RunInTransaction</a></div><div class="ttdeci">virtual Status RunInTransaction(const std::function&lt; Status()&gt; &amp;body)=0</div><div class="ttdoc">Execute body atomically inside a single transaction.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_ab0cfe85e5003d43edb4ff05c7b53acbd"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#ab0cfe85e5003d43edb4ff05c7b53acbd">iceberg::sql::CatalogStore::ListTableNames</a></div><div class="ttdeci">virtual Result&lt; std::vector&lt; std::string &gt; &gt; ListTableNames(std::string_view ns)=0</div><div class="ttdoc">Return the table names stored directly under ns.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_ae56f64bd20de171ac60a6b5540f4f7a9"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#ae56f64bd20de171ac60a6b5540f4f7a9">iceberg::sql::CatalogStore::Initialize</a></div><div class="ttdeci">virtual Status Initialize()=0</div><div class="ttdoc">Create the backing tables if they do not already exist.</div></div>
<div class="ttc" id="aclassiceberg_1_1sql_1_1CatalogStore_html_aef850caa1650a3bf7b3942089ac56727"><div class="ttname"><a href="classiceberg_1_1sql_1_1CatalogStore.html#aef850caa1650a3bf7b3942089ac56727">iceberg::sql::CatalogStore::ListNamespaceNames</a></div><div class="ttdeci">virtual Result&lt; std::vector&lt; std::string &gt; &gt; ListNamespaceNames()=0</div><div class="ttdoc">Return the distinct namespace identifiers known to this catalog.</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_1_1sql_html_abfc2441c2dbabf47d15ed25df775f7d4"><div class="ttname"><a href="namespaceiceberg_1_1sql.html#abfc2441c2dbabf47d15ed25df775f7d4">iceberg::sql::MakeMySqlCatalogStore</a></div><div class="ttdeci">ICEBERG_SQL_CATALOG_EXPORT Result&lt; std::shared_ptr&lt; CatalogStore &gt; &gt; MakeMySqlCatalogStore(const CatalogStoreOptions &amp;options)</div><div class="ttdoc">Build the built-in MySQL catalog store (sqlpp23 + libmysqlclient).</div></div>
<div class="ttc" id="anamespaceiceberg_1_1sql_html_adf05d65d0b4ba42b506ec295efa0f43e"><div class="ttname"><a href="namespaceiceberg_1_1sql.html#adf05d65d0b4ba42b506ec295efa0f43e">iceberg::sql::MakeSqliteCatalogStore</a></div><div class="ttdeci">ICEBERG_SQL_CATALOG_EXPORT Result&lt; std::shared_ptr&lt; CatalogStore &gt; &gt; MakeSqliteCatalogStore(const CatalogStoreOptions &amp;options)</div><div class="ttdoc">Build the built-in SQLite catalog store (sqlpp23 + SQLite3).</div></div>
<div class="ttc" id="anamespaceiceberg_1_1sql_html_af2c675c64474ef7068ab0b5ade651743"><div class="ttname"><a href="namespaceiceberg_1_1sql.html#af2c675c64474ef7068ab0b5ade651743">iceberg::sql::MakePostgreSqlCatalogStore</a></div><div class="ttdeci">ICEBERG_SQL_CATALOG_EXPORT Result&lt; std::shared_ptr&lt; CatalogStore &gt; &gt; MakePostgreSqlCatalogStore(const CatalogStoreOptions &amp;options)</div><div class="ttdoc">Build the built-in PostgreSQL catalog store (sqlpp23 + libpq).</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_1sql_1_1CatalogStoreOptions_html"><div class="ttname"><a href="structiceberg_1_1sql_1_1CatalogStoreOptions.html">iceberg::sql::CatalogStoreOptions</a></div><div class="ttdoc">Connection parameters used to construct a built-in CatalogStore.</div><div class="ttdef"><b>Definition</b> catalog_store.h:52</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1CatalogStoreOptions_html_a1b359f23e89662800bc7669800cd202c"><div class="ttname"><a href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#a1b359f23e89662800bc7669800cd202c">iceberg::sql::CatalogStoreOptions::uri</a></div><div class="ttdeci">std::string uri</div><div class="ttdoc">Connector-specific connection string.</div><div class="ttdef"><b>Definition</b> catalog_store.h:56</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1CatalogStoreOptions_html_ab66d5b70a3b23d82a0d8dae1689cfe9e"><div class="ttname"><a href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#ab66d5b70a3b23d82a0d8dae1689cfe9e">iceberg::sql::CatalogStoreOptions::catalog_name</a></div><div class="ttdeci">std::string catalog_name</div><div class="ttdoc">Logical catalog name used to scope rows.</div><div class="ttdef"><b>Definition</b> catalog_store.h:54</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1CatalogStoreOptions_html_ab678411ded511db3f4d3fc34ad146e8b"><div class="ttname"><a href="structiceberg_1_1sql_1_1CatalogStoreOptions.html#ab678411ded511db3f4d3fc34ad146e8b">iceberg::sql::CatalogStoreOptions::properties</a></div><div class="ttdeci">std::unordered_map&lt; std::string, std::string &gt; properties</div><div class="ttdoc">Additional connector-specific properties.</div><div class="ttdef"><b>Definition</b> catalog_store.h:60</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1NamespaceProperty_html"><div class="ttname"><a href="structiceberg_1_1sql_1_1NamespaceProperty.html">iceberg::sql::NamespaceProperty</a></div><div class="ttdoc">A namespace property row.</div><div class="ttdef"><b>Definition</b> catalog_store.h:44</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1NamespaceProperty_html_a2d37c4e3b9d9e67b263bb0533385c791"><div class="ttname"><a href="structiceberg_1_1sql_1_1NamespaceProperty.html#a2d37c4e3b9d9e67b263bb0533385c791">iceberg::sql::NamespaceProperty::value</a></div><div class="ttdeci">std::optional&lt; std::string &gt; value</div><div class="ttdoc">Property value, or std::nullopt for SQL NULL.</div><div class="ttdef"><b>Definition</b> catalog_store.h:48</div></div>
<div class="ttc" id="astructiceberg_1_1sql_1_1NamespaceProperty_html_a4863c14bf493372de7d3a4281ee96ad3"><div class="ttname"><a href="structiceberg_1_1sql_1_1NamespaceProperty.html#a4863c14bf493372de7d3a4281ee96ad3">iceberg::sql::NamespaceProperty::key</a></div><div class="ttdeci">std::string key</div><div class="ttdoc">Property key.</div><div class="ttdef"><b>Definition</b> catalog_store.h:46</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>