Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the component-side hostcalls for KV Store #430

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

computermouth
Copy link
Contributor

@computermouth computermouth commented Sep 24, 2024

First attempt at implementing the component hostcalls in viceroy.

Keeping as draft until #427 is merged, as there's some component changes in that branch as well.

@computermouth computermouth changed the base branch from main to byoung/kv-builder September 25, 2024 17:04
Copy link
Contributor

@elliottt elliottt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@computermouth computermouth marked this pull request as ready for review September 26, 2024 22:14
@computermouth computermouth merged commit c22e3a8 into byoung/kv-builder Sep 26, 2024
15 checks passed
@computermouth computermouth deleted the byoung/kv-component-impl branch September 26, 2024 22:14
computermouth added a commit that referenced this pull request Sep 27, 2024
* bring over changes from old branch

* Fix the declaration for lookup-result methods in trappable_imports

* start fleshing out builder api

* complete port from the old branch

* more kv store hostcalls, although linkage seems to be failing

* open, list, insert, more or less working, need more work on error handling

* fix up errors for inserts, compiles clean

* finished error reporting for deletes

* everything but ttl and regression tests

* all tests pass, but infinite recursion when deleting in delete

* fixed list ttl deletion, all tests pass

* fix for old sdk on new hostcalls

* clippy

* add base64 to the cargo.lock

* Added in the OOB check

* write out metadata length, even on failure

* cleanups as per @ulyssa

* added unit tests for kv store hostcalls

* Implement the component-side hostcalls for KV Store (#430)

* match wit and component to trevor's working branch in xqd

* lookup_wait impl for component

* insert and delete

* list impl

* re-make adapter

---------

Co-authored-by: Trevor Elliott <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants