Skip to content

dbeaver/dbeaver-jdbc-libsql#24 Support database namespaces - #67

Open
Destrolaric wants to merge 1 commit into
develfrom
dbeaver/dbeaver-jdbc-libsql#24-libsql-tenancy
Open

Destrolaric wants to merge 1 commit into
develfrom
dbeaver/dbeaver-jdbc-libsql#24-libsql-tenancy

Conversation

@Destrolaric

@Destrolaric Destrolaric commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Closes #24

Companion DBeaver UI PR: dbeaver/dbeaver#42682

Summary

  • Accept an optional db_name JDBC connection property or URL query parameter; explicit properties take precedence.
  • Send the UTF-8 namespace using unpadded standard Base64 in x-namespace-bin for stable and newer sqld servers, including metadata requests.
  • Preserve default/hostname-based routing and the existing client constructor when no namespace is selected.
  • Advertise the database property through JDBC driver metadata and document usage.

Integration

Extends via the existing JDBC connection-property and driver-property metadata contracts. Modifies LibSqlDriver.connect/getPropertyInfo and the LibSqlConnection constructor because registration of optional namespace selection belongs to this driver. The LibSqlClient constructor, executeBatch, and openSimpleConnection implement the namespace header within its existing transport; LibSqlConstants and LibSqlUtils add the property/header constants and URL extraction. No shared host/plugin contracts change.

Validation

  • JDBC driver build and all 16 driver tests pass.
  • Live JDBC smoke test against official sqld 0.24.32: property-based and URL-based selection read distinct data from two namespaces, including server-version metadata.
  • Authenticated requests succeed; requests without a token are rejected.

Local test-server binaries, databases, credentials, and unrelated working-tree changes are excluded.

AI-assisted implementation using OpenCode (GPT-6.1 Sol).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-03T10:51:01.790043Z afa8540 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

Multi databases or tenancy

1 participant