Skip to content

Commit

Permalink
Correct (remove) note about ERASE not deleting data
Browse files Browse the repository at this point in the history
  • Loading branch information
deobald committed Jan 23, 2024
1 parent 9e8cc5b commit 26be94b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 17 deletions.
8 changes: 3 additions & 5 deletions docs/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,6 @@ <h2 id="erase"><a class="header" href="#erase">ERASE</a></h2>
Once a document has been erased, it is no longer possible to query for it at all.</p>
<pre><code class="language-sql">ERASE FROM products WHERE name = 'Salt';
</code></pre>
<p>NOTE: <code>ERASE</code> currently does not remove data from disk.
This feature will be added when Endb handles compaction, as per our
<a href="sql/../appendix/roadmap.html">roadmap</a>.</p>
<h2 id="parameters"><a class="header" href="#parameters">Parameters</a></h2>
<p>Parameters to DML are documented under the <a href="sql/../reference/http_api.html">HTTP API</a>.</p>
<h2 id="transactions"><a class="header" href="#transactions">Transactions</a></h2>
Expand Down Expand Up @@ -670,9 +667,10 @@ <h3 id="union-compatibility"><a class="header" href="#union-compatibility">Union
400 Bad Request
Number of UNION left columns: 3 does not match right columns: 2
</code></pre>
<h2 id="with-queries-common-table-expressions"><a class="header" href="#with-queries-common-table-expressions">WITH Queries (Common Table Expressions)</a></h2>
<h2 id="with-common-table-expressions"><a class="header" href="#with-common-table-expressions">WITH (Common Table Expressions)</a></h2>
<p>The <code>WITH</code> keyword is used to create <em>Common Table Expressions</em>, or CTEs.
CTEs act like temporary tables or views within the context of a query.
CTEs act like temporary tables or views within the context of a query or
<a href="sql/data_manipulation.html">DML statement</a>.
CTEs are used in place of a sub-select to simplify the appearance of a query.
<code>WITH</code> clauses take the form <code>WITH &lt;cte-name&gt; AS (&lt;cte-select&gt;)</code>.</p>
<pre><code class="language-sql">WITH top_margin_products AS (SELECT product_no FROM products WHERE (price - cost) &gt; 5.00)
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/searchindex.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions docs/sql/data_manipulation.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,6 @@ <h2 id="erase"><a class="header" href="#erase">ERASE</a></h2>
Once a document has been erased, it is no longer possible to query for it at all.</p>
<pre><code class="language-sql">ERASE FROM products WHERE name = 'Salt';
</code></pre>
<p>NOTE: <code>ERASE</code> currently does not remove data from disk.
This feature will be added when Endb handles compaction, as per our
<a href="../appendix/roadmap.html">roadmap</a>.</p>
<h2 id="parameters"><a class="header" href="#parameters">Parameters</a></h2>
<p>Parameters to DML are documented under the <a href="../reference/http_api.html">HTTP API</a>.</p>
<h2 id="transactions"><a class="header" href="#transactions">Transactions</a></h2>
Expand Down
5 changes: 3 additions & 2 deletions docs/sql/queries.html
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,10 @@ <h3 id="union-compatibility"><a class="header" href="#union-compatibility">Union
400 Bad Request
Number of UNION left columns: 3 does not match right columns: 2
</code></pre>
<h2 id="with-queries-common-table-expressions"><a class="header" href="#with-queries-common-table-expressions">WITH Queries (Common Table Expressions)</a></h2>
<h2 id="with-common-table-expressions"><a class="header" href="#with-common-table-expressions">WITH (Common Table Expressions)</a></h2>
<p>The <code>WITH</code> keyword is used to create <em>Common Table Expressions</em>, or CTEs.
CTEs act like temporary tables or views within the context of a query.
CTEs act like temporary tables or views within the context of a query or
<a href="data_manipulation.html">DML statement</a>.
CTEs are used in place of a sub-select to simplify the appearance of a query.
<code>WITH</code> clauses take the form <code>WITH &lt;cte-name&gt; AS (&lt;cte-select&gt;)</code>.</p>
<pre><code class="language-sql">WITH top_margin_products AS (SELECT product_no FROM products WHERE (price - cost) &gt; 5.00)
Expand Down
6 changes: 3 additions & 3 deletions src/sql/data_manipulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ Once a document has been erased, it is no longer possible to query for it at all
ERASE FROM products WHERE name = 'Salt';
```

NOTE: `ERASE` currently does not remove data from disk.
This feature will be added when Endb handles compaction, as per our
[roadmap](../appendix/roadmap.md).




## Parameters

Expand Down
5 changes: 3 additions & 2 deletions src/sql/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,11 @@ Number of UNION left columns: 3 does not match right columns: 2
```


## WITH Queries (Common Table Expressions)
## WITH (Common Table Expressions)

The `WITH` keyword is used to create _Common Table Expressions_, or CTEs.
CTEs act like temporary tables or views within the context of a query.
CTEs act like temporary tables or views within the context of a query or
[DML statement](data_manipulation.md).
CTEs are used in place of a sub-select to simplify the appearance of a query.
`WITH` clauses take the form `WITH <cte-name> AS (<cte-select>)`.

Expand Down

0 comments on commit 26be94b

Please sign in to comment.