feat: Integrate libseekdb to support embedded mode#7
Merged
raindrop93 merged 38 commits intomainfrom Feb 26, 2026
Merged
Conversation
8f7b3ca to
2b78d27
Compare
…, db cache and metadata retry
…-db cases in embedded tests
53fb66d to
02294fc
Compare
…d macOS addon libs copy
…r, extend batch timeout
…load from SEEKDB_BINDINGS_PATH; CI lint/build/test in parallel; drop darwin-x64
…x embedded client db type (undefined vs null)
… seekdb-js-bindings-*.zip)
…ee, English comments, update README
f730815 to
cb36758
Compare
… empty-results assertion, README in English
ed6098d to
ed000ee
Compare
…d-hoc sign dylibs on macOS after build
…tests, cache seekdb docker image
…URL_PREFIX string
…tch-operations test
f16cdbc to
cbd9cd3
Compare
…SEEKDB_BINDINGS_PATH, cache zip under SEEKDB_BINDINGS_CACHE_DIR
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.
Summary
@seekdb/js-bindings) instead of a remote MySQL server. Same public API:path→ embedded,host→ server.Solution Description
Main changes:
Client:
SeekdbClientfacade picksSeekdbEmbeddedClientorSeekdbServerClientfrompathvshost. Both extendBaseSeekdbClientand useIInternalClientfor execution.Embedded path: New
InternalEmbeddedClientimplementsIInternalClientwith bindings:open(path)→connect(db, database)→execute(conn, sql, params). Converts bindings result toRowDataPacket[]so Collection layer is unchanged.Factory:
Client(args)— ifpath→ embedded; ifhost→ server; if neither → default embedded atcwd/seekdb.db(throws if addon missing). Same forAdminClient.Types:
SeekdbClientArgs.path?(embedded),SeekdbClientArgs.host?(server).Bindings: C++ already exposes
open,connect,execute; no API change. Docs added for C ABI expectations (c-abi-modification-reference.md).Tests:
packages/seekdb/tests/embedded/— client, collection (DML/query/approximate/hybrid), data, edge-cases, embedding, examples.test-utils.tsfor isolated DB dirs and cleanup.Usage
Checklist