From 3fa73d5f1f902209c684fef7d138b0fbbd63f85d Mon Sep 17 00:00:00 2001
From: Jiaxiao Zhou
wasi:io/error@0.2.0-rc-2023-11-10
wasi:io/poll@0.2.0-rc-2023-11-10
wasi:io/streams@0.2.0-rc-2023-11-10
wasi:keyvalue/wasi-keyvalue-error
wasi:keyvalue/types
wasi:keyvalue/eventual
wasi:keyvalue/atomic
wasi:keyvalue/eventual-batch
wasi:keyvalue/wasi-keyvalue-error@0.1.0
wasi:keyvalue/types@0.1.0
wasi:keyvalue/eventual@0.1.0
wasi:keyvalue/atomic@0.1.0
wasi:keyvalue/eventual-batch@0.1.0
splice
.
u64
, stream-error
>resource error
resource error { ... }
-A generic keyvalue interface for WASI.
Err(error)
- result<
u64
, own<error
>>
-Import interface wasi:keyvalue/eventual
+Import interface wasi:keyvalue/eventual@0.1.0
A keyvalue interface that provides eventually consistent CRUD operations.
A CRUD operation is an operation that acts on a single key-value pair.
The value in the key-value pair is defined as a u8
byte array and the intention
@@ -683,7 +683,7 @@ not exist in the bucket, it returns Ok(false)
.
- result<
bool
, own<error
>>
-Import interface wasi:keyvalue/atomic
+Import interface wasi:keyvalue/atomic@0.1.0
A keyvalue interface that provides atomic operations.
Atomic operations are single, indivisible operations. When a fault causes
an atomic operation to fail, it will appear to the invoker of the atomic
@@ -737,7 +737,7 @@ and was replaced with the new
value.
- result<
bool
, own<error
>>
-Import interface wasi:keyvalue/eventual-batch
+Import interface wasi:keyvalue/eventual-batch@0.1.0
A keyvalue interface that provides eventually consistent batch operations.
A batch operation is an operation that operates on multiple keys at once.
Batch operations are useful for reducing network round-trip time. For example,
diff --git a/keyvalue-handle-watch.md b/keyvalue-handle-watch.md
index 7832961..0c712b8 100644
--- a/keyvalue-handle-watch.md
+++ b/keyvalue-handle-watch.md
@@ -5,16 +5,16 @@
interface wasi:io/error@0.2.0-rc-2023-11-10
interface wasi:io/poll@0.2.0-rc-2023-11-10
interface wasi:io/streams@0.2.0-rc-2023-11-10
-interface wasi:keyvalue/wasi-keyvalue-error
-interface wasi:keyvalue/types
-interface wasi:keyvalue/eventual
-interface wasi:keyvalue/atomic
-interface wasi:keyvalue/eventual-batch
+interface wasi:keyvalue/wasi-keyvalue-error@0.1.0
+interface wasi:keyvalue/types@0.1.0
+interface wasi:keyvalue/eventual@0.1.0
+interface wasi:keyvalue/atomic@0.1.0
+interface wasi:keyvalue/eventual-batch@0.1.0
Exports:
-- interface
wasi:keyvalue/handle-watch
+- interface
wasi:keyvalue/handle-watch@0.1.0
@@ -419,7 +419,7 @@ is ready for reading, before performing the splice
.
- result<
u64
, stream-error
>
-Import interface wasi:keyvalue/wasi-keyvalue-error
+Import interface wasi:keyvalue/wasi-keyvalue-error@0.1.0
Types
resource error
@@ -448,7 +448,7 @@ Soon: switch to resource error { ... }
-Import interface wasi:keyvalue/types
+Import interface wasi:keyvalue/types@0.1.0
A generic keyvalue interface for WASI.
Types
@@ -587,7 +587,7 @@ If the size is unknown or unavailable, this function returns an Err(error)
- result<
u64
, own<error
>>
-Import interface wasi:keyvalue/eventual
+Import interface wasi:keyvalue/eventual@0.1.0
A keyvalue interface that provides eventually consistent CRUD operations.
A CRUD operation is an operation that acts on a single key-value pair.
The value in the key-value pair is defined as a u8
byte array and the intention
@@ -680,7 +680,7 @@ not exist in the bucket, it returns Ok(false)
.
- result<
bool
, own<error
>>
-Import interface wasi:keyvalue/atomic
+Import interface wasi:keyvalue/atomic@0.1.0
A keyvalue interface that provides atomic operations.
Atomic operations are single, indivisible operations. When a fault causes
an atomic operation to fail, it will appear to the invoker of the atomic
@@ -734,7 +734,7 @@ and was replaced with the new
value.
- result<
bool
, own<error
>>
-Import interface wasi:keyvalue/eventual-batch
+Import interface wasi:keyvalue/eventual-batch@0.1.0
A keyvalue interface that provides eventually consistent batch operations.
A batch operation is an operation that operates on multiple keys at once.
Batch operations are useful for reducing network round-trip time. For example,
@@ -841,7 +841,7 @@ deleted while others might fail.
- result<_, own<
error
>>
-Export interface wasi:keyvalue/handle-watch
+Export interface wasi:keyvalue/handle-watch@0.1.0
Types
type bucket
diff --git a/wit/world.wit b/wit/world.wit
index fc922b6..ea64fe5 100644
--- a/wit/world.wit
+++ b/wit/world.wit
@@ -1,4 +1,4 @@
-package wasi:keyvalue;
+package wasi:keyvalue@0.1.0;
/// The `wasi:keyvalue/imports` world provides common APIs for interacting
/// with key-value stores. Components targeting this world will be able to