Skip to content

Commit 4eaa617

Browse files
committed
v8.3.0-beta.3
1 parent 3f03cbc commit 4eaa617

169 files changed

Lines changed: 758 additions & 752 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

coverage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"tests":8414,"assertions":35263,"lines":{"total":4400,"covered":4400,"skipped":0,"pct":100},"statements":{"total":4779,"covered":4779,"skipped":0,"pct":100},"functions":{"total":2143,"covered":2143,"skipped":0,"pct":100},"branches":{"total":1357,"covered":1357,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
1+
{"tests":8426,"assertions":35275,"lines":{"total":4400,"covered":4400,"skipped":0,"pct":100},"statements":{"total":4779,"covered":4779,"skipped":0,"pct":100},"functions":{"total":2143,"covered":2143,"skipped":0,"pct":100},"branches":{"total":1357,"covered":1357,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}

cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@
157157
"Persistable",
158158
"Persistables",
159159
"Pglite",
160+
"picklist",
161+
"picklists",
160162
"plpgsql",
161163
"Porco",
162164
"PowerSync",

docs/api/all.html

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

docs/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/article.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/schematizer-arktype/"><code>schematizer-arktype</code></a></li><li><a href="/api/schematizer-arktype/interfaces/">Interfaces</a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/"><code>ArkTypeSchematizer</code></a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/"><code>toTablesSchema</code></a></li></ul></nav><section class="s1" id="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/" data-id="tTS2"><h1><code>toTablesSchema</code></h1><p>The <code>toTablesSchema</code> method converts a mapping of ArkType object schemas into a TinyBase <a href="/api/store/type-aliases/schema/tablesschema/"><code>TablesSchema</code></a>.</p><pre><code><span class="function"><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/">toTablesSchema</a></span><span class="punctuation">(</span>schemas<span class="operator">:</span> <span class="punctuation">{</span><span class="punctuation">[</span>tableId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/store/type-aliases/schema/tablesschema/">TablesSchema</a></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>schemas</code></th><td><code><span class="punctuation">{</span><span class="punctuation">[</span>tableId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span></code></td><td><p>A mapping of table IDs to ArkType object schemas.</p></td></tr><tr><th class="right">returns</th><td><code><span class="type"><a href="/api/store/type-aliases/schema/tablesschema/">TablesSchema</a></span></code></td><td><p></p><p>A TinyBase <a href="/api/store/type-aliases/schema/tablesschema/"><code>TablesSchema</code></a>.</p><p></p></td></tr></table></div><p>This method extracts basic type information (string, number, boolean), default values, and nullable flags from ArkType schemas. Complex validation rules like min/max, regex patterns, refinements, and transforms are ignored.</p><section class="s2"><h2>Example</h2><p>This example converts ArkType schemas to TinyBase format.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>type<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'arktype'</span><span class="punctuation">;</span>
1+
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/schematizer-arktype/"><code>schematizer-arktype</code></a></li><li><a href="/api/schematizer-arktype/interfaces/">Interfaces</a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/"><code>ArkTypeSchematizer</code></a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/"><code>toTablesSchema</code></a></li></ul></nav><section class="s1" id="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/" data-id="tTS2"><h1><code>toTablesSchema</code></h1><p>The <code>toTablesSchema</code> method converts a mapping of ArkType object schemas into a TinyBase <a href="/api/store/type-aliases/schema/tablesschema/"><code>TablesSchema</code></a>.</p><pre><code><span class="function"><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/">toTablesSchema</a></span><span class="punctuation">(</span>schemas<span class="operator">:</span> <span class="punctuation">{</span><span class="punctuation">[</span>tableId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/store/type-aliases/schema/tablesschema/">TablesSchema</a></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>schemas</code></th><td><code><span class="punctuation">{</span><span class="punctuation">[</span>tableId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span></code></td><td><p>A mapping of table IDs to ArkType object schemas.</p></td></tr><tr><th class="right">returns</th><td><code><span class="type"><a href="/api/store/type-aliases/schema/tablesschema/">TablesSchema</a></span></code></td><td><p></p><p>A TinyBase <a href="/api/store/type-aliases/schema/tablesschema/"><code>TablesSchema</code></a>.</p><p></p></td></tr></table></div><p>This method extracts basic type information (string, number, boolean), string literals, default values, and nullable flags from ArkType schemas. Complex validation rules like min/max, regex patterns, refinements, and transforms are ignored.</p><section class="s2"><h2>Example</h2><p>This example converts ArkType schemas to TinyBase format.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>type<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'arktype'</span><span class="punctuation">;</span>
22
<span class="keyword">import</span> <span class="punctuation">{</span>createStore<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'tinybase'</span><span class="punctuation">;</span>
33
<span class="keyword">import</span> <span class="punctuation">{</span>createArkTypeSchematizer<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'tinybase/schematizers/schematizer-arktype'</span><span class="punctuation">;</span>
44

docs/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/totablesschema/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/tovaluesschema/article.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/schematizer-arktype/"><code>schematizer-arktype</code></a></li><li><a href="/api/schematizer-arktype/interfaces/">Interfaces</a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/"><code>ArkTypeSchematizer</code></a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/tovaluesschema/"><code>toValuesSchema</code></a></li></ul></nav><section class="s1" id="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/tovaluesschema/" data-id="tVS2"><h1><code>toValuesSchema</code></h1><p>The <code>toValuesSchema</code> method converts a mapping of ArkType schemas into a TinyBase <a href="/api/store/type-aliases/schema/valuesschema/"><code>ValuesSchema</code></a>.</p><pre><code><span class="function"><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/tovaluesschema/">toValuesSchema</a></span><span class="punctuation">(</span>schemas<span class="operator">:</span> <span class="punctuation">{</span><span class="punctuation">[</span>valueId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/store/type-aliases/schema/valuesschema/">ValuesSchema</a></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>schemas</code></th><td><code><span class="punctuation">{</span><span class="punctuation">[</span>valueId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span></code></td><td><p>A mapping of value IDs to ArkType schemas.</p></td></tr><tr><th class="right">returns</th><td><code><span class="type"><a href="/api/store/type-aliases/schema/valuesschema/">ValuesSchema</a></span></code></td><td><p></p><p>A TinyBase <a href="/api/store/type-aliases/schema/valuesschema/"><code>ValuesSchema</code></a>.</p><p></p></td></tr></table></div><p>This method extracts basic type information and default values from ArkType schemas.</p><section class="s2"><h2>Example</h2><p>This example converts ArkType value schemas.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>type<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'arktype'</span><span class="punctuation">;</span>
1+
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/schematizer-arktype/"><code>schematizer-arktype</code></a></li><li><a href="/api/schematizer-arktype/interfaces/">Interfaces</a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/"><code>ArkTypeSchematizer</code></a></li><li><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/tovaluesschema/"><code>toValuesSchema</code></a></li></ul></nav><section class="s1" id="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/tovaluesschema/" data-id="tVS2"><h1><code>toValuesSchema</code></h1><p>The <code>toValuesSchema</code> method converts a mapping of ArkType schemas into a TinyBase <a href="/api/store/type-aliases/schema/valuesschema/"><code>ValuesSchema</code></a>.</p><pre><code><span class="function"><a href="/api/schematizer-arktype/interfaces/schematizer/arktypeschematizer/methods/conversion/tovaluesschema/">toValuesSchema</a></span><span class="punctuation">(</span>schemas<span class="operator">:</span> <span class="punctuation">{</span><span class="punctuation">[</span>valueId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/store/type-aliases/schema/valuesschema/">ValuesSchema</a></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>schemas</code></th><td><code><span class="punctuation">{</span><span class="punctuation">[</span>valueId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">]</span><span class="operator">:</span> <span class="builtin">any</span><span class="punctuation">}</span></code></td><td><p>A mapping of value IDs to ArkType schemas.</p></td></tr><tr><th class="right">returns</th><td><code><span class="type"><a href="/api/store/type-aliases/schema/valuesschema/">ValuesSchema</a></span></code></td><td><p></p><p>A TinyBase <a href="/api/store/type-aliases/schema/valuesschema/"><code>ValuesSchema</code></a>.</p><p></p></td></tr></table></div><p>This method extracts basic type information, string literals, and default values from ArkType schemas.</p><section class="s2"><h2>Example</h2><p>This example converts ArkType value schemas.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>type<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'arktype'</span><span class="punctuation">;</span>
22
<span class="keyword">import</span> <span class="punctuation">{</span>createStore<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'tinybase'</span><span class="punctuation">;</span>
33
<span class="keyword">import</span> <span class="punctuation">{</span>createArkTypeSchematizer<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'tinybase/schematizers/schematizer-arktype'</span><span class="punctuation">;</span>
44

0 commit comments

Comments
 (0)