feat(clients): add nim-allographer client with BaraDB driver support
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled

- Pure Nim wire protocol client (async + sync, no C FFI)
- Query Builder: fluent API, SQL generator, execution, transactions
- Schema Builder: create/alter/drop tables, column operations
- Connection pool with aging and timeout handling
- ORM integration via compile-time DB_BARADB switch
- Tests: test_open, test_query
- Documentation: README.md, PLAN_BARADB.md
This commit is contained in:
2026-05-21 15:49:11 +03:00
parent 2d310a33a1
commit 6bfc5b3a3c
654 changed files with 109419 additions and 0 deletions
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/allographer/query_builder/models/postgres/poatgres_transaction</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="../../../nimdoc.out.css?v=2.2.8">
<!-- JS -->
<script type="text/javascript" src="../../../dochack.js?v=2.2.8"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">src/allographer/query_builder/models/postgres/poatgres_transaction</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="../../../theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#18" id="68">Templates</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">transaction
<li><a class="reference" href="#transaction.t%2CPostgresConnections%2Cuntyped" title="transaction(rdb: PostgresConnections; callback: untyped)">transaction(rdb: PostgresConnections; callback: untyped)</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"></p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="postgres_types.html">postgres_types</a>
</dl>
</div>
<div class="section" id="18">
<h1><a class="toc-backref" href="#18">Templates</a></h1>
<dl class="item">
<div id="transaction-templates-all">
<div id="transaction.t,PostgresConnections,untyped">
<dt><pre><span class="Keyword">template</span> <a href="#transaction.t%2CPostgresConnections%2Cuntyped"><span class="Identifier">transaction</span></a><span class="Other">(</span><span class="Identifier">rdb</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">;</span> <span class="Identifier">callback</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2026-03-24 13:25:35 UTC</small>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,2 @@
nimTitle poatgres_transaction query_builder/models/postgres/poatgres_transaction.html module src/allographer/query_builder/models/postgres/poatgres_transaction 0
nim transaction query_builder/models/postgres/poatgres_transaction.html#transaction.t,PostgresConnections,untyped template transaction(rdb: PostgresConnections; callback: untyped) 41
@@ -0,0 +1,677 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/allographer/query_builder/models/postgres/postgres_exec</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="../../../nimdoc.out.css?v=2.2.8">
<!-- JS -->
<script type="text/javascript" src="../../../dochack.js?v=2.2.8"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">src/allographer/query_builder/models/postgres/postgres_exec</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="../../../theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">avg
<li><a class="reference" href="#avg%2CPostgresQuery%2Cstring" title="avg(self: PostgresQuery; column: string): Future[Option[float]]">avg(self: PostgresQuery; column: string): Future[Option[float]]</a></li>
</ul>
<ul class="simple nested-toc-section">begin
<li><a class="reference" href="#begin%2CPostgresConnections" title="begin(self: PostgresConnections): owned(Future[void])">begin(self: PostgresConnections): owned(Future[void])</a></li>
</ul>
<ul class="simple nested-toc-section">columns
<li><a class="reference" href="#columns%2CPostgresQuery" title="columns(self: PostgresQuery): Future[seq[string]]">columns(self: PostgresQuery): Future[seq[string]]</a></li>
</ul>
<ul class="simple nested-toc-section">commit
<li><a class="reference" href="#commit%2CPostgresConnections" title="commit(self: PostgresConnections): owned(Future[void])">commit(self: PostgresConnections): owned(Future[void])</a></li>
</ul>
<ul class="simple nested-toc-section">count
<li><a class="reference" href="#count%2CPostgresQuery" title="count(self: PostgresQuery): Future[int]">count(self: PostgresQuery): Future[int]</a></li>
</ul>
<ul class="simple nested-toc-section">delete
<li><a class="reference" href="#delete%2CPostgresQuery" title="delete(self: PostgresQuery): owned(Future[void])">delete(self: PostgresQuery): owned(Future[void])</a></li>
<li><a class="reference" href="#delete%2CPostgresQuery%2Cint%2Cstring" title="delete(self: PostgresQuery; id: int; key = &quot;id&quot;): owned(Future[void])">delete(self: PostgresQuery; id: int; key = &quot;id&quot;): owned(Future[void])</a></li>
</ul>
<ul class="simple nested-toc-section">exec
<li><a class="reference" href="#exec%2CRawPostgresQuery" title="exec(self: RawPostgresQuery): owned(Future[void])">exec(self: RawPostgresQuery): owned(Future[void])</a></li>
</ul>
<ul class="simple nested-toc-section">find
<li><a class="reference" href="#find%2CPostgresQuery%2Cint%2Cstring" title="find(self: PostgresQuery; id: int; key = &quot;id&quot;): Future[Option[JsonNode]]">find(self: PostgresQuery; id: int; key = &quot;id&quot;): Future[Option[JsonNode]]</a></li>
<li><a class="reference" href="#find%2CPostgresQuery%2Cstring%2Cstring" title="find(self: PostgresQuery; id: string; key = &quot;id&quot;): Future[Option[JsonNode]]">find(self: PostgresQuery; id: string; key = &quot;id&quot;): Future[Option[JsonNode]]</a></li>
</ul>
<ul class="simple nested-toc-section">findPlain
<li><a class="reference" href="#findPlain%2CPostgresQuery%2Cint%2Cstring" title="findPlain(self: PostgresQuery; id: int; key = &quot;id&quot;): Future[seq[string]]">findPlain(self: PostgresQuery; id: int; key = &quot;id&quot;): Future[seq[string]]</a></li>
<li><a class="reference" href="#findPlain%2CPostgresQuery%2Cstring%2Cstring" title="findPlain(self: PostgresQuery; id: string; key = &quot;id&quot;): Future[seq[string]]">findPlain(self: PostgresQuery; id: string; key = &quot;id&quot;): Future[seq[string]]</a></li>
</ul>
<ul class="simple nested-toc-section">first
<li><a class="reference" href="#first%2CPostgresQuery" title="first(self: PostgresQuery): Future[Option[JsonNode]]">first(self: PostgresQuery): Future[Option[JsonNode]]</a></li>
<li><a class="reference" href="#first%2CRawPostgresQuery" title="first(self: RawPostgresQuery): Future[Option[JsonNode]]">first(self: RawPostgresQuery): Future[Option[JsonNode]]</a></li>
</ul>
<ul class="simple nested-toc-section">firstPlain
<li><a class="reference" href="#firstPlain%2CPostgresQuery" title="firstPlain(self: PostgresQuery): Future[seq[string]]">firstPlain(self: PostgresQuery): Future[seq[string]]</a></li>
<li><a class="reference" href="#firstPlain%2CRawPostgresQuery" title="firstPlain(self: RawPostgresQuery): Future[seq[string]]">firstPlain(self: RawPostgresQuery): Future[seq[string]]</a></li>
</ul>
<ul class="simple nested-toc-section">get
<li><a class="reference" href="#get%2CPostgresQuery" title="get(self: PostgresQuery): Future[seq[JsonNode]]">get(self: PostgresQuery): Future[seq[JsonNode]]</a></li>
<li><a class="reference" href="#get%2CRawPostgresQuery" title="get(self: RawPostgresQuery): Future[seq[JsonNode]]">get(self: RawPostgresQuery): Future[seq[JsonNode]]</a></li>
</ul>
<ul class="simple nested-toc-section">getPlain
<li><a class="reference" href="#getPlain%2CPostgresQuery" title="getPlain(self: PostgresQuery): Future[seq[seq[string]]]">getPlain(self: PostgresQuery): Future[seq[seq[string]]]</a></li>
<li><a class="reference" href="#getPlain%2CRawPostgresQuery" title="getPlain(self: RawPostgresQuery): Future[seq[seq[string]]]">getPlain(self: RawPostgresQuery): Future[seq[seq[string]]]</a></li>
</ul>
<ul class="simple nested-toc-section">insert
<li><a class="reference" href="#insert%2CPostgresQuery%2CJsonNode" title="insert(self: PostgresQuery; items: JsonNode): owned(Future[void])">insert(self: PostgresQuery; items: JsonNode): owned(Future[void])</a></li>
<li><a class="reference" href="#insert%2CPostgresQuery%2Cseq%5BJsonNode%5D" title="insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void])">insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void])</a></li>
<li><a class="reference" href="#insert%2CPostgresQuery%2Cseq%5BT%5D" title="insert[T](self: PostgresQuery; items: seq[T]): owned(Future[void])">insert[T](self: PostgresQuery; items: seq[T]): owned(Future[void])</a></li>
<li><a class="reference" href="#insert%2CPostgresQuery%2CT" title="insert[T](self: PostgresQuery; items: T): owned(Future[void])">insert[T](self: PostgresQuery; items: T): owned(Future[void])</a></li>
</ul>
<ul class="simple nested-toc-section">insertId
<li><a class="reference" href="#insertId%2CPostgresQuery%2CJsonNode%2Cstring" title="insertId(self: PostgresQuery; items: JsonNode; key = &quot;id&quot;): Future[string]">insertId(self: PostgresQuery; items: JsonNode; key = &quot;id&quot;): Future[string]</a></li>
<li><a class="reference" href="#insertId%2CPostgresQuery%2Cseq%5BJsonNode%5D%2Cstring" title="insertId(self: PostgresQuery; items: seq[JsonNode]; key = &quot;id&quot;): Future[
seq[string]]">insertId(self: PostgresQuery; items: seq[JsonNode]; key = &quot;id&quot;): Future[
seq[string]]</a></li>
<li><a class="reference" href="#insertId%2CPostgresQuery%2Cseq%5BT%5D%2Cstring" title="insertId[T](self: PostgresQuery; items: seq[T]; key = &quot;id&quot;): Future[seq[string]]">insertId[T](self: PostgresQuery; items: seq[T]; key = &quot;id&quot;): Future[seq[string]]</a></li>
<li><a class="reference" href="#insertId%2CPostgresQuery%2CT%2Cstring" title="insertId[T](self: PostgresQuery; items: T; key = &quot;id&quot;): Future[string]">insertId[T](self: PostgresQuery; items: T; key = &quot;id&quot;): Future[string]</a></li>
</ul>
<ul class="simple nested-toc-section">max
<li><a class="reference" href="#max%2CPostgresQuery%2Cstring" title="max(self: PostgresQuery; column: string): Future[Option[string]]">max(self: PostgresQuery; column: string): Future[Option[string]]</a></li>
</ul>
<ul class="simple nested-toc-section">min
<li><a class="reference" href="#min%2CPostgresQuery%2Cstring" title="min(self: PostgresQuery; column: string): Future[Option[string]]">min(self: PostgresQuery; column: string): Future[Option[string]]</a></li>
</ul>
<ul class="simple nested-toc-section">rollback
<li><a class="reference" href="#rollback%2CPostgresConnections" title="rollback(self: PostgresConnections): owned(Future[void])">rollback(self: PostgresConnections): owned(Future[void])</a></li>
</ul>
<ul class="simple nested-toc-section">sum
<li><a class="reference" href="#sum%2CPostgresQuery%2Cstring" title="sum(self: PostgresQuery; column: string): Future[Option[float]]">sum(self: PostgresQuery; column: string): Future[Option[float]]</a></li>
</ul>
<ul class="simple nested-toc-section">update
<li><a class="reference" href="#update%2CPostgresQuery%2CJsonNode" title="update(self: PostgresQuery; items: JsonNode): owned(Future[void])">update(self: PostgresQuery; items: JsonNode): owned(Future[void])</a></li>
<li><a class="reference" href="#update%2CPostgresQuery%2CT" title="update[T](self: PostgresQuery; items: T): owned(Future[void])">update[T](self: PostgresQuery; items: T): owned(Future[void])</a></li>
</ul>
</ul>
</details>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#18" id="68">Templates</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">seeder
<li><a class="reference" href="#seeder.t%2CPostgresConnections%2Cstring%2Cstring%2Cuntyped" title="seeder(rdb: PostgresConnections; tableName, column: string; body: untyped): untyped">seeder(rdb: PostgresConnections; tableName, column: string; body: untyped): untyped</a></li>
<li><a class="reference" href="#seeder.t%2CPostgresConnections%2Cstring%2Cuntyped" title="seeder(rdb: PostgresConnections; tableName: string; body: untyped): untyped">seeder(rdb: PostgresConnections; tableName: string; body: untyped): untyped</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"></p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="../../libs/postgres/postgres_lib.html">../../libs/postgres/postgres_lib</a>, <a class="reference external" href="../../libs/postgres/postgres_impl.html">../../libs/postgres/postgres_impl</a>, <a class="reference external" href="../../log.html">../../log</a>, <a class="reference external" href="../database_types.html">../database_types</a>, <a class="reference external" href="query/postgres_builder.html">query/postgres_builder</a>, <a class="reference external" href="postgres_types.html">postgres_types</a>
</dl>
</div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="avg-procs-all">
<div id="avg,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#avg%2CPostgresQuery%2Cstring"><span class="Identifier">avg</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">float</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span>
<span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">JsonParsingError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="begin-procs-all">
<div id="begin,PostgresConnections">
<dt><pre><span class="Keyword">proc</span> <a href="#begin%2CPostgresConnections"><span class="Identifier">begin</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="columns-procs-all">
<div id="columns,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#columns%2CPostgresQuery"><span class="Identifier">columns</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
get columns sequence from table
</dd>
</div>
</div>
<div id="commit-procs-all">
<div id="commit,PostgresConnections">
<dt><pre><span class="Keyword">proc</span> <a href="#commit%2CPostgresConnections"><span class="Identifier">commit</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="count-procs-all">
<div id="count,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#count%2CPostgresQuery"><span class="Identifier">count</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">int</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">JsonParsingError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="delete-procs-all">
<div id="delete,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#delete%2CPostgresQuery"><span class="Identifier">delete</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="delete,PostgresQuery,int,string">
<dt><pre><span class="Keyword">proc</span> <a href="#delete%2CPostgresQuery%2Cint%2Cstring"><span class="Identifier">delete</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="exec-procs-all">
<div id="exec,RawPostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#exec%2CRawPostgresQuery"><span class="Identifier">exec</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
It is only used with raw()
</dd>
</div>
</div>
<div id="find-procs-all">
<div id="find,PostgresQuery,int,string">
<dt><pre><span class="Keyword">proc</span> <a href="#find%2CPostgresQuery%2Cint%2Cstring"><span class="Identifier">find</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="find,PostgresQuery,string,string">
<dt><pre><span class="Keyword">proc</span> <a href="#find%2CPostgresQuery%2Cstring%2Cstring"><span class="Identifier">find</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="findPlain-procs-all">
<div id="findPlain,PostgresQuery,int,string">
<dt><pre><span class="Keyword">proc</span> <a href="#findPlain%2CPostgresQuery%2Cint%2Cstring"><span class="Identifier">findPlain</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="findPlain,PostgresQuery,string,string">
<dt><pre><span class="Keyword">proc</span> <a href="#findPlain%2CPostgresQuery%2Cstring%2Cstring"><span class="Identifier">findPlain</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="first-procs-all">
<div id="first,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#first%2CPostgresQuery"><span class="Identifier">first</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="first,RawPostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#first%2CRawPostgresQuery"><span class="Identifier">first</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span>
<span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">JsonParsingError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">,</span>
<span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span> <span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
It is only used with raw()
</dd>
</div>
</div>
<div id="firstPlain-procs-all">
<div id="firstPlain,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#firstPlain%2CPostgresQuery"><span class="Identifier">firstPlain</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="firstPlain,RawPostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#firstPlain%2CRawPostgresQuery"><span class="Identifier">firstPlain</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
It is only used with raw()
</dd>
</div>
</div>
<div id="get-procs-all">
<div id="get,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#get%2CPostgresQuery"><span class="Identifier">get</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="get,RawPostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#get%2CRawPostgresQuery"><span class="Identifier">get</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">JsonParsingError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
It is only used with raw()
</dd>
</div>
</div>
<div id="getPlain-procs-all">
<div id="getPlain,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#getPlain%2CPostgresQuery"><span class="Identifier">getPlain</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="getPlain,RawPostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#getPlain%2CRawPostgresQuery"><span class="Identifier">getPlain</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
It is only used with raw()
</dd>
</div>
</div>
<div id="insert-procs-all">
<div id="insert,PostgresQuery,JsonNode">
<dt><pre><span class="Keyword">proc</span> <a href="#insert%2CPostgresQuery%2CJsonNode"><span class="Identifier">insert</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">JsonNode</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
items is <tt class="docutils literal"><span class="pre"><span class="Identifier">JObject</span></span></tt>
</dd>
</div>
<div id="insert,PostgresQuery,seq[JsonNode]">
<dt><pre><span class="Keyword">proc</span> <a href="#insert%2CPostgresQuery%2Cseq%5BJsonNode%5D"><span class="Identifier">insert</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="insert,PostgresQuery,seq[T]">
<dt><pre><span class="Keyword">proc</span> <a href="#insert%2CPostgresQuery%2Cseq%5BT%5D"><span class="Identifier">insert</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="insert,PostgresQuery,T">
<dt><pre><span class="Keyword">proc</span> <a href="#insert%2CPostgresQuery%2CT"><span class="Identifier">insert</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="insertId-procs-all">
<div id="insertId,PostgresQuery,JsonNode,string">
<dt><pre><span class="Keyword">proc</span> <a href="#insertId%2CPostgresQuery%2CJsonNode%2Cstring"><span class="Identifier">insertId</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">JsonNode</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="insertId,PostgresQuery,seq[JsonNode],string">
<dt><pre><span class="Keyword">proc</span> <a href="#insertId%2CPostgresQuery%2Cseq%5BJsonNode%5D%2Cstring"><span class="Identifier">insertId</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span>
<span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span>
<span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span>
<span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span>
<span class="Identifier">WriteIOEffect</span><span class="Other">,</span> <span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="insertId,PostgresQuery,seq[T],string">
<dt><pre><span class="Keyword">proc</span> <a href="#insertId%2CPostgresQuery%2Cseq%5BT%5D%2Cstring"><span class="Identifier">insertId</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span>
<span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="insertId,PostgresQuery,T,string">
<dt><pre><span class="Keyword">proc</span> <a href="#insertId%2CPostgresQuery%2CT%2Cstring"><span class="Identifier">insertId</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">;</span> <span class="Identifier">key</span> <span class="Other">=</span> <span class="StringLit">&quot;id&quot;</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="max-procs-all">
<div id="max,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#max%2CPostgresQuery%2Cstring"><span class="Identifier">max</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span>
<span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">JsonParsingError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="min-procs-all">
<div id="min,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#min%2CPostgresQuery%2Cstring"><span class="Identifier">min</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span>
<span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">JsonParsingError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="rollback-procs-all">
<div id="rollback,PostgresConnections">
<dt><pre><span class="Keyword">proc</span> <a href="#rollback%2CPostgresConnections"><span class="Identifier">rollback</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="sum-procs-all">
<div id="sum,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#sum%2CPostgresQuery%2Cstring"><span class="Identifier">sum</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">Option</span><span class="Other">[</span><span class="Identifier">float</span><span class="Other">]</span><span class="Other">]</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span>
<span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">,</span> <span class="Identifier">JsonParsingError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="update-procs-all">
<div id="update,PostgresQuery,JsonNode">
<dt><pre><span class="Keyword">proc</span> <a href="#update%2CPostgresQuery%2CJsonNode"><span class="Identifier">update</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">JsonNode</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">,</span> <span class="Identifier">OSError</span><span class="Other">,</span> <span class="Identifier">IOError</span><span class="Other">,</span> <span class="Identifier">ValueError</span><span class="Other">,</span> <span class="Identifier">DbError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span>
<span class="Identifier">RootEffect</span><span class="Other">,</span> <span class="Identifier">WriteDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadDirEffect</span><span class="Other">,</span> <span class="Identifier">ReadIOEffect</span><span class="Other">,</span> <span class="Identifier">WriteIOEffect</span><span class="Other">,</span>
<span class="Identifier">TimeEffect</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="update,PostgresQuery,T">
<dt><pre><span class="Keyword">proc</span> <a href="#update%2CPostgresQuery%2CT"><span class="Identifier">update</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">owned</span><span class="Other">(</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">)</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">stackTrace</span><span class="Other">:</span> <span class="DecNumber">false</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
</dl>
</div>
<div class="section" id="18">
<h1><a class="toc-backref" href="#18">Templates</a></h1>
<dl class="item">
<div id="seeder-templates-all">
<div id="seeder.t,PostgresConnections,string,string,untyped">
<dt><pre><span class="Keyword">template</span> <a href="#seeder.t%2CPostgresConnections%2Cstring%2Cstring%2Cuntyped"><span class="Identifier">seeder</span></a><span class="Other">(</span><span class="Identifier">rdb</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">;</span> <span class="Identifier">tableName</span><span class="Other">,</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">body</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">untyped</span></pre></dt>
<dd>
The <tt class="docutils literal"><span class="pre"><span class="Identifier">seeder</span></span></tt> block allows the code in the block to work only when the table or specified column is empty.
</dd>
</div>
<div id="seeder.t,PostgresConnections,string,untyped">
<dt><pre><span class="Keyword">template</span> <a href="#seeder.t%2CPostgresConnections%2Cstring%2Cuntyped"><span class="Identifier">seeder</span></a><span class="Other">(</span><span class="Identifier">rdb</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">;</span> <span class="Identifier">tableName</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">body</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">untyped</span></pre></dt>
<dd>
The <tt class="docutils literal"><span class="pre"><span class="Identifier">seeder</span></span></tt> block allows the code in the block to work only when the table is empty.
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2026-03-24 13:25:34 UTC</small>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,48 @@
nimTitle postgres_exec query_builder/models/postgres/postgres_exec.html module src/allographer/query_builder/models/postgres/postgres_exec 0
nim get query_builder/models/postgres/postgres_exec.html#get,PostgresQuery proc get(self: PostgresQuery): Future[seq[JsonNode]] 419
nim first query_builder/models/postgres/postgres_exec.html#first,PostgresQuery proc first(self: PostgresQuery): Future[Option[JsonNode]] 431
nim find query_builder/models/postgres/postgres_exec.html#find,PostgresQuery,string,string proc find(self: PostgresQuery; id: string; key = "id"): Future[Option[JsonNode]] 443
nim find query_builder/models/postgres/postgres_exec.html#find,PostgresQuery,int,string proc find(self: PostgresQuery; id: int; key = "id"): Future[Option[JsonNode]] 456
nim getPlain query_builder/models/postgres/postgres_exec.html#getPlain,PostgresQuery proc getPlain(self: PostgresQuery): Future[seq[seq[string]]] 461
nim firstPlain query_builder/models/postgres/postgres_exec.html#firstPlain,PostgresQuery proc firstPlain(self: PostgresQuery): Future[seq[string]] 473
nim findPlain query_builder/models/postgres/postgres_exec.html#findPlain,PostgresQuery,string,string proc findPlain(self: PostgresQuery; id: string; key = "id"): Future[seq[string]] 485
nim findPlain query_builder/models/postgres/postgres_exec.html#findPlain,PostgresQuery,int,string proc findPlain(self: PostgresQuery; id: int; key = "id"): Future[seq[string]] 498
nim insert query_builder/models/postgres/postgres_exec.html#insert,PostgresQuery,JsonNode proc insert(self: PostgresQuery; items: JsonNode): owned(Future[void]) 503
nim insert query_builder/models/postgres/postgres_exec.html#insert,PostgresQuery,seq[JsonNode] proc insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void]) 511
nim insertId query_builder/models/postgres/postgres_exec.html#insertId,PostgresQuery,JsonNode,string proc insertId(self: PostgresQuery; items: JsonNode; key = "id"): Future[string] 518
nim insertId query_builder/models/postgres/postgres_exec.html#insertId,PostgresQuery,seq[JsonNode],string proc insertId(self: PostgresQuery; items: seq[JsonNode]; key = "id"): Future[\n seq[string]] 526
nim insert query_builder/models/postgres/postgres_exec.html#insert,PostgresQuery,T proc insert[T](self: PostgresQuery; items: T): owned(Future[void]) 538
nim insert query_builder/models/postgres/postgres_exec.html#insert,PostgresQuery,seq[T] proc insert[T](self: PostgresQuery; items: seq[T]): owned(Future[void]) 545
nim insertId query_builder/models/postgres/postgres_exec.html#insertId,PostgresQuery,T,string proc insertId[T](self: PostgresQuery; items: T; key = "id"): Future[string] 553
nim insertId query_builder/models/postgres/postgres_exec.html#insertId,PostgresQuery,seq[T],string proc insertId[T](self: PostgresQuery; items: seq[T]; key = "id"): Future[seq[string]] 561
nim update query_builder/models/postgres/postgres_exec.html#update,PostgresQuery,JsonNode proc update(self: PostgresQuery; items: JsonNode): owned(Future[void]) 573
nim update query_builder/models/postgres/postgres_exec.html#update,PostgresQuery,T proc update[T](self: PostgresQuery; items: T): owned(Future[void]) 580
nim delete query_builder/models/postgres/postgres_exec.html#delete,PostgresQuery proc delete(self: PostgresQuery): owned(Future[void]) 587
nim delete query_builder/models/postgres/postgres_exec.html#delete,PostgresQuery,int,string proc delete(self: PostgresQuery; id: int; key = "id"): owned(Future[void]) 594
nim columns query_builder/models/postgres/postgres_exec.html#columns,PostgresQuery proc columns(self: PostgresQuery): Future[seq[string]] 602
nim count query_builder/models/postgres/postgres_exec.html#count,PostgresQuery proc count(self: PostgresQuery): Future[int] 615
nim min query_builder/models/postgres/postgres_exec.html#min,PostgresQuery,string proc min(self: PostgresQuery; column: string): Future[Option[string]] 627
nim max query_builder/models/postgres/postgres_exec.html#max,PostgresQuery,string proc max(self: PostgresQuery; column: string): Future[Option[string]] 644
nim avg query_builder/models/postgres/postgres_exec.html#avg,PostgresQuery,string proc avg(self: PostgresQuery; column: string): Future[Option[float]] 661
nim sum query_builder/models/postgres/postgres_exec.html#sum,PostgresQuery,string proc sum(self: PostgresQuery; column: string): Future[Option[float]] 672
nim begin query_builder/models/postgres/postgres_exec.html#begin,PostgresConnections proc begin(self: PostgresConnections): owned(Future[void]) 683
nim rollback query_builder/models/postgres/postgres_exec.html#rollback,PostgresConnections proc rollback(self: PostgresConnections): owned(Future[void]) 688
nim commit query_builder/models/postgres/postgres_exec.html#commit,PostgresConnections proc commit(self: PostgresConnections): owned(Future[void]) 693
nim get query_builder/models/postgres/postgres_exec.html#get,RawPostgresQuery proc get(self: RawPostgresQuery): Future[seq[JsonNode]] 698
nim getPlain query_builder/models/postgres/postgres_exec.html#getPlain,RawPostgresQuery proc getPlain(self: RawPostgresQuery): Future[seq[seq[string]]] 704
nim exec query_builder/models/postgres/postgres_exec.html#exec,RawPostgresQuery proc exec(self: RawPostgresQuery): owned(Future[void]) 710
nim first query_builder/models/postgres/postgres_exec.html#first,RawPostgresQuery proc first(self: RawPostgresQuery): Future[Option[JsonNode]] 716
nim firstPlain query_builder/models/postgres/postgres_exec.html#firstPlain,RawPostgresQuery proc firstPlain(self: RawPostgresQuery): Future[seq[string]] 722
nim seeder query_builder/models/postgres/postgres_exec.html#seeder.t,PostgresConnections,string,untyped template seeder(rdb: PostgresConnections; tableName: string; body: untyped): untyped 728
nim seeder query_builder/models/postgres/postgres_exec.html#seeder.t,PostgresConnections,string,string,untyped template seeder(rdb: PostgresConnections; tableName, column: string; body: untyped): untyped 735
nimgrp getplain query_builder/models/postgres/postgres_exec.html#getPlain-procs-all proc 461
nimgrp firstplain query_builder/models/postgres/postgres_exec.html#firstPlain-procs-all proc 473
nimgrp findplain query_builder/models/postgres/postgres_exec.html#findPlain-procs-all proc 485
nimgrp insertid query_builder/models/postgres/postgres_exec.html#insertId-procs-all proc 518
nimgrp delete query_builder/models/postgres/postgres_exec.html#delete-procs-all proc 587
nimgrp get query_builder/models/postgres/postgres_exec.html#get-procs-all proc 419
nimgrp update query_builder/models/postgres/postgres_exec.html#update-procs-all proc 573
nimgrp find query_builder/models/postgres/postgres_exec.html#find-procs-all proc 443
nimgrp first query_builder/models/postgres/postgres_exec.html#first-procs-all proc 431
nimgrp insert query_builder/models/postgres/postgres_exec.html#insert-procs-all proc 503
nimgrp seeder query_builder/models/postgres/postgres_exec.html#seeder-templates-all template 728
@@ -0,0 +1,149 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/allographer/query_builder/models/postgres/postgres_open</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="../../../nimdoc.out.css?v=2.2.8">
<!-- JS -->
<script type="text/javascript" src="../../../dochack.js?v=2.2.8"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">src/allographer/query_builder/models/postgres/postgres_open</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="../../../theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">dbOpen
<li><a class="reference" href="#dbOpen%2CtypePostgreSQL%2Cstring%2Cstring%2Cstring%2Cstring%2Cint%2Cint%2Cint%2Cstring" title="dbOpen(_: type PostgreSQL; database: string; user: string; password: string;
host: string; port: int; maxConnections = 1; timeout = 30;
shouldDisplayLog = false; shouldOutputLogFile = false; logDir = &quot;&quot;): PostgresConnections">dbOpen(_: type PostgreSQL; database: string; user: string; password: string;
host: string; port: int; maxConnections = 1; timeout = 30;
shouldDisplayLog = false; shouldOutputLogFile = false; logDir = &quot;&quot;): PostgresConnections</a></li>
<li><a class="reference" href="#dbOpen%2CtypePostgreSQL%2CDatabaseUrl%2Cint%2Cint%2Cstring" title="dbOpen(_: type PostgreSQL; databaseUrl: DatabaseUrl; maxConnections: int = 1;
timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false;
logDir = &quot;&quot;): PostgresConnections">dbOpen(_: type PostgreSQL; databaseUrl: DatabaseUrl; maxConnections: int = 1;
timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false;
logDir = &quot;&quot;): PostgresConnections</a></li>
<li><a class="reference" href="#dbOpen%2CtypePostgreSQL%2Cstring%2Cint%2Cint%2Cstring" title="dbOpen(_: type PostgreSQL; url: string; maxConnections: int = 1; timeout = 30;
shouldDisplayLog = false; shouldOutputLogFile = false; logDir = &quot;&quot;): PostgresConnections">dbOpen(_: type PostgreSQL; url: string; maxConnections: int = 1; timeout = 30;
shouldDisplayLog = false; shouldOutputLogFile = false; logDir = &quot;&quot;): PostgresConnections</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"></p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="../database_types.html">../database_types</a>, <a class="reference external" href="../../error.html">../../error</a>, <a class="reference external" href="../../libs/database_url.html">../../libs/database_url</a>, <a class="reference external" href="../../libs/postgres/postgres_rdb.html">../../libs/postgres/postgres_rdb</a>, <a class="reference external" href="../../libs/postgres/postgres_lib.html">../../libs/postgres/postgres_lib</a>, <a class="reference external" href="../../log.html">../../log</a>, <a class="reference external" href="postgres_types.html">postgres_types</a>
</dl>
</div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="dbOpen-procs-all">
<div id="dbOpen,typePostgreSQL,string,string,string,string,int,int,int,string">
<dt><pre><span class="Keyword">proc</span> <a href="#dbOpen%2CtypePostgreSQL%2Cstring%2Cstring%2Cstring%2Cstring%2Cint%2Cint%2Cint%2Cstring"><span class="Identifier">dbOpen</span></a><span class="Other">(</span><span class="Operator">_</span><span class="Other">:</span> <span class="Keyword">type</span> <span class="Identifier">PostgreSQL</span><span class="Other">;</span> <span class="Identifier">database</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">user</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">password</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">host</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">port</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">maxConnections</span> <span class="Other">=</span> <span class="DecNumber">1</span><span class="Other">;</span>
<span class="Identifier">timeout</span> <span class="Other">=</span> <span class="DecNumber">30</span><span class="Other">;</span> <span class="Identifier">shouldDisplayLog</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span> <span class="Identifier">shouldOutputLogFile</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span>
<span class="Identifier">logDir</span> <span class="Other">=</span> <span class="StringLit">&quot;&quot;</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a></pre></dt>
<dd>
</dd>
</div>
<div id="dbOpen,typePostgreSQL,DatabaseUrl,int,int,string">
<dt><pre><span class="Keyword">proc</span> <a href="#dbOpen%2CtypePostgreSQL%2CDatabaseUrl%2Cint%2Cint%2Cstring"><span class="Identifier">dbOpen</span></a><span class="Other">(</span><span class="Operator">_</span><span class="Other">:</span> <span class="Keyword">type</span> <span class="Identifier">PostgreSQL</span><span class="Other">;</span> <span class="Identifier">databaseUrl</span><span class="Other">:</span> <a href="../../libs/database_url.html#DatabaseUrl"><span class="Identifier">DatabaseUrl</span></a><span class="Other">;</span>
<span class="Identifier">maxConnections</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="DecNumber">1</span><span class="Other">;</span> <span class="Identifier">timeout</span> <span class="Other">=</span> <span class="DecNumber">30</span><span class="Other">;</span> <span class="Identifier">shouldDisplayLog</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span>
<span class="Identifier">shouldOutputLogFile</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span> <span class="Identifier">logDir</span> <span class="Other">=</span> <span class="StringLit">&quot;&quot;</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a></pre></dt>
<dd>
</dd>
</div>
<div id="dbOpen,typePostgreSQL,string,int,int,string">
<dt><pre><span class="Keyword">proc</span> <a href="#dbOpen%2CtypePostgreSQL%2Cstring%2Cint%2Cint%2Cstring"><span class="Identifier">dbOpen</span></a><span class="Other">(</span><span class="Operator">_</span><span class="Other">:</span> <span class="Keyword">type</span> <span class="Identifier">PostgreSQL</span><span class="Other">;</span> <span class="Identifier">url</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">maxConnections</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="DecNumber">1</span><span class="Other">;</span>
<span class="Identifier">timeout</span> <span class="Other">=</span> <span class="DecNumber">30</span><span class="Other">;</span> <span class="Identifier">shouldDisplayLog</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span> <span class="Identifier">shouldOutputLogFile</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">;</span>
<span class="Identifier">logDir</span> <span class="Other">=</span> <span class="StringLit">&quot;&quot;</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a></pre></dt>
<dd>
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2026-03-24 13:25:23 UTC</small>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,5 @@
nimTitle postgres_open query_builder/models/postgres/postgres_open.html module src/allographer/query_builder/models/postgres/postgres_open 0
nim dbOpen query_builder/models/postgres/postgres_open.html#dbOpen,typePostgreSQL,string,string,string,string,int,int,int,string proc dbOpen(_: type PostgreSQL; database: string; user: string; password: string;\n host: string; port: int; maxConnections = 1; timeout = 30;\n shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): PostgresConnections 13
nim dbOpen query_builder/models/postgres/postgres_open.html#dbOpen,typePostgreSQL,string,int,int,string proc dbOpen(_: type PostgreSQL; url: string; maxConnections: int = 1; timeout = 30;\n shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): PostgresConnections 41
nim dbOpen query_builder/models/postgres/postgres_open.html#dbOpen,typePostgreSQL,DatabaseUrl,int,int,string proc dbOpen(_: type PostgreSQL; databaseUrl: DatabaseUrl; maxConnections: int = 1;\n timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false;\n logDir = ""): PostgresConnections 46
nimgrp dbopen query_builder/models/postgres/postgres_open.html#dbOpen-procs-all proc 13
@@ -0,0 +1,475 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/allographer/query_builder/models/postgres/postgres_query</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="../../../nimdoc.out.css?v=2.2.8">
<!-- JS -->
<script type="text/javascript" src="../../../dochack.js?v=2.2.8"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">src/allographer/query_builder/models/postgres/postgres_query</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="../../../theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">distinct
<li><a class="reference" href="#distinct%2CPostgresQuery" title="`distinct`(self: PostgresQuery): PostgresQuery">`distinct`(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">groupBy
<li><a class="reference" href="#groupBy%2CPostgresQuery%2Cstring" title="groupBy(self: PostgresQuery; column: string): PostgresQuery">groupBy(self: PostgresQuery; column: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">having
<li><a class="reference" href="#having%2CPostgresQuery%2Cstring%2Cstring%2C" title="having(self: PostgresQuery; column: string; symbol: string;
value: string | int | float | bool): PostgresQuery">having(self: PostgresQuery; column: string; symbol: string;
value: string | int | float | bool): PostgresQuery</a></li>
<li><a class="reference" href="#having%2CPostgresQuery%2Cstring%2Cstring%2C_2" title="having(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery">having(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">join
<li><a class="reference" href="#join%2CPostgresQuery%2Cstring%2Cstring%2Cstring%2Cstring" title="join(self: PostgresQuery; table: string; column1: string; symbol: string;
column2: string): PostgresQuery">join(self: PostgresQuery; table: string; column1: string; symbol: string;
column2: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">leftJoin
<li><a class="reference" href="#leftJoin%2CPostgresQuery%2Cstring%2Cstring%2Cstring%2Cstring" title="leftJoin(self: PostgresQuery; table: string; column1: string; symbol: string;
column2: string): PostgresQuery">leftJoin(self: PostgresQuery; table: string; column1: string; symbol: string;
column2: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">limit
<li><a class="reference" href="#limit%2CPostgresQuery%2Cint" title="limit(self: PostgresQuery; num: int): PostgresQuery">limit(self: PostgresQuery; num: int): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">offset
<li><a class="reference" href="#offset%2CPostgresQuery%2Cint" title="offset(self: PostgresQuery; num: int): PostgresQuery">offset(self: PostgresQuery; num: int): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">orderBy
<li><a class="reference" href="#orderBy%2CPostgresQuery%2Cstring%2COrder" title="orderBy(self: PostgresQuery; column: string; order: Order): PostgresQuery">orderBy(self: PostgresQuery; column: string; order: Order): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">orWhere
<li><a class="reference" href="#orWhere%2CPostgresQuery%2Cstring%2Cstring%2C" title="orWhere(self: PostgresQuery; column: string; symbol: string;
value: string | int | float | bool): PostgresQuery">orWhere(self: PostgresQuery; column: string; symbol: string;
value: string | int | float | bool): PostgresQuery</a></li>
<li><a class="reference" href="#orWhere%2CPostgresQuery%2Cstring%2Cstring%2C_2" title="orWhere(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery">orWhere(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">raw
<li><a class="reference" href="#raw%2CPostgresConnections%2Cstring" title="raw(self: PostgresConnections; sql: string; arges = newJArray()): RawPostgresQuery">raw(self: PostgresConnections; sql: string; arges = newJArray()): RawPostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">select
<li><a class="reference" href="#select%2CPostgresConnections%2Cvarargs%5Bstring%5D" title="select(self: PostgresConnections; columnsArg: varargs[string]): PostgresQuery">select(self: PostgresConnections; columnsArg: varargs[string]): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">table
<li><a class="reference" href="#table%2CPostgresConnections%2Cstring" title="table(self: PostgresConnections; tableArg: string): PostgresQuery">table(self: PostgresConnections; tableArg: string): PostgresQuery</a></li>
<li><a class="reference" href="#table%2CPostgresQuery%2Cstring" title="table(self: PostgresQuery; tableArg: string): PostgresQuery">table(self: PostgresQuery; tableArg: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">where
<li><a class="reference" href="#where%2CPostgresQuery%2Cstring%2Cstring%2C" title="where(self: PostgresQuery; column: string; symbol: string;
value: string | int | float): PostgresQuery">where(self: PostgresQuery; column: string; symbol: string;
value: string | int | float): PostgresQuery</a></li>
<li><a class="reference" href="#where%2CPostgresQuery%2Cstring%2Cstring%2Cbool" title="where(self: PostgresQuery; column: string; symbol: string; value: bool): PostgresQuery">where(self: PostgresQuery; column: string; symbol: string; value: bool): PostgresQuery</a></li>
<li><a class="reference" href="#where%2CPostgresQuery%2Cstring%2Cstring%2C_2" title="where(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery">where(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereBetween
<li><a class="reference" href="#whereBetween%2CPostgresQuery%2Cstring%2Carray%5B%2C%5D" title="whereBetween(self: PostgresQuery; column: string; width: array[2, int | float]): PostgresQuery">whereBetween(self: PostgresQuery; column: string; width: array[2, int | float]): PostgresQuery</a></li>
<li><a class="reference" href="#whereBetween%2CPostgresQuery%2Cstring%2Carray%5B%2Cstring%5D" title="whereBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery">whereBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereIn
<li><a class="reference" href="#whereIn%2CPostgresQuery%2Cstring%2Cseq%5B%5D" title="whereIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery">whereIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereNotBetween
<li><a class="reference" href="#whereNotBetween%2CPostgresQuery%2Cstring%2Carray%5B%2C%5D" title="whereNotBetween(self: PostgresQuery; column: string;
width: array[2, int | float]): PostgresQuery">whereNotBetween(self: PostgresQuery; column: string;
width: array[2, int | float]): PostgresQuery</a></li>
<li><a class="reference" href="#whereNotBetween%2CPostgresQuery%2Cstring%2Carray%5B%2Cstring%5D" title="whereNotBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery">whereNotBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereNotIn
<li><a class="reference" href="#whereNotIn%2CPostgresQuery%2Cstring%2Cseq%5B%5D" title="whereNotIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery">whereNotIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereNull
<li><a class="reference" href="#whereNull%2CPostgresQuery%2Cstring" title="whereNull(self: PostgresQuery; column: string): PostgresQuery">whereNull(self: PostgresQuery; column: string): PostgresQuery</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"></p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="../../libs/postgres/postgres_impl.html">../../libs/postgres/postgres_impl</a>, <a class="reference external" href="../../enums.html">../../enums</a>, <a class="reference external" href="postgres_types.html">postgres_types</a>
</dl>
</div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="distinct-procs-all">
<div id="distinct,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#distinct%2CPostgresQuery"><span class="Identifier">`distinct`</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="groupBy-procs-all">
<div id="groupBy,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#groupBy%2CPostgresQuery%2Cstring"><span class="Identifier">groupBy</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="having-procs-all">
<div id="having,PostgresQuery,string,string,">
<dt><pre><span class="Keyword">proc</span> <a href="#having%2CPostgresQuery%2Cstring%2Cstring%2C"><span class="Identifier">having</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">value</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Operator">|</span> <span class="Identifier">int</span> <span class="Operator">|</span> <span class="Identifier">float</span> <span class="Operator">|</span> <span class="Identifier">bool</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a></pre></dt>
<dd>
</dd>
</div>
<div id="having,PostgresQuery,string,string,_2">
<dt><pre><span class="Keyword">proc</span> <a href="#having%2CPostgresQuery%2Cstring%2Cstring%2C_2"><span class="Identifier">having</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">value</span><span class="Other">:</span> <span class="Keyword">nil</span><span class="Other">.</span><span class="Keyword">type</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">CatchableError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="join-procs-all">
<div id="join,PostgresQuery,string,string,string,string">
<dt><pre><span class="Keyword">proc</span> <a href="#join%2CPostgresQuery%2Cstring%2Cstring%2Cstring%2Cstring"><span class="Identifier">join</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">table</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">column1</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">column2</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="leftJoin-procs-all">
<div id="leftJoin,PostgresQuery,string,string,string,string">
<dt><pre><span class="Keyword">proc</span> <a href="#leftJoin%2CPostgresQuery%2Cstring%2Cstring%2Cstring%2Cstring"><span class="Identifier">leftJoin</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">table</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">column1</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">column2</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="limit-procs-all">
<div id="limit,PostgresQuery,int">
<dt><pre><span class="Keyword">proc</span> <a href="#limit%2CPostgresQuery%2Cint"><span class="Identifier">limit</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">num</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="offset-procs-all">
<div id="offset,PostgresQuery,int">
<dt><pre><span class="Keyword">proc</span> <a href="#offset%2CPostgresQuery%2Cint"><span class="Identifier">offset</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">num</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="orderBy-procs-all">
<div id="orderBy,PostgresQuery,string,Order">
<dt><pre><span class="Keyword">proc</span> <a href="#orderBy%2CPostgresQuery%2Cstring%2COrder"><span class="Identifier">orderBy</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">order</span><span class="Other">:</span> <a href="../../enums.html#Order"><span class="Identifier">Order</span></a><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="orWhere-procs-all">
<div id="orWhere,PostgresQuery,string,string,">
<dt><pre><span class="Keyword">proc</span> <a href="#orWhere%2CPostgresQuery%2Cstring%2Cstring%2C"><span class="Identifier">orWhere</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">value</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Operator">|</span> <span class="Identifier">int</span> <span class="Operator">|</span> <span class="Identifier">float</span> <span class="Operator">|</span> <span class="Identifier">bool</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a></pre></dt>
<dd>
</dd>
</div>
<div id="orWhere,PostgresQuery,string,string,_2">
<dt><pre><span class="Keyword">proc</span> <a href="#orWhere%2CPostgresQuery%2Cstring%2Cstring%2C_2"><span class="Identifier">orWhere</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">value</span><span class="Other">:</span> <span class="Keyword">nil</span><span class="Other">.</span><span class="Keyword">type</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">CatchableError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="raw-procs-all">
<div id="raw,PostgresConnections,string">
<dt><pre><span class="Keyword">proc</span> <a href="#raw%2CPostgresConnections%2Cstring"><span class="Identifier">raw</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">;</span> <span class="Identifier">sql</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">arges</span> <span class="Other">=</span> <span class="Identifier">newJArray</span><span class="Other">(</span><span class="Other">)</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
<p>arges is <tt class="docutils literal"><span class="pre"><span class="Identifier">JArray</span></span></tt></p>
<p>can't use BLOB data.</p>
</dd>
</div>
</div>
<div id="select-procs-all">
<div id="select,PostgresConnections,varargs[string]">
<dt><pre><span class="Keyword">proc</span> <a href="#select%2CPostgresConnections%2Cvarargs%5Bstring%5D"><span class="Identifier">select</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">;</span> <span class="Identifier">columnsArg</span><span class="Other">:</span> <span class="Identifier">varargs</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="table-procs-all">
<div id="table,PostgresConnections,string">
<dt><pre><span class="Keyword">proc</span> <a href="#table%2CPostgresConnections%2Cstring"><span class="Identifier">table</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a><span class="Other">;</span> <span class="Identifier">tableArg</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="table,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#table%2CPostgresQuery%2Cstring"><span class="Identifier">table</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">tableArg</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="where-procs-all">
<div id="where,PostgresQuery,string,string,">
<dt><pre><span class="Keyword">proc</span> <a href="#where%2CPostgresQuery%2Cstring%2Cstring%2C"><span class="Identifier">where</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">value</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Operator">|</span> <span class="Identifier">int</span> <span class="Operator">|</span> <span class="Identifier">float</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a></pre></dt>
<dd>
</dd>
</div>
<div id="where,PostgresQuery,string,string,bool">
<dt><pre><span class="Keyword">proc</span> <a href="#where%2CPostgresQuery%2Cstring%2Cstring%2Cbool"><span class="Identifier">where</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">value</span><span class="Other">:</span> <span class="Identifier">bool</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">CatchableError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
<div id="where,PostgresQuery,string,string,_2">
<dt><pre><span class="Keyword">proc</span> <a href="#where%2CPostgresQuery%2Cstring%2Cstring%2C_2"><span class="Identifier">where</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">symbol</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">value</span><span class="Other">:</span> <span class="Keyword">nil</span><span class="Other">.</span><span class="Keyword">type</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">CatchableError</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereBetween-procs-all">
<div id="whereBetween,PostgresQuery,string,array[,]">
<dt><pre><span class="Keyword">proc</span> <a href="#whereBetween%2CPostgresQuery%2Cstring%2Carray%5B%2C%5D"><span class="Identifier">whereBetween</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">width</span><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="DecNumber">2</span><span class="Other">,</span> <span class="Identifier">int</span> <span class="Operator">|</span> <span class="Identifier">float</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a></pre></dt>
<dd>
</dd>
</div>
<div id="whereBetween,PostgresQuery,string,array[,string]">
<dt><pre><span class="Keyword">proc</span> <a href="#whereBetween%2CPostgresQuery%2Cstring%2Carray%5B%2Cstring%5D"><span class="Identifier">whereBetween</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">width</span><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="DecNumber">2</span><span class="Other">,</span> <span class="Identifier">string</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereIn-procs-all">
<div id="whereIn,PostgresQuery,string,seq[]">
<dt><pre><span class="Keyword">proc</span> <a href="#whereIn%2CPostgresQuery%2Cstring%2Cseq%5B%5D"><span class="Identifier">whereIn</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">width</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">int</span> <span class="Operator">|</span> <span class="Identifier">float</span> <span class="Operator">|</span> <span class="Identifier">string</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a></pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereNotBetween-procs-all">
<div id="whereNotBetween,PostgresQuery,string,array[,]">
<dt><pre><span class="Keyword">proc</span> <a href="#whereNotBetween%2CPostgresQuery%2Cstring%2Carray%5B%2C%5D"><span class="Identifier">whereNotBetween</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">width</span><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="DecNumber">2</span><span class="Other">,</span> <span class="Identifier">int</span> <span class="Operator">|</span> <span class="Identifier">float</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a></pre></dt>
<dd>
</dd>
</div>
<div id="whereNotBetween,PostgresQuery,string,array[,string]">
<dt><pre><span class="Keyword">proc</span> <a href="#whereNotBetween%2CPostgresQuery%2Cstring%2Carray%5B%2Cstring%5D"><span class="Identifier">whereNotBetween</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">width</span><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="DecNumber">2</span><span class="Other">,</span> <span class="Identifier">string</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereNotIn-procs-all">
<div id="whereNotIn,PostgresQuery,string,seq[]">
<dt><pre><span class="Keyword">proc</span> <a href="#whereNotIn%2CPostgresQuery%2Cstring%2Cseq%5B%5D"><span class="Identifier">whereNotIn</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">width</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">int</span> <span class="Operator">|</span> <span class="Identifier">float</span> <span class="Operator">|</span> <span class="Identifier">string</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a></pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereNull-procs-all">
<div id="whereNull,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#whereNull%2CPostgresQuery%2Cstring"><span class="Identifier">whereNull</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2026-03-24 13:25:33 UTC</small>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,32 @@
nimTitle postgres_query query_builder/models/postgres/postgres_query.html module src/allographer/query_builder/models/postgres/postgres_query 0
nim select query_builder/models/postgres/postgres_query.html#select,PostgresConnections,varargs[string] proc select(self: PostgresConnections; columnsArg: varargs[string]): PostgresQuery 15
nim table query_builder/models/postgres/postgres_query.html#table,PostgresConnections,string proc table(self: PostgresConnections; tableArg: string): PostgresQuery 35
nim table query_builder/models/postgres/postgres_query.html#table,PostgresQuery,string proc table(self: PostgresQuery; tableArg: string): PostgresQuery 51
nim `distinct` query_builder/models/postgres/postgres_query.html#distinct,PostgresQuery proc `distinct`(self: PostgresQuery): PostgresQuery 56
nim join query_builder/models/postgres/postgres_query.html#join,PostgresQuery,string,string,string,string proc join(self: PostgresQuery; table: string; column1: string; symbol: string;\n column2: string): PostgresQuery 62
nim leftJoin query_builder/models/postgres/postgres_query.html#leftJoin,PostgresQuery,string,string,string,string proc leftJoin(self: PostgresQuery; table: string; column1: string; symbol: string;\n column2: string): PostgresQuery 81
nim where query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string, proc where(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float): PostgresQuery 103
nim where query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string,bool proc where(self: PostgresQuery; column: string; symbol: string; value: bool): PostgresQuery 130
nim where query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string,_2 proc where(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 157
nim orWhere query_builder/models/postgres/postgres_query.html#orWhere,PostgresQuery,string,string, proc orWhere(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float | bool): PostgresQuery 181
nim orWhere query_builder/models/postgres/postgres_query.html#orWhere,PostgresQuery,string,string,_2 proc orWhere(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 208
nim whereBetween query_builder/models/postgres/postgres_query.html#whereBetween,PostgresQuery,string,array[,] proc whereBetween(self: PostgresQuery; column: string; width: array[2, int | float]): PostgresQuery 230
nim whereBetween query_builder/models/postgres/postgres_query.html#whereBetween,PostgresQuery,string,array[,string] proc whereBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery 247
nim whereNotBetween query_builder/models/postgres/postgres_query.html#whereNotBetween,PostgresQuery,string,array[,] proc whereNotBetween(self: PostgresQuery; column: string;\n width: array[2, int | float]): PostgresQuery 264
nim whereNotBetween query_builder/models/postgres/postgres_query.html#whereNotBetween,PostgresQuery,string,array[,string] proc whereNotBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery 281
nim whereIn query_builder/models/postgres/postgres_query.html#whereIn,PostgresQuery,string,seq[] proc whereIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery 298
nim whereNotIn query_builder/models/postgres/postgres_query.html#whereNotIn,PostgresQuery,string,seq[] proc whereNotIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery 315
nim whereNull query_builder/models/postgres/postgres_query.html#whereNull,PostgresQuery,string proc whereNull(self: PostgresQuery; column: string): PostgresQuery 332
nim groupBy query_builder/models/postgres/postgres_query.html#groupBy,PostgresQuery,string proc groupBy(self: PostgresQuery; column: string): PostgresQuery 346
nim having query_builder/models/postgres/postgres_query.html#having,PostgresQuery,string,string, proc having(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float | bool): PostgresQuery 354
nim having query_builder/models/postgres/postgres_query.html#having,PostgresQuery,string,string,_2 proc having(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 380
nim orderBy query_builder/models/postgres/postgres_query.html#orderBy,PostgresQuery,string,Order proc orderBy(self: PostgresQuery; column: string; order: Order): PostgresQuery 404
nim limit query_builder/models/postgres/postgres_query.html#limit,PostgresQuery,int proc limit(self: PostgresQuery; num: int): PostgresQuery 418
nim offset query_builder/models/postgres/postgres_query.html#offset,PostgresQuery,int proc offset(self: PostgresQuery; num: int): PostgresQuery 423
nim raw query_builder/models/postgres/postgres_query.html#raw,PostgresConnections,string proc raw(self: PostgresConnections; sql: string; arges = newJArray()): RawPostgresQuery 428
nimgrp where query_builder/models/postgres/postgres_query.html#where-procs-all proc 103
nimgrp wherebetween query_builder/models/postgres/postgres_query.html#whereBetween-procs-all proc 230
nimgrp wherenotbetween query_builder/models/postgres/postgres_query.html#whereNotBetween-procs-all proc 264
nimgrp orwhere query_builder/models/postgres/postgres_query.html#orWhere-procs-all proc 181
nimgrp having query_builder/models/postgres/postgres_query.html#having-procs-all proc 354
nimgrp table query_builder/models/postgres/postgres_query.html#table-procs-all proc 35
@@ -0,0 +1,247 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/allographer/query_builder/models/postgres/postgres_types</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="../../../nimdoc.out.css?v=2.2.8">
<!-- JS -->
<script type="text/javascript" src="../../../dochack.js?v=2.2.8"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">src/allographer/query_builder/models/postgres/postgres_types</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="../../../theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#7" id="57">Types</a></summary>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#Connection" title="Connection = ref object
conn*: PPGconn
isBusy*: bool
createdAt*: int64">Connection</a></li>
<li><a class="reference" href="#Connections" title="Connections = ref object
conns*: seq[Connection]
timeout*: int ## `getFreeConn` が接続を待つときに積む Future。`returnConn` が先頭から 1 件だけ完了させる。
waiters*: Deque[Future[void]] ## `exec` / `insertId` 用。テーブルごとに information_schema 相当の列型を初回のみ取得して保持する。
columnTypeCache*: Table[string, seq[Row]]">Connections</a></li>
<li><a class="reference" href="#PostgresConnections" title="PostgresConnections = ref object
log*: LogSetting
pools*: Connections
isInTransaction*: bool
transactionConn*: int">PostgresConnections</a></li>
<li><a class="reference" href="#PostgreSQL" title="PostgreSQL = object">PostgreSQL</a></li>
<li><a class="reference" href="#PostgresQuery" title="PostgresQuery = ref object
log*: LogSetting
pools*: Connections
query*: JsonNode
queryString*: string
placeHolder*: JsonNode
isInTransaction*: bool
transactionConn*: int">PostgresQuery</a></li>
<li><a class="reference" href="#RawPostgresQuery" title="RawPostgresQuery = ref object
log*: LogSetting
pools*: Connections
query*: JsonNode
queryString*: string
placeHolder*: JsonNode
isInTransaction*: bool
transactionConn*: int">RawPostgresQuery</a></li>
</ul>
</details>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">$
<li><a class="reference" href="#%24" title="`$`(self: PostgresConnections | PostgresQuery | RawPostgresQuery): string">`$`(self: PostgresConnections | PostgresQuery | RawPostgresQuery): string</a></li>
</ul>
<ul class="simple nested-toc-section">isConnected
<li><a class="reference" href="#isConnected" title="isConnected(self: PostgresConnections | PostgresQuery | RawPostgresQuery): bool">isConnected(self: PostgresConnections | PostgresQuery | RawPostgresQuery): bool</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc">created by <tt class="docutils literal"><span class="pre"><span class="Keyword">let</span> <span class="Identifier">rdb</span> <span class="Operator">=</span> <span class="Identifier">dbOpen</span><span class="Punctuation">(</span><span class="Identifier">PostgreSQL</span><span class="Punctuation">,</span> <span class="StringLit">&quot;localhost&quot;</span><span class="Punctuation">,</span> <span class="DecNumber">5432</span><span class="Punctuation">)</span></span></tt>created by <tt class="docutils literal"><span class="pre"><span class="Identifier">rdb</span><span class="Operator">.</span><span class="Identifier">select</span><span class="Punctuation">(</span><span class="StringLit">&quot;columnName&quot;</span><span class="Punctuation">)</span></span></tt> or <tt class="docutils literal"><span class="pre"><span class="Identifier">rdb</span><span class="Operator">.</span><span class="Identifier">table</span><span class="Punctuation">(</span><span class="StringLit">&quot;tableName&quot;</span><span class="Punctuation">)</span></span></tt></p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="../database_types.html">../database_types</a>, <a class="reference external" href="../../log.html">../../log</a>, <a class="reference external" href="../../libs/postgres/postgres_rdb.html">../../libs/postgres/postgres_rdb</a>
</dl>
</div>
<div class="section" id="7">
<h1><a class="toc-backref" href="#7">Types</a></h1>
<dl class="item">
<div id="Connection">
<dt><pre><a href="postgres_types.html#Connection"><span class="Identifier">Connection</span></a> <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span>
<span class="Identifier">conn</span><span class="Operator">*</span><span class="Other">:</span> <a href="../../libs/postgres/postgres_rdb.html#PPGconn"><span class="Identifier">PPGconn</span></a>
<span class="Identifier">isBusy</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>
<span class="Identifier">createdAt</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int64</span></pre></dt>
<dd>
</dd>
</div>
<div id="Connections">
<dt><pre><a href="postgres_types.html#Connections"><span class="Identifier">Connections</span></a> <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span>
<span class="Identifier">conns</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="postgres_types.html#Connection"><span class="Identifier">Connection</span></a><span class="Other">]</span>
<span class="Identifier">timeout</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Comment">## `getFreeConn` が接続を待つときに積む Future。`returnConn` が先頭から 1 件だけ完了させる。</span>
<span class="Identifier">waiters</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">Deque</span><span class="Other">[</span><span class="Identifier">Future</span><span class="Other">[</span><span class="Identifier">void</span><span class="Other">]</span><span class="Other">]</span> <span class="Comment">## `exec` / `insertId` 用。テーブルごとに information_schema 相当の列型を初回のみ取得して保持する。</span>
<span class="Identifier">columnTypeCache</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">Table</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">,</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="../database_types.html#Row"><span class="Identifier">Row</span></a><span class="Other">]</span><span class="Other">]</span></pre></dt>
<dd>
</dd>
</div>
<div id="PostgresConnections">
<dt><pre><a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a> <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span>
<span class="Identifier">log</span><span class="Operator">*</span><span class="Other">:</span> <a href="../../log.html#LogSetting"><span class="Identifier">LogSetting</span></a>
<span class="Identifier">pools</span><span class="Operator">*</span><span class="Other">:</span> <a href="postgres_types.html#Connections"><span class="Identifier">Connections</span></a>
<span class="Identifier">isInTransaction</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>
<span class="Identifier">transactionConn</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span></pre></dt>
<dd>
</dd>
</div>
<div id="PostgreSQL">
<dt><pre><a href="postgres_types.html#PostgreSQL"><span class="Identifier">PostgreSQL</span></a> <span class="Other">=</span> <span class="Keyword">object</span></pre></dt>
<dd>
</dd>
</div>
<div id="PostgresQuery">
<dt><pre><a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span>
<span class="Identifier">log</span><span class="Operator">*</span><span class="Other">:</span> <a href="../../log.html#LogSetting"><span class="Identifier">LogSetting</span></a>
<span class="Identifier">pools</span><span class="Operator">*</span><span class="Other">:</span> <a href="postgres_types.html#Connections"><span class="Identifier">Connections</span></a>
<span class="Identifier">query</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">JsonNode</span>
<span class="Identifier">queryString</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">string</span>
<span class="Identifier">placeHolder</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">JsonNode</span>
<span class="Identifier">isInTransaction</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>
<span class="Identifier">transactionConn</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span></pre></dt>
<dd>
</dd>
</div>
<div id="RawPostgresQuery">
<dt><pre><a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a> <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span>
<span class="Identifier">log</span><span class="Operator">*</span><span class="Other">:</span> <a href="../../log.html#LogSetting"><span class="Identifier">LogSetting</span></a>
<span class="Identifier">pools</span><span class="Operator">*</span><span class="Other">:</span> <a href="postgres_types.html#Connections"><span class="Identifier">Connections</span></a>
<span class="Identifier">query</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">JsonNode</span>
<span class="Identifier">queryString</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">string</span>
<span class="Identifier">placeHolder</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">JsonNode</span>
<span class="Identifier">isInTransaction</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>
<span class="Identifier">transactionConn</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span></pre></dt>
<dd>
</dd>
</div>
</dl>
</div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="$-procs-all">
<div id="$">
<dt><pre><span class="Keyword">proc</span> <a href="#%24"><span class="Identifier">`$`</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a> <span class="Operator">|</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> <span class="Operator">|</span> <a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span></pre></dt>
<dd>
</dd>
</div>
</div>
<div id="isConnected-procs-all">
<div id="isConnected">
<dt><pre><span class="Keyword">proc</span> <a href="#isConnected"><span class="Identifier">isConnected</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="postgres_types.html#PostgresConnections"><span class="Identifier">PostgresConnections</span></a> <span class="Operator">|</span> <a href="postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> <span class="Operator">|</span> <a href="postgres_types.html#RawPostgresQuery"><span class="Identifier">RawPostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span></pre></dt>
<dd>
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2026-03-24 13:25:33 UTC</small>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,9 @@
nimTitle postgres_types query_builder/models/postgres/postgres_types.html module src/allographer/query_builder/models/postgres/postgres_types 0
nim PostgreSQL query_builder/models/postgres/postgres_types.html#PostgreSQL object PostgreSQL 10
nim Connection query_builder/models/postgres/postgres_types.html#Connection type Connection 13
nim Connections query_builder/models/postgres/postgres_types.html#Connections type Connections 19
nim PostgresConnections query_builder/models/postgres/postgres_types.html#PostgresConnections type PostgresConnections 29
nim PostgresQuery query_builder/models/postgres/postgres_types.html#PostgresQuery type PostgresQuery 38
nim RawPostgresQuery query_builder/models/postgres/postgres_types.html#RawPostgresQuery type RawPostgresQuery 49
nim `$` query_builder/models/postgres/postgres_types.html#$ proc `$`(self: PostgresConnections | PostgresQuery | RawPostgresQuery): string 60
nim isConnected query_builder/models/postgres/postgres_types.html#isConnected proc isConnected(self: PostgresConnections | PostgresQuery | RawPostgresQuery): bool 64
@@ -0,0 +1,323 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/allographer/query_builder/models/postgres/query/postgres_builder</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="../../../../nimdoc.out.css?v=2.2.8">
<!-- JS -->
<script type="text/javascript" src="../../../../dochack.js?v=2.2.8"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">src/allographer/query_builder/models/postgres/query/postgres_builder</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="../../../../theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">avgBuilder
<li><a class="reference" href="#avgBuilder%2CPostgresQuery%2Cstring" title="avgBuilder(self: PostgresQuery; column: string): string">avgBuilder(self: PostgresQuery; column: string): string</a></li>
</ul>
<ul class="simple nested-toc-section">columnBuilder
<li><a class="reference" href="#columnBuilder%2CPostgresQuery" title="columnBuilder(self: PostgresQuery): string">columnBuilder(self: PostgresQuery): string</a></li>
</ul>
<ul class="simple nested-toc-section">countBuilder
<li><a class="reference" href="#countBuilder%2CPostgresQuery" title="countBuilder(self: PostgresQuery): string">countBuilder(self: PostgresQuery): string</a></li>
</ul>
<ul class="simple nested-toc-section">deleteBuilder
<li><a class="reference" href="#deleteBuilder%2CPostgresQuery" title="deleteBuilder(self: PostgresQuery): string">deleteBuilder(self: PostgresQuery): string</a></li>
</ul>
<ul class="simple nested-toc-section">deleteByIdBuilder
<li><a class="reference" href="#deleteByIdBuilder%2CPostgresQuery%2Cint%2Cstring" title="deleteByIdBuilder(self: PostgresQuery; id: int; key: string): string">deleteByIdBuilder(self: PostgresQuery; id: int; key: string): string</a></li>
</ul>
<ul class="simple nested-toc-section">insertValueBuilder
<li><a class="reference" href="#insertValueBuilder%2CPostgresQuery%2CJsonNode" title="insertValueBuilder(self: PostgresQuery; items: JsonNode): string">insertValueBuilder(self: PostgresQuery; items: JsonNode): string</a></li>
</ul>
<ul class="simple nested-toc-section">insertValuesBuilder
<li><a class="reference" href="#insertValuesBuilder%2CPostgresQuery%2CopenArray%5BJsonNode%5D" title="insertValuesBuilder(self: PostgresQuery; rows: openArray[JsonNode]): string">insertValuesBuilder(self: PostgresQuery; rows: openArray[JsonNode]): string</a></li>
</ul>
<ul class="simple nested-toc-section">maxBuilder
<li><a class="reference" href="#maxBuilder%2CPostgresQuery%2Cstring" title="maxBuilder(self: PostgresQuery; column: string): string">maxBuilder(self: PostgresQuery; column: string): string</a></li>
</ul>
<ul class="simple nested-toc-section">minBuilder
<li><a class="reference" href="#minBuilder%2CPostgresQuery%2Cstring" title="minBuilder(self: PostgresQuery; column: string): string">minBuilder(self: PostgresQuery; column: string): string</a></li>
</ul>
<ul class="simple nested-toc-section">selectBuilder
<li><a class="reference" href="#selectBuilder%2CPostgresQuery" title="selectBuilder(self: PostgresQuery): string">selectBuilder(self: PostgresQuery): string</a></li>
</ul>
<ul class="simple nested-toc-section">selectFindBuilder
<li><a class="reference" href="#selectFindBuilder%2CPostgresQuery%2Cstring" title="selectFindBuilder(self: PostgresQuery; key: string): string">selectFindBuilder(self: PostgresQuery; key: string): string</a></li>
</ul>
<ul class="simple nested-toc-section">selectFirstBuilder
<li><a class="reference" href="#selectFirstBuilder%2CPostgresQuery" title="selectFirstBuilder(self: PostgresQuery): string">selectFirstBuilder(self: PostgresQuery): string</a></li>
</ul>
<ul class="simple nested-toc-section">sumBuilder
<li><a class="reference" href="#sumBuilder%2CPostgresQuery%2Cstring" title="sumBuilder(self: PostgresQuery; column: string): string">sumBuilder(self: PostgresQuery; column: string): string</a></li>
</ul>
<ul class="simple nested-toc-section">updateBuilder
<li><a class="reference" href="#updateBuilder%2CPostgresQuery%2CJsonNode" title="updateBuilder(self: PostgresQuery; items: JsonNode): string">updateBuilder(self: PostgresQuery; items: JsonNode): string</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"></p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="../postgres_types.html">../postgres_types</a>, <a class="reference external" href="postgres_generator.html">postgres_generator</a>
</dl>
</div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="avgBuilder-procs-all">
<div id="avgBuilder,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#avgBuilder%2CPostgresQuery%2Cstring"><span class="Identifier">avgBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="columnBuilder-procs-all">
<div id="columnBuilder,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#columnBuilder%2CPostgresQuery"><span class="Identifier">columnBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="countBuilder-procs-all">
<div id="countBuilder,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#countBuilder%2CPostgresQuery"><span class="Identifier">countBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="deleteBuilder-procs-all">
<div id="deleteBuilder,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#deleteBuilder%2CPostgresQuery"><span class="Identifier">deleteBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="deleteByIdBuilder-procs-all">
<div id="deleteByIdBuilder,PostgresQuery,int,string">
<dt><pre><span class="Keyword">proc</span> <a href="#deleteByIdBuilder%2CPostgresQuery%2Cint%2Cstring"><span class="Identifier">deleteByIdBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="insertValueBuilder-procs-all">
<div id="insertValueBuilder,PostgresQuery,JsonNode">
<dt><pre><span class="Keyword">proc</span> <a href="#insertValueBuilder%2CPostgresQuery%2CJsonNode"><span class="Identifier">insertValueBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">JsonNode</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="insertValuesBuilder-procs-all">
<div id="insertValuesBuilder,PostgresQuery,openArray[JsonNode]">
<dt><pre><span class="Keyword">proc</span> <a href="#insertValuesBuilder%2CPostgresQuery%2CopenArray%5BJsonNode%5D"><span class="Identifier">insertValuesBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">rows</span><span class="Other">:</span> <span class="Identifier">openArray</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="maxBuilder-procs-all">
<div id="maxBuilder,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#maxBuilder%2CPostgresQuery%2Cstring"><span class="Identifier">maxBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="minBuilder-procs-all">
<div id="minBuilder,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#minBuilder%2CPostgresQuery%2Cstring"><span class="Identifier">minBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectBuilder-procs-all">
<div id="selectBuilder,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#selectBuilder%2CPostgresQuery"><span class="Identifier">selectBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectFindBuilder-procs-all">
<div id="selectFindBuilder,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#selectFindBuilder%2CPostgresQuery%2Cstring"><span class="Identifier">selectFindBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectFirstBuilder-procs-all">
<div id="selectFirstBuilder,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#selectFirstBuilder%2CPostgresQuery"><span class="Identifier">selectFirstBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="sumBuilder-procs-all">
<div id="sumBuilder,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#sumBuilder%2CPostgresQuery%2Cstring"><span class="Identifier">sumBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="updateBuilder-procs-all">
<div id="updateBuilder,PostgresQuery,JsonNode">
<dt><pre><span class="Keyword">proc</span> <a href="#updateBuilder%2CPostgresQuery%2CJsonNode"><span class="Identifier">updateBuilder</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">JsonNode</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2026-03-24 13:25:34 UTC</small>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,15 @@
nimTitle postgres_builder query_builder/models/postgres/query/postgres_builder.html module src/allographer/query_builder/models/postgres/query/postgres_builder 0
nim selectBuilder query_builder/models/postgres/query/postgres_builder.html#selectBuilder,PostgresQuery proc selectBuilder(self: PostgresQuery): string 8
nim selectFirstBuilder query_builder/models/postgres/query/postgres_builder.html#selectFirstBuilder,PostgresQuery proc selectFirstBuilder(self: PostgresQuery): string 30
nim selectFindBuilder query_builder/models/postgres/query/postgres_builder.html#selectFindBuilder,PostgresQuery,string proc selectFindBuilder(self: PostgresQuery; key: string): string 52
nim insertValueBuilder query_builder/models/postgres/query/postgres_builder.html#insertValueBuilder,PostgresQuery,JsonNode proc insertValueBuilder(self: PostgresQuery; items: JsonNode): string 73
nim insertValuesBuilder query_builder/models/postgres/query/postgres_builder.html#insertValuesBuilder,PostgresQuery,openArray[JsonNode] proc insertValuesBuilder(self: PostgresQuery; rows: openArray[JsonNode]): string 79
nim updateBuilder query_builder/models/postgres/query/postgres_builder.html#updateBuilder,PostgresQuery,JsonNode proc updateBuilder(self: PostgresQuery; items: JsonNode): string 88
nim deleteBuilder query_builder/models/postgres/query/postgres_builder.html#deleteBuilder,PostgresQuery proc deleteBuilder(self: PostgresQuery): string 101
nim deleteByIdBuilder query_builder/models/postgres/query/postgres_builder.html#deleteByIdBuilder,PostgresQuery,int,string proc deleteByIdBuilder(self: PostgresQuery; id: int; key: string): string 113
nim countBuilder query_builder/models/postgres/query/postgres_builder.html#countBuilder,PostgresQuery proc countBuilder(self: PostgresQuery): string 123
nim maxBuilder query_builder/models/postgres/query/postgres_builder.html#maxBuilder,PostgresQuery,string proc maxBuilder(self: PostgresQuery; column: string): string 143
nim minBuilder query_builder/models/postgres/query/postgres_builder.html#minBuilder,PostgresQuery,string proc minBuilder(self: PostgresQuery; column: string): string 163
nim avgBuilder query_builder/models/postgres/query/postgres_builder.html#avgBuilder,PostgresQuery,string proc avgBuilder(self: PostgresQuery; column: string): string 183
nim sumBuilder query_builder/models/postgres/query/postgres_builder.html#sumBuilder,PostgresQuery,string proc sumBuilder(self: PostgresQuery; column: string): string 203
nim columnBuilder query_builder/models/postgres/query/postgres_builder.html#columnBuilder,PostgresQuery proc columnBuilder(self: PostgresQuery): string 223
@@ -0,0 +1,611 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/allographer/query_builder/models/postgres/query/postgres_generator</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="../../../../nimdoc.out.css?v=2.2.8">
<!-- JS -->
<script type="text/javascript" src="../../../../dochack.js?v=2.2.8"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">src/allographer/query_builder/models/postgres/query/postgres_generator</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="../../../../theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">deleteByIdSql
<li><a class="reference" href="#deleteByIdSql%2CPostgresQuery%2Cint%2Cstring" title="deleteByIdSql(self: PostgresQuery; id: int; key: string): PostgresQuery">deleteByIdSql(self: PostgresQuery; id: int; key: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">deleteSql
<li><a class="reference" href="#deleteSql%2CPostgresQuery" title="deleteSql(self: PostgresQuery): PostgresQuery">deleteSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">fromSql
<li><a class="reference" href="#fromSql%2CPostgresQuery" title="fromSql(self: PostgresQuery): PostgresQuery">fromSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">groupBySql
<li><a class="reference" href="#groupBySql%2CPostgresQuery" title="groupBySql(self: PostgresQuery): PostgresQuery">groupBySql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">havingSql
<li><a class="reference" href="#havingSql%2CPostgresQuery" title="havingSql(self: PostgresQuery): PostgresQuery">havingSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">insertSql
<li><a class="reference" href="#insertSql%2CPostgresQuery" title="insertSql(self: PostgresQuery): PostgresQuery">insertSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">insertValueSql
<li><a class="reference" href="#insertValueSql%2CPostgresQuery%2CJsonNode" title="insertValueSql(self: PostgresQuery; items: JsonNode): PostgresQuery">insertValueSql(self: PostgresQuery; items: JsonNode): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">insertValuesSql
<li><a class="reference" href="#insertValuesSql%2CPostgresQuery%2CopenArray%5BJsonNode%5D" title="insertValuesSql(self: PostgresQuery; rows: openArray[JsonNode]): PostgresQuery">insertValuesSql(self: PostgresQuery; rows: openArray[JsonNode]): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">joinSql
<li><a class="reference" href="#joinSql%2CPostgresQuery" title="joinSql(self: PostgresQuery): PostgresQuery">joinSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">leftJoinSql
<li><a class="reference" href="#leftJoinSql%2CPostgresQuery" title="leftJoinSql(self: PostgresQuery): PostgresQuery">leftJoinSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">limitSql
<li><a class="reference" href="#limitSql%2CPostgresQuery" title="limitSql(self: PostgresQuery): PostgresQuery">limitSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">offsetSql
<li><a class="reference" href="#offsetSql%2CPostgresQuery" title="offsetSql(self: PostgresQuery): PostgresQuery">offsetSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">orderBySql
<li><a class="reference" href="#orderBySql%2CPostgresQuery" title="orderBySql(self: PostgresQuery): PostgresQuery">orderBySql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">orWhereSql
<li><a class="reference" href="#orWhereSql%2CPostgresQuery" title="orWhereSql(self: PostgresQuery): PostgresQuery">orWhereSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">selectAvgSql
<li><a class="reference" href="#selectAvgSql%2CPostgresQuery%2Cstring" title="selectAvgSql(self: PostgresQuery; column: string): PostgresQuery">selectAvgSql(self: PostgresQuery; column: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">selectByIdSql
<li><a class="reference" href="#selectByIdSql%2CPostgresQuery%2Cstring" title="selectByIdSql(self: PostgresQuery; key: string): PostgresQuery">selectByIdSql(self: PostgresQuery; key: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">selectCountSql
<li><a class="reference" href="#selectCountSql%2CPostgresQuery" title="selectCountSql(self: PostgresQuery): PostgresQuery">selectCountSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">selectFirstSql
<li><a class="reference" href="#selectFirstSql%2CPostgresQuery" title="selectFirstSql(self: PostgresQuery): PostgresQuery">selectFirstSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">selectMaxSql
<li><a class="reference" href="#selectMaxSql%2CPostgresQuery%2Cstring" title="selectMaxSql(self: PostgresQuery; column: string): PostgresQuery">selectMaxSql(self: PostgresQuery; column: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">selectMinSql
<li><a class="reference" href="#selectMinSql%2CPostgresQuery%2Cstring" title="selectMinSql(self: PostgresQuery; column: string): PostgresQuery">selectMinSql(self: PostgresQuery; column: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">selectSql
<li><a class="reference" href="#selectSql%2CPostgresQuery" title="selectSql(self: PostgresQuery): PostgresQuery">selectSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">selectSumSql
<li><a class="reference" href="#selectSumSql%2CPostgresQuery%2Cstring" title="selectSumSql(self: PostgresQuery; column: string): PostgresQuery">selectSumSql(self: PostgresQuery; column: string): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">updateSql
<li><a class="reference" href="#updateSql%2CPostgresQuery" title="updateSql(self: PostgresQuery): PostgresQuery">updateSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">updateValuesSql
<li><a class="reference" href="#updateValuesSql%2CPostgresQuery%2CJsonNode" title="updateValuesSql(self: PostgresQuery; items: JsonNode): PostgresQuery">updateValuesSql(self: PostgresQuery; items: JsonNode): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereBetweenSql
<li><a class="reference" href="#whereBetweenSql%2CPostgresQuery" title="whereBetweenSql(self: PostgresQuery): PostgresQuery">whereBetweenSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereBetweenStringSql
<li><a class="reference" href="#whereBetweenStringSql%2CPostgresQuery" title="whereBetweenStringSql(self: PostgresQuery): PostgresQuery">whereBetweenStringSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereInSql
<li><a class="reference" href="#whereInSql%2CPostgresQuery" title="whereInSql(self: PostgresQuery): PostgresQuery">whereInSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereNotBetweenSql
<li><a class="reference" href="#whereNotBetweenSql%2CPostgresQuery" title="whereNotBetweenSql(self: PostgresQuery): PostgresQuery">whereNotBetweenSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereNotBetweenStringSql
<li><a class="reference" href="#whereNotBetweenStringSql%2CPostgresQuery" title="whereNotBetweenStringSql(self: PostgresQuery): PostgresQuery">whereNotBetweenStringSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereNotInSql
<li><a class="reference" href="#whereNotInSql%2CPostgresQuery" title="whereNotInSql(self: PostgresQuery): PostgresQuery">whereNotInSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereNullSql
<li><a class="reference" href="#whereNullSql%2CPostgresQuery" title="whereNullSql(self: PostgresQuery): PostgresQuery">whereNullSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
<ul class="simple nested-toc-section">whereSql
<li><a class="reference" href="#whereSql%2CPostgresQuery" title="whereSql(self: PostgresQuery): PostgresQuery">whereSql(self: PostgresQuery): PostgresQuery</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"></p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="../postgres_types.html">../postgres_types</a>
</dl>
</div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="deleteByIdSql-procs-all">
<div id="deleteByIdSql,PostgresQuery,int,string">
<dt><pre><span class="Keyword">proc</span> <a href="#deleteByIdSql%2CPostgresQuery%2Cint%2Cstring"><span class="Identifier">deleteByIdSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">id</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="deleteSql-procs-all">
<div id="deleteSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#deleteSql%2CPostgresQuery"><span class="Identifier">deleteSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="fromSql-procs-all">
<div id="fromSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#fromSql%2CPostgresQuery"><span class="Identifier">fromSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="groupBySql-procs-all">
<div id="groupBySql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#groupBySql%2CPostgresQuery"><span class="Identifier">groupBySql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="havingSql-procs-all">
<div id="havingSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#havingSql%2CPostgresQuery"><span class="Identifier">havingSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="insertSql-procs-all">
<div id="insertSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#insertSql%2CPostgresQuery"><span class="Identifier">insertSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="insertValueSql-procs-all">
<div id="insertValueSql,PostgresQuery,JsonNode">
<dt><pre><span class="Keyword">proc</span> <a href="#insertValueSql%2CPostgresQuery%2CJsonNode"><span class="Identifier">insertValueSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">JsonNode</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="insertValuesSql-procs-all">
<div id="insertValuesSql,PostgresQuery,openArray[JsonNode]">
<dt><pre><span class="Keyword">proc</span> <a href="#insertValuesSql%2CPostgresQuery%2CopenArray%5BJsonNode%5D"><span class="Identifier">insertValuesSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">rows</span><span class="Other">:</span> <span class="Identifier">openArray</span><span class="Other">[</span><span class="Identifier">JsonNode</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="joinSql-procs-all">
<div id="joinSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#joinSql%2CPostgresQuery"><span class="Identifier">joinSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="leftJoinSql-procs-all">
<div id="leftJoinSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#leftJoinSql%2CPostgresQuery"><span class="Identifier">leftJoinSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="limitSql-procs-all">
<div id="limitSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#limitSql%2CPostgresQuery"><span class="Identifier">limitSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="offsetSql-procs-all">
<div id="offsetSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#offsetSql%2CPostgresQuery"><span class="Identifier">offsetSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="orderBySql-procs-all">
<div id="orderBySql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#orderBySql%2CPostgresQuery"><span class="Identifier">orderBySql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="orWhereSql-procs-all">
<div id="orWhereSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#orWhereSql%2CPostgresQuery"><span class="Identifier">orWhereSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectAvgSql-procs-all">
<div id="selectAvgSql,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#selectAvgSql%2CPostgresQuery%2Cstring"><span class="Identifier">selectAvgSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectByIdSql-procs-all">
<div id="selectByIdSql,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#selectByIdSql%2CPostgresQuery%2Cstring"><span class="Identifier">selectByIdSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectCountSql-procs-all">
<div id="selectCountSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#selectCountSql%2CPostgresQuery"><span class="Identifier">selectCountSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectFirstSql-procs-all">
<div id="selectFirstSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#selectFirstSql%2CPostgresQuery"><span class="Identifier">selectFirstSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectMaxSql-procs-all">
<div id="selectMaxSql,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#selectMaxSql%2CPostgresQuery%2Cstring"><span class="Identifier">selectMaxSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectMinSql-procs-all">
<div id="selectMinSql,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#selectMinSql%2CPostgresQuery%2Cstring"><span class="Identifier">selectMinSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectSql-procs-all">
<div id="selectSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#selectSql%2CPostgresQuery"><span class="Identifier">selectSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="selectSumSql-procs-all">
<div id="selectSumSql,PostgresQuery,string">
<dt><pre><span class="Keyword">proc</span> <a href="#selectSumSql%2CPostgresQuery%2Cstring"><span class="Identifier">selectSumSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="updateSql-procs-all">
<div id="updateSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#updateSql%2CPostgresQuery"><span class="Identifier">updateSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="updateValuesSql-procs-all">
<div id="updateValuesSql,PostgresQuery,JsonNode">
<dt><pre><span class="Keyword">proc</span> <a href="#updateValuesSql%2CPostgresQuery%2CJsonNode"><span class="Identifier">updateValuesSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">;</span> <span class="Identifier">items</span><span class="Other">:</span> <span class="Identifier">JsonNode</span><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereBetweenSql-procs-all">
<div id="whereBetweenSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#whereBetweenSql%2CPostgresQuery"><span class="Identifier">whereBetweenSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereBetweenStringSql-procs-all">
<div id="whereBetweenStringSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#whereBetweenStringSql%2CPostgresQuery"><span class="Identifier">whereBetweenStringSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereInSql-procs-all">
<div id="whereInSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#whereInSql%2CPostgresQuery"><span class="Identifier">whereInSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereNotBetweenSql-procs-all">
<div id="whereNotBetweenSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#whereNotBetweenSql%2CPostgresQuery"><span class="Identifier">whereNotBetweenSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereNotBetweenStringSql-procs-all">
<div id="whereNotBetweenStringSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#whereNotBetweenStringSql%2CPostgresQuery"><span class="Identifier">whereNotBetweenStringSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereNotInSql-procs-all">
<div id="whereNotInSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#whereNotInSql%2CPostgresQuery"><span class="Identifier">whereNotInSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereNullSql-procs-all">
<div id="whereNullSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#whereNullSql%2CPostgresQuery"><span class="Identifier">whereNullSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
<div id="whereSql-procs-all">
<div id="whereSql,PostgresQuery">
<dt><pre><span class="Keyword">proc</span> <a href="#whereSql%2CPostgresQuery"><span class="Identifier">whereSql</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a><span class="Other">)</span><span class="Other">:</span> <a href="../postgres_types.html#PostgresQuery"><span class="Identifier">PostgresQuery</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2026-03-24 13:25:34 UTC</small>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,33 @@
nimTitle postgres_generator query_builder/models/postgres/query/postgres_generator.html module src/allographer/query_builder/models/postgres/query/postgres_generator 0
nim selectSql query_builder/models/postgres/query/postgres_generator.html#selectSql,PostgresQuery proc selectSql(self: PostgresQuery): PostgresQuery 43
nim fromSql query_builder/models/postgres/query/postgres_generator.html#fromSql,PostgresQuery proc fromSql(self: PostgresQuery): PostgresQuery 64
nim selectFirstSql query_builder/models/postgres/query/postgres_generator.html#selectFirstSql,PostgresQuery proc selectFirstSql(self: PostgresQuery): PostgresQuery 70
nim selectByIdSql query_builder/models/postgres/query/postgres_generator.html#selectByIdSql,PostgresQuery,string proc selectByIdSql(self: PostgresQuery; key: string): PostgresQuery 75
nim joinSql query_builder/models/postgres/query/postgres_generator.html#joinSql,PostgresQuery proc joinSql(self: PostgresQuery): PostgresQuery 84
nim leftJoinSql query_builder/models/postgres/query/postgres_generator.html#leftJoinSql,PostgresQuery proc leftJoinSql(self: PostgresQuery): PostgresQuery 96
nim whereSql query_builder/models/postgres/query/postgres_generator.html#whereSql,PostgresQuery proc whereSql(self: PostgresQuery): PostgresQuery 108
nim orWhereSql query_builder/models/postgres/query/postgres_generator.html#orWhereSql,PostgresQuery proc orWhereSql(self: PostgresQuery): PostgresQuery 121
nim whereBetweenSql query_builder/models/postgres/query/postgres_generator.html#whereBetweenSql,PostgresQuery proc whereBetweenSql(self: PostgresQuery): PostgresQuery 135
nim whereBetweenStringSql query_builder/models/postgres/query/postgres_generator.html#whereBetweenStringSql,PostgresQuery proc whereBetweenStringSql(self: PostgresQuery): PostgresQuery 151
nim whereNotBetweenSql query_builder/models/postgres/query/postgres_generator.html#whereNotBetweenSql,PostgresQuery proc whereNotBetweenSql(self: PostgresQuery): PostgresQuery 167
nim whereNotBetweenStringSql query_builder/models/postgres/query/postgres_generator.html#whereNotBetweenStringSql,PostgresQuery proc whereNotBetweenStringSql(self: PostgresQuery): PostgresQuery 183
nim whereInSql query_builder/models/postgres/query/postgres_generator.html#whereInSql,PostgresQuery proc whereInSql(self: PostgresQuery): PostgresQuery 199
nim whereNotInSql query_builder/models/postgres/query/postgres_generator.html#whereNotInSql,PostgresQuery proc whereNotInSql(self: PostgresQuery): PostgresQuery 215
nim whereNullSql query_builder/models/postgres/query/postgres_generator.html#whereNullSql,PostgresQuery proc whereNullSql(self: PostgresQuery): PostgresQuery 231
nim groupBySql query_builder/models/postgres/query/postgres_generator.html#groupBySql,PostgresQuery proc groupBySql(self: PostgresQuery): PostgresQuery 243
nim havingSql query_builder/models/postgres/query/postgres_generator.html#havingSql,PostgresQuery proc havingSql(self: PostgresQuery): PostgresQuery 254
nim orderBySql query_builder/models/postgres/query/postgres_generator.html#orderBySql,PostgresQuery proc orderBySql(self: PostgresQuery): PostgresQuery 269
nim limitSql query_builder/models/postgres/query/postgres_generator.html#limitSql,PostgresQuery proc limitSql(self: PostgresQuery): PostgresQuery 282
nim offsetSql query_builder/models/postgres/query/postgres_generator.html#offsetSql,PostgresQuery proc offsetSql(self: PostgresQuery): PostgresQuery 290
nim insertSql query_builder/models/postgres/query/postgres_generator.html#insertSql,PostgresQuery proc insertSql(self: PostgresQuery): PostgresQuery 300
nim insertValueSql query_builder/models/postgres/query/postgres_generator.html#insertValueSql,PostgresQuery,JsonNode proc insertValueSql(self: PostgresQuery; items: JsonNode): PostgresQuery 306
nim insertValuesSql query_builder/models/postgres/query/postgres_generator.html#insertValuesSql,PostgresQuery,openArray[JsonNode] proc insertValuesSql(self: PostgresQuery; rows: openArray[JsonNode]): PostgresQuery 326
nim updateSql query_builder/models/postgres/query/postgres_generator.html#updateSql,PostgresQuery proc updateSql(self: PostgresQuery): PostgresQuery 358
nim updateValuesSql query_builder/models/postgres/query/postgres_generator.html#updateValuesSql,PostgresQuery,JsonNode proc updateValuesSql(self: PostgresQuery; items: JsonNode): PostgresQuery 368
nim deleteSql query_builder/models/postgres/query/postgres_generator.html#deleteSql,PostgresQuery proc deleteSql(self: PostgresQuery): PostgresQuery 390
nim deleteByIdSql query_builder/models/postgres/query/postgres_generator.html#deleteByIdSql,PostgresQuery,int,string proc deleteByIdSql(self: PostgresQuery; id: int; key: string): PostgresQuery 395
nim selectCountSql query_builder/models/postgres/query/postgres_generator.html#selectCountSql,PostgresQuery proc selectCountSql(self: PostgresQuery): PostgresQuery 401
nim selectMaxSql query_builder/models/postgres/query/postgres_generator.html#selectMaxSql,PostgresQuery,string proc selectMaxSql(self: PostgresQuery; column: string): PostgresQuery 412
nim selectMinSql query_builder/models/postgres/query/postgres_generator.html#selectMinSql,PostgresQuery,string proc selectMinSql(self: PostgresQuery; column: string): PostgresQuery 417
nim selectAvgSql query_builder/models/postgres/query/postgres_generator.html#selectAvgSql,PostgresQuery,string proc selectAvgSql(self: PostgresQuery; column: string): PostgresQuery 422
nim selectSumSql query_builder/models/postgres/query/postgres_generator.html#selectSumSql,PostgresQuery,string proc selectSumSql(self: PostgresQuery; column: string): PostgresQuery 427