Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: scriptease/database-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: Go
Choose a base ref
...
head repository: scriptease/database-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 18 files changed
  • 2 contributors

Commits on Aug 3, 2026

  1. Add DuckDB support with composite cross-database aliases

    jdbc:duckdb:[<path>][?attach=a,b] opens a DuckDB database; the attach
    parameter ATTACHes already-open mysql/postgres/sqlite aliases via
    temporary in-memory secrets built from their stored connection config,
    enabling cross-database joins without re-entering credentials.
    
    - go-duckdb v2 driver (statically linked libduckdb; build now CGO_ENABLED=1)
    - schema lists fully qualified names via SHOW ALL TABLES
    - describe uses PRAGMA table_info, resolving qualified names
    - read-only sources are attached READ_ONLY
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
    scriptease and claude committed Aug 3, 2026
    Configuration menu
    Copy the full SHA
    2020c01 View commit details
    Browse the repository at this point in the history
  2. Sign with disable-library-validation entitlement for DuckDB extensions

    Hardened runtime's library validation rejects DuckDB Labs-signed
    extensions (mysql_scanner etc.) on LOAD with 'different Team IDs'.
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
    scriptease and claude committed Aug 3, 2026
    Configuration menu
    Copy the full SHA
    e687bbb View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2026

  1. Enforce --read-only in the database session and guard query

    --read-only only blocked exec/begin/commit/rollback, so DDL sent through
    query (CREATE OR REPLACE VIEW) changed a read-only alias's database.
    
    - Every pooled connection of a read-only alias is read-only at the
      database: MySQL SET SESSION TRANSACTION READ ONLY (multiStatements
      forced off), Postgres default_transaction_read_only=on, SQLite mode=ro,
      file-backed DuckDB access_mode=read_only. An in-memory DuckDB composite
      attaches all sources READ_ONLY.
    - query on a read-only alias accepts only SELECT, WITH, SHOW,
      DESCRIBE/DESC and EXPLAIN.
    - list returns [{"alias","readOnly"}].
    
    MySQL/Postgres tests run when DATABASE_CLI_TEST_MYSQL_JDBC_URL or
    DATABASE_CLI_TEST_POSTGRES_JDBC_URL points at a disposable server.
    scriptease committed Nov 12, 2026
    Configuration menu
    Copy the full SHA
    846df82 View commit details
    Browse the repository at this point in the history
Loading
⌂ Proxy