feat(kotoba): add in-language ADBC status/error binding - #4729
Open
com-junkawasaki wants to merge 1 commit into
Open
feat(kotoba): add in-language ADBC status/error binding#4729com-junkawasaki wants to merge 1 commit into
com-junkawasaki wants to merge 1 commit into
Conversation
Add a first-class Kotoba guest tree that compiles .kotoba to wasm with Kotoba 0.7.2. v1 is AdbcStatusCode plus a packed error and a mock connection fixture. Kotoba cannot FFI libadbc; the host owns drivers. Co-authored-by: Jun Kawasaki <04.feasts_minded@icloud.com>
com-junkawasaki
requested review from
kou,
lidavidm and
zeroshade
as code owners
August 28, 2026 10:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a first-class Kotoba guest binding next to the existing language trees.
What this is
Kotoba cannot FFI
libadbc. v1 is a small in-language ADBC surface:AdbcStatusCodevalues fromadbc.hstatus * 100000 + vendor_code)The host owns drivers and maps a URI to an integer kind before calling into the wasm guest.
How it is built
.kotobasource compiles to wasm with Kotoba 0.7.2. Fixtures exportmainand return0on success.Kotoba CI on the fork is green: https://github.com/kotoba-lang/arrow-adbc/actions/workflows/kotoba.yml
Fork review: kotoba-lang#1
An ASF ICLA may be required before this can be accepted. Happy to file a JIRA/GitHub issue first if maintainers want that.
Test plan
./ci/scripts/kotoba_test.sh— compile + four fixtures return 0KotobasucceededPATH