Skip to content

feat(kotoba): add in-language ADBC status/error binding - #4729

Open
com-junkawasaki wants to merge 1 commit into
apache:mainfrom
kotoba-lang:cursor/kotoba-adbc-binding-9206
Open

feat(kotoba): add in-language ADBC status/error binding#4729
com-junkawasaki wants to merge 1 commit into
apache:mainfrom
kotoba-lang:cursor/kotoba-adbc-binding-9206

Conversation

@com-junkawasaki

Copy link
Copy Markdown

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:

  • AdbcStatusCode values from adbc.h
  • a packed error (status * 100000 + vendor_code)
  • a mock connection fixture (no real database)

The host owns drivers and maps a URI to an integer kind before calling into the wasm guest.

How it is built

.kotoba source compiles to wasm with Kotoba 0.7.2. Fixtures export main and return 0 on success.

./ci/scripts/kotoba_test.sh "$(pwd)"

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 0
  • Fork workflow Kotoba succeeded
  • Reviewers: same script with kotoba 0.7.2 on PATH

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>
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