Skip to content

Commit

Permalink
add get by index methdo for key-value
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed Aug 23, 2024
1 parent 9f0a630 commit 4a049cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wit/key-value.wit
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ interface key-value {
///
/// Returns `ok(none)` if the key does not exist.
get: func(key: string) -> result<option<list<u8>>, error>;

get-by-index: func(key: string, index: u32) -> result<option<list<u8>>, error>;
}

/// The set of errors which may be raised by functions in this interface
Expand Down

0 comments on commit 4a049cc

Please sign in to comment.