Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: WebAssembly/wit-abi-up-to-date@v22
- uses: WebAssembly/wit-abi-up-to-date@v25
with:
wit-bindgen: '0.32.0'
worlds: 'imports watch-service'
8 changes: 4 additions & 4 deletions imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ resource.</p>
<h3>Functions</h3>
<h4><a id="get_many"></a><code>get-many: func</code></h4>
<p>Get the key-value pairs associated with the keys in the store. It returns a list of
key-value pairs.</p>
<p>If any of the keys do not exist in the store, it returns a <code>none</code> value for that pair in the
list.</p>
key-value pairs, one for each key requested.</p>
<p>The returned list contains an entry for every key provided. If a key does not exist in the
store, its corresponding value will be <code>none</code>.</p>
<p>MAY show an out-of-date value if there are concurrent writes to the store.</p>
<p>If any other error occurs, it returns an <code>Err(error)</code>.</p>
<h5>Params</h5>
Expand All @@ -304,7 +304,7 @@ list.</p>
</ul>
<h5>Return values</h5>
<ul>
<li><a id="get_many.0"></a> result&lt;list&lt;option&lt;(<code>string</code>, list&lt;<code>u8</code>&gt;)&gt;&gt;, <a href="#error"><a href="#error"><code>error</code></a></a>&gt;</li>
<li><a id="get_many.0"></a> result&lt;list&lt;(<code>string</code>, option&lt;list&lt;<code>u8</code>&gt;&gt;)&gt;, <a href="#error"><a href="#error"><code>error</code></a></a>&gt;</li>
</ul>
<h4><a id="set_many"></a><code>set-many: func</code></h4>
<p>Set the values associated with the keys in the store. If the key already exists in the
Expand Down
8 changes: 4 additions & 4 deletions watch-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ resource.</p>
<h3>Functions</h3>
<h4><a id="get_many"></a><code>get-many: func</code></h4>
<p>Get the key-value pairs associated with the keys in the store. It returns a list of
key-value pairs.</p>
<p>If any of the keys do not exist in the store, it returns a <code>none</code> value for that pair in the
list.</p>
key-value pairs, one for each key requested.</p>
<p>The returned list contains an entry for every key provided. If a key does not exist in the
store, its corresponding value will be <code>none</code>.</p>
<p>MAY show an out-of-date value if there are concurrent writes to the store.</p>
<p>If any other error occurs, it returns an <code>Err(error)</code>.</p>
<h5>Params</h5>
Expand All @@ -302,7 +302,7 @@ list.</p>
</ul>
<h5>Return values</h5>
<ul>
<li><a id="get_many.0"></a> result&lt;list&lt;option&lt;(<code>string</code>, list&lt;<code>u8</code>&gt;)&gt;&gt;, <a href="#error"><a href="#error"><code>error</code></a></a>&gt;</li>
<li><a id="get_many.0"></a> result&lt;list&lt;(<code>string</code>, option&lt;list&lt;<code>u8</code>&gt;&gt;)&gt;, <a href="#error"><a href="#error"><code>error</code></a></a>&gt;</li>
</ul>
<h4><a id="set_many"></a><code>set-many: func</code></h4>
<p>Set the values associated with the keys in the store. If the key already exists in the
Expand Down
8 changes: 4 additions & 4 deletions wit/batch.wit
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ interface batch {
use store.{bucket, error};

/// Get the key-value pairs associated with the keys in the store. It returns a list of
/// key-value pairs.
/// key-value pairs, one for each key requested.
///
/// If any of the keys do not exist in the store, it returns a `none` value for that pair in the
/// list.
/// The returned list contains an entry for every key provided. If a key does not exist in the
/// store, its corresponding value will be `none`.
///
/// MAY show an out-of-date value if there are concurrent writes to the store.
///
/// If any other error occurs, it returns an `Err(error)`.
get-many: func(bucket: borrow<bucket>, keys: list<string>) -> result<list<option<tuple<string, list<u8>>>>, error>;
get-many: func(bucket: borrow<bucket>, keys: list<string>) -> result<list<tuple<string, option<list<u8>>>>, error>;
Comment thread
danbugs marked this conversation as resolved.

/// Set the values associated with the keys in the store. If the key already exists in the
/// store, it overwrites the value.
Expand Down
Loading