mirror of
https://github.com/tauri-apps/tauri-forage.git
synced 2026-02-04 02:31:20 +01:00
8008 lines
92 KiB
HTML
8008 lines
92 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
<title>JSDoc: forage</title>
|
|
|
|
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
|
|
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
|
|
<script src="./build/entry.js"></script>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
<!--[if lt IE 9]>
|
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
<![endif]-->
|
|
<link href="https://fonts.googleapis.com/css?family=Muli:100,400,700|Oswald:300|Inconsolata,700" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
|
|
<link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
|
|
<link type="text/css" rel="stylesheet" href="styles/app.min.css">
|
|
<link type="text/css" rel="stylesheet" href="styles/iframe.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div id="stickyNavbarOverlay"></div>
|
|
<div class="top-navbar">
|
|
<div class="container">
|
|
<nav class="navbar" role="navigation" aria-label="main navigation">
|
|
<div class="navbar-brand">
|
|
|
|
|
|
<h1 class="navbar-item">tauri-forage Documentation</h1>
|
|
|
|
<a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
|
|
<span aria-hidden="true"></span>
|
|
<span aria-hidden="true"></span>
|
|
<span aria-hidden="true"></span>
|
|
</a>
|
|
</div>
|
|
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="columns">
|
|
<div class="column is-3" id="sidebarNav">
|
|
<div class="sidebar">
|
|
<nav>
|
|
<h2><a href="index.html">Home</a></h2><div class="category"></div><div class="category"><h2>crypto</h2><h3>Namespaces</h3><ul><li><a href="crypto.html">crypto</a></li><li><a href="crypto.box.html">box</a></li><li><a href="crypto.secretBox.html">secretBox</a></li></ul></div><div class="category"><h2>forage</h2><h3>Namespaces</h3><ul><li><a href="cryptoForage.html">cryptoForage</a></li><li><a href="forage.html">forage</a></li></ul></div><div class="category"><h2>handler</h2><h3>Namespaces</h3><ul><li><a href="handler.html">handler</a></li></ul></div>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<div class="column is-9-desktop">
|
|
<div class="content" id="main-content-wrapper">
|
|
<header class="page-title">
|
|
<p>Namespace</p>
|
|
<h1>forage</h1>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<header>
|
|
|
|
<h2>forage</h2>
|
|
|
|
|
|
</header>
|
|
|
|
<article>
|
|
<div class="container-overview">
|
|
|
|
|
|
<div class="description"><script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>-> externally, we are using the same API as localForage,
|
|
with the exception of the dropInstance interface, which, while
|
|
still available, has been split out into three distinct calls.
|
|
Also, are using <code>.then</code> instead of the callback approach, and
|
|
always catch an error.</p>
|
|
<p>Of note are the extensions to the generic interface:</p>
|
|
<ul>
|
|
<li>mergeItem (with a number of merge strategies available)</li>
|
|
<li>getKeyValue</li>
|
|
<li>deleteItemKey</li>
|
|
<li>hasKey</li>
|
|
<li>hasKeyValue</li>
|
|
</ul>
|
|
<p>Note:
|
|
Even if undefined is saved, null will be returned by getItem().
|
|
This is due to a limitation in localStorage, and for compatibility
|
|
reasons localForage cannot store the value undefined.</p>
|
|
<p>Usage Options:</p>
|
|
<ol>
|
|
<li>Exactly the same interface as localForage</li>
|
|
<li>With a currying function applied to the result</li>
|
|
<li>Modify the value returned (with or without curry)</li>
|
|
<li>Define error suppression</li>
|
|
</ol></div>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line7">line 7</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='vertical-section'>
|
|
<h3 class="title"><span>Methods</span></h3>
|
|
<div class="members">
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".config">
|
|
<a class="href-link" href="#.config">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
config<span class="signature">(options)</span><span class="type-signature"></span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>options</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">object</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line564">line 564</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".config">
|
|
<a class="href-link" href="#.config">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
config<span class="signature">(options)</span><span class="type-signature"></span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>options</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">object</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line564">line 564</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".createInstance">
|
|
<a class="href-link" href="#.createInstance">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
createInstance<span class="signature">(name)</span><span class="type-signature"> → {boolean}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>This will return the entire object.
|
|
If you just want to know if it worked, do this:</p>
|
|
<pre class="prettyprint source"><code>const driver = !!forage.createInstance({ name: 'Test' })
|
|
</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>name</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line598">line 598</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">boolean</span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".createInstance">
|
|
<a class="href-link" href="#.createInstance">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
createInstance<span class="signature">(name)</span><span class="type-signature"> → {boolean}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>This will return the entire object.
|
|
If you just want to know if it worked, do this:</p>
|
|
<pre class="prettyprint source"><code>const driver = !!forage.createInstance({ name: 'Test' })
|
|
</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>name</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line598">line 598</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">boolean</span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".driver">
|
|
<a class="href-link" href="#.driver">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
driver<span class="signature">()</span><span class="type-signature"> → {string}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>not async, not thenable
|
|
don't use this. prefer to use config</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line572">line 572</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".driver">
|
|
<a class="href-link" href="#.driver">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
driver<span class="signature">()</span><span class="type-signature"> → {string}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>not async, not thenable
|
|
don't use this. prefer to use config</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line572">line 572</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".getItem">
|
|
<a class="href-link" href="#.getItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
getItem<span class="signature">(key, logger, returner, before, store)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>get the object of a specific row if it exists.
|
|
@</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>before</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">boolean</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>store</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line36">line 36</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".getItem">
|
|
<a class="href-link" href="#.getItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
getItem<span class="signature">(key, logger, returner, before, store)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>get the object of a specific row if it exists.
|
|
@</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>before</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">boolean</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>store</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line36">line 36</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".getKeyValue">
|
|
<a class="href-link" href="#.getKeyValue">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
getKeyValue<span class="signature">(key, value, curry, logger, returner)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>get the value of a specific key in a row if it exists.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line82">line 82</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".getKeyValue">
|
|
<a class="href-link" href="#.getKeyValue">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
getKeyValue<span class="signature">(key, value, curry, logger, returner)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>get the value of a specific key in a row if it exists.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line82">line 82</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".mergeItem">
|
|
<a class="href-link" href="#.mergeItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
mergeItem<span class="signature">(key, value, type, restArgs)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>Merging data shouldn't be hard, so that logic is in here.
|
|
There are so many ways to do it though, that the caller can define
|
|
merge strategy. This is a "prebuilt" Curry.</p>
|
|
<p>See https://ramdajs.com/docs/ for the exact features we are using.</p>
|
|
<p>The default is to use the <code>deepWithKey</code> approach.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">object</span>
|
|
|
|
|
|
|
<span class="param-type">array</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>type</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line215">line 215</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".mergeItem">
|
|
<a class="href-link" href="#.mergeItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
mergeItem<span class="signature">(key, value, type, restArgs)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>Merging data shouldn't be hard, so that logic is in here.
|
|
There are so many ways to do it though, that the caller can define
|
|
merge strategy. This is a "prebuilt" Curry.</p>
|
|
<p>See https://ramdajs.com/docs/ for the exact features we are using.</p>
|
|
<p>The default is to use the <code>deepWithKey</code> approach.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">object</span>
|
|
|
|
|
|
|
<span class="param-type">array</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>type</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line215">line 215</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".setItem">
|
|
<a class="href-link" href="#.setItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
setItem<span class="signature">(key, value, restArgs)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>set an row if it exists, completely overwrite it if
|
|
it does not exist.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line126">line 126</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".setItem">
|
|
<a class="href-link" href="#.setItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
setItem<span class="signature">(restArgs)</span><span class="type-signature"> → {Promise.<string>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>index</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line173">line 173</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<string></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".setItem">
|
|
<a class="href-link" href="#.setItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
setItem<span class="signature">(key, value, restArgs)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>set an row if it exists, completely overwrite it if
|
|
it does not exist.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line126">line 126</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".setItem">
|
|
<a class="href-link" href="#.setItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
setItem<span class="signature">(restArgs)</span><span class="type-signature"> → {Promise.<string>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>index</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line173">line 173</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<string></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<header>
|
|
|
|
<h2>forage</h2>
|
|
|
|
|
|
</header>
|
|
|
|
<article>
|
|
<div class="container-overview">
|
|
|
|
|
|
<div class="description"><script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>-> externally, we are using the same API as localForage,
|
|
with the exception of the dropInstance interface, which, while
|
|
still available, has been split out into three distinct calls.
|
|
Also, are using <code>.then</code> instead of the callback approach, and
|
|
always catch an error.</p>
|
|
<p>Of note are the extensions to the generic interface:</p>
|
|
<ul>
|
|
<li>mergeItem (with a number of merge strategies available)</li>
|
|
<li>getKeyValue</li>
|
|
<li>deleteItemKey</li>
|
|
<li>hasKey</li>
|
|
<li>hasKeyValue</li>
|
|
</ul>
|
|
<p>Note:
|
|
Even if undefined is saved, null will be returned by getItem().
|
|
This is due to a limitation in localStorage, and for compatibility
|
|
reasons localForage cannot store the value undefined.</p>
|
|
<p>Usage Options:</p>
|
|
<ol>
|
|
<li>Exactly the same interface as localForage</li>
|
|
<li>With a currying function applied to the result</li>
|
|
<li>Modify the value returned (with or without curry)</li>
|
|
<li>Define error suppression</li>
|
|
</ol></div>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line7">line 7</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='vertical-section'>
|
|
<h3 class="title"><span>Methods</span></h3>
|
|
<div class="members">
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".config">
|
|
<a class="href-link" href="#.config">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
config<span class="signature">(options)</span><span class="type-signature"></span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>options</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">object</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line564">line 564</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".config">
|
|
<a class="href-link" href="#.config">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
config<span class="signature">(options)</span><span class="type-signature"></span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>options</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">object</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line564">line 564</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".createInstance">
|
|
<a class="href-link" href="#.createInstance">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
createInstance<span class="signature">(name)</span><span class="type-signature"> → {boolean}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>This will return the entire object.
|
|
If you just want to know if it worked, do this:</p>
|
|
<pre class="prettyprint source"><code>const driver = !!forage.createInstance({ name: 'Test' })
|
|
</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>name</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line598">line 598</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">boolean</span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".createInstance">
|
|
<a class="href-link" href="#.createInstance">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
createInstance<span class="signature">(name)</span><span class="type-signature"> → {boolean}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>This will return the entire object.
|
|
If you just want to know if it worked, do this:</p>
|
|
<pre class="prettyprint source"><code>const driver = !!forage.createInstance({ name: 'Test' })
|
|
</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>name</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line598">line 598</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">boolean</span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".driver">
|
|
<a class="href-link" href="#.driver">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
driver<span class="signature">()</span><span class="type-signature"> → {string}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>not async, not thenable
|
|
don't use this. prefer to use config</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line572">line 572</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".driver">
|
|
<a class="href-link" href="#.driver">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
driver<span class="signature">()</span><span class="type-signature"> → {string}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>not async, not thenable
|
|
don't use this. prefer to use config</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line572">line 572</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".getItem">
|
|
<a class="href-link" href="#.getItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
getItem<span class="signature">(key, logger, returner, before, store)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>get the object of a specific row if it exists.
|
|
@</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>before</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">boolean</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>store</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line36">line 36</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".getItem">
|
|
<a class="href-link" href="#.getItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
getItem<span class="signature">(key, logger, returner, before, store)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>get the object of a specific row if it exists.
|
|
@</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>before</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">boolean</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>store</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line36">line 36</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".getKeyValue">
|
|
<a class="href-link" href="#.getKeyValue">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
getKeyValue<span class="signature">(key, value, curry, logger, returner)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>get the value of a specific key in a row if it exists.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line82">line 82</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".getKeyValue">
|
|
<a class="href-link" href="#.getKeyValue">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
getKeyValue<span class="signature">(key, value, curry, logger, returner)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>get the value of a specific key in a row if it exists.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line82">line 82</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".mergeItem">
|
|
<a class="href-link" href="#.mergeItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
mergeItem<span class="signature">(key, value, type, restArgs)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>Merging data shouldn't be hard, so that logic is in here.
|
|
There are so many ways to do it though, that the caller can define
|
|
merge strategy. This is a "prebuilt" Curry.</p>
|
|
<p>See https://ramdajs.com/docs/ for the exact features we are using.</p>
|
|
<p>The default is to use the <code>deepWithKey</code> approach.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">object</span>
|
|
|
|
|
|
|
<span class="param-type">array</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>type</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line215">line 215</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".mergeItem">
|
|
<a class="href-link" href="#.mergeItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
mergeItem<span class="signature">(key, value, type, restArgs)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>Merging data shouldn't be hard, so that logic is in here.
|
|
There are so many ways to do it though, that the caller can define
|
|
merge strategy. This is a "prebuilt" Curry.</p>
|
|
<p>See https://ramdajs.com/docs/ for the exact features we are using.</p>
|
|
<p>The default is to use the <code>deepWithKey</code> approach.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">object</span>
|
|
|
|
|
|
|
<span class="param-type">array</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>type</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line215">line 215</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".setItem">
|
|
<a class="href-link" href="#.setItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
setItem<span class="signature">(key, value, restArgs)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>set an row if it exists, completely overwrite it if
|
|
it does not exist.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line126">line 126</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".setItem">
|
|
<a class="href-link" href="#.setItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
setItem<span class="signature">(restArgs)</span><span class="type-signature"> → {Promise.<string>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>index</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="curriedForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="curriedForage.esm.js.html">curriedForage.esm.js</a>, <a href="curriedForage.esm.js.html#line173">line 173</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<string></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".setItem">
|
|
<a class="href-link" href="#.setItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
setItem<span class="signature">(key, value, restArgs)</span><span class="type-signature"> → {Promise.<(object|string|*)>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script><p>set an row if it exists, completely overwrite it if
|
|
it does not exist.</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>key</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>value</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line126">line 126</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<(object|string|*)></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="member">
|
|
|
|
|
|
|
|
<h4 class="name" id=".setItem">
|
|
<a class="href-link" href="#.setItem">#</a>
|
|
|
|
|
|
<span class='tag'>static</span>
|
|
|
|
|
|
<span class="code-name">
|
|
|
|
setItem<span class="signature">(restArgs)</span><span class="type-signature"> → {Promise.<string>}</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
<script type="text/javascript" src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js"></script>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
|
|
|
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr class="deep-level-0">
|
|
|
|
<td class="name"><code>restArgs</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>index</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>curry</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">function</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>logger</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">string</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="deep-level-1">
|
|
|
|
<td class="name"><code>returner</code></td>
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
<span class="param-type">number</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="description last"></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="tag-source">
|
|
<a href="tauriForage.esm.js.html" class="button">View Source</a>
|
|
<span>
|
|
<a href="tauriForage.esm.js.html">tauriForage.esm.js</a>, <a href="tauriForage.esm.js.html#line173">line 173</a>
|
|
</span>
|
|
</p>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='columns method-parameter'>
|
|
<div class="column is-2"><label>Returns:</label></div>
|
|
<div class="column is-10">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
<div class='column is-5 has-text-left'>
|
|
<label>Type: </label>
|
|
|
|
<span class="param-type">Promise.<string></span>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<footer class="footer">
|
|
<div class="content has-text-centered">
|
|
<p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a></p>
|
|
<p class="sidebar-created-by">
|
|
<a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
|
|
<a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
|
|
|
|
<script src="scripts/app.min.js"></script>
|
|
<script src="scripts/linenumber.js"> </script>
|
|
</body>
|
|
</html> |