Skip to content

fix(deps): move to sqlx 0.9.1 for the SQLite fix of RUSTSEC-2026-0459 - #1166

Merged
eliseong merged 5 commits into
mainfrom
fix/1090-sqlx-0.9.1
Nov 26, 2026
Merged

eliseong merged 5 commits into
mainfrom
fix/1090-sqlx-0.9.1

Conversation

@LeeroyHannigan

@LeeroyHannigan LeeroyHannigan commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What

The SQLite builds bundle SQLite 3.54.1 instead of 3.46.0. RUSTSEC-2026-0459 covers SQLite before 3.54.0 (#1090).

  • sqlx moves from 0.8.6 to 0.9.1, libsqlite3-sys from 0.30.1 to 0.40.0 and pgvector from 0.4.1 to 0.4.2. sqlx-sqlite 0.9.1 accepts libsqlite3-sys >=0.30.1, <0.41.0, and the workspace now requires 0.40. pgvector 0.4.2 is the first release that accepts sqlx 0.9.
  • sqlx 0.9 declares Rust 1.94.0. The workspace rust-version moves from 1.91.1 to 1.94.0. The same goes for the minimum leg of test.yml, the four Dockerfiles (rust:1.94.0-bookworm, pinned by digest) and the docs that state the minimum.
  • sqlx 0.9 takes a SQL string that is not a &'static str only through sqlx::AssertSqlSafe, which adds no escaping. Each of the 450 calls that pass a string built at run time now wraps it. Two lock_timeout statements of the catalog check (fix: match data relations by catalog id in catalog-check, so --fix keeps live tables #690) now bind their value instead, as the other lock_timeout statements do. Elsewhere the SQL text and the bound values do not change.
  • Five released migration code bodies hold such calls: SQLite migrations 3, 4, 6 and 9, and PostgreSQL migration 11. Each gets a new RELEASED entry for each store it runs in, with its new source checksum and a rebless note. CONTRIBUTING.md asks for that on a dependency upgrade. The fingerprints do not change.
  • time moves from 0.3.47 to 0.3.55, because sqlx-core 0.9.1 requires 0.3.48. That release deprecates format_description::parse. The backup export now calls parse_borrowed::<1>, which parse calls.
  • The WebAssembly SQLite shim from feat(wasm): [Add WebAssembly browser support for ExtendDB #1009 (crates/storage-sqlite/src/wasm_sqlx.rs) follows sqlx 0.9.1. It defines AssertSqlSafe, counts no rows for a read-only statement, parses JSON from the bytes, and gives the 0.9.1 texts of two errors.
  • docs/manuals/07-upgrade-manual.md has a v1.1.0 entry for the changes under Breaking changes.
  • The four licence notice generators rewrote their files for the new lock.

The connection and pool defaults of sqlx-sqlite and sqlx-core are the same in 0.8.6 and 0.9.1. The SQLite builds compile libsqlite3-sys with the same features (bundled, unlock_notify).

The 203 wrapped calls outside test code interpolate constants, column names, server-generated table and index ids, numbers, one TTL attribute name and one relation name. UpdateTimeToLive allows only [A-Za-z0-9._-] in that attribute name. The relation is one that the catalog check finds in the data database, and the call quotes it as an identifier. No other value that a client sends reaches SQL text through these calls. That covers table names, index names, other attribute names, keys, ARNs, tags and paths. A check of those calls found two gaps in code that this change does not touch (#1164). The bootstrapper does not check its role and database names. The PostgreSQL TTL index has no storage-layer check of the TTL attribute name.

Why

sqlx-sqlite 0.8.6 requires libsqlite3-sys ^0.30.1, and sqlx has no 0.8 release that accepts a fixed version. sqlx 0.9.1, released on 18 Nov 2026, is the first release that does.

Closes #1090

Testing done

At 5b7d9df, which merges main 80490c6.

Builds and checks:

Tests:

  • cargo test --locked with --no-fail-fast for extenddb-core, extenddb-engine, extenddb-storage-mongodb and extenddb-storage-cassandra: 2940 passed and 93 ignored.
  • extenddb-storage-sqlite, lib and tests: 330 passed, 4 failed and 1 ignored. tests/wasm_shim.rs passes all 103 rows natively against sqlx 0.9.1.
  • cargo test --locked -p extenddb-storage-postgres --tests against pgvector/pgvector:pg16 on 127.0.0.1: 480 passed, 5 failed and 2 ignored. cargo test --locked -p extenddb --test catalog_check: 1 passed.
  • Each failure above is a filesystem backup store test that needs a directory whose ancestors belong to root or to the test user. This host has none.

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace)
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic)
  • I have added or updated tests for new functionality
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, or public CLI surface, an RFC has been accepted or is linked
    below. Otherwise, an ADR captures the decision (link below).

ADR / RFC: n/a

Breaking changes


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.

sqlx 0.9.1, the first sqlx release that admits a libsqlite3-sys with the
fix for RUSTSEC-2026-0459 (#1090), declares Rust 1.94.0. The workspace
rust-version moves from 1.91.1 to 1.94.0, and so do the minimum leg of
test.yml and the four Dockerfiles. The image is rust:1.94.0-bookworm,
pinned by its index digest as before.

The docs and comments that state the minimum say 1.94.0. The atomic
replacement for fetch_update is still unstable on 1.94.0, so the three
comments that cite it name 1.94.0.
sqlx-sqlite 0.8.6 requires libsqlite3-sys ^0.30.1, which bundles SQLite
3.46.0, and sqlx has no 0.8 release that admits a fixed version. sqlx
0.9.1 admits libsqlite3-sys up to 0.40.x. The workspace now requires
libsqlite3-sys 0.40, which bundles SQLite 3.54.1, so every SQLite build
carries the fix. pgvector moves from 0.4.1 to 0.4.2, the first release
that accepts sqlx 0.9.

sqlx 0.9 takes a SQL string that is not a &'static str only through
sqlx::AssertSqlSafe. Each call that passes a string built at run time
now wraps it, with no change to the SQL text or the bound values. In
production code, where the code owns the String and does not use it
again, the query takes it. Elsewhere the query copies it.

Five released migration code bodies hold such calls: SQLite migrations
3, 4, 6 and 9, and PostgreSQL migration 11. Each gets a new RELEASED
entry for each store it runs in, with its new source checksum and a
rebless note. CONTRIBUTING.md asks for that on a dependency upgrade.
Their fingerprints stay the same, so deployed ledgers stay valid.

sqlx-core 0.9.1 requires time 0.3.48, which deprecates
format_description::parse. The backup export calls parse_borrowed::<1>,
which parse calls.

The generators rewrote the licence notice files for the new lock.

Closes #1090

@LJMart11 LJMart11 left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 1e5b3b7. Focused SQLite and PostgreSQL tests completed under the available toolchains. The v1.1.0 upgrade entry should document sqlx 0.9.1's PGHOSTADDR/hostaddr and .pgpass behavior before operators upgrade.

Main is at 80490c6, 32 commits after the base of this branch
(c2e9a32, 18 Nov). Six files conflicted.

crates/app/src/cmd_catalog_check.rs: this branch wrapped the DDL of the
orphan drop loop in sqlx::AssertSqlSafe. Main replaced that loop with
diag_store.drop_orphaned_relations, so the merge keeps main's file.

Cargo.lock: cargo resolved the merged manifests. Then
cargo update -p pgvector moved pgvector 0.4.2 onto sqlx 0.9.1. The lock
holds one sqlx (0.9.1) and libsqlite3-sys 0.40.0. For errno, rustix,
tempfile and winapi-util the resolution keeps the windows-sys 0.52.0
dependency of this branch, where main has 0.61.2. Both versions stay in
the lock, and these dependencies apply to Windows targets only.

The four SOFTWARE-LICENSE-NOTICES files: regenerated from the merged
lock with cargo-about 0.9.0.

This commit holds the merge alone. The next commit makes the code that
main added build with sqlx 0.9.1.
sqlx 0.9 takes SQL that is not a &'static str only in
sqlx::AssertSqlSafe. Main added such SQL after the base of this branch.

crates/storage-postgres/src/data/catalog_check.rs: the two lock_timeout
statements now call set_lock_timeout in data/ddl.rs. That new helper
holds the SELECT set_config('lock_timeout', $1, true) statement of
set_lock_timeout_until, which now calls it. So these statements need no
wrapper. The DROP TABLE of an orphan passes its SQL in AssertSqlSafe,
because a relation name cannot be bound. The name is a relation that
the check found in the database, quoted as an identifier.

The PostgreSQL tests catalog_check/support.rs, catalog_check/report.rs,
lsi_query_plan.rs, lsi_query_plan/multi_range_gsi.rs and
lsi_query_plan/scratch.rs, and the SQLite tests
data/query_scan/plan_tests.rs and tests/wasm_shim.rs pass their SQL in
AssertSqlSafe. The test SQL uses names that the tests create.

Four catalog_check tests assumed sqlx 0.8.6:

- sqlx 0.9 adds " at line <n>" to the text of a PostgreSQL error. <n> is
  a line of the server source. Three tests now compare the text without
  it, through without_server_line in support.rs.
- PgConnectOptions::options now escapes the spaces of a value. The
  fourth test sets default_transaction_isolation through
  diagnostics_with, which now passes the value as it is.

The WebAssembly shim, crates/storage-sqlite/src/wasm_sqlx.rs, came with
main. It copied the API and the rules of sqlx 0.8.6. It now follows
sqlx 0.9.1:

- It defines AssertSqlSafe. The query builders, raw_sql,
  Executor::execute and begin_with take impl Into<String>, so a
  &'static str and AssertSqlSafe both pass.
- rows_affected adds 0 for a statement that sqlite3_stmt_readonly marks
  read-only, as sqlx-sqlite 0.9.1 does. A SELECT after a write now
  reports 0.
- The shim parses serde_json::Value from the bytes, so serde_json checks
  the UTF-8. A new row in tests/wasm_shim.rs reads TEXT that is not UTF-8
  as JSON (ROWS is 103).
- The two Protocol texts carry the source lines of 0.9.1
  (arguments:87 and arguments:93).
- In 0.9.1 a failed begin_with opens no transaction, so a later
  begin_with runs. The shim always did this. Its "difference" row in
  tests/wasm_shim.rs is now a plain row that expects Ok(()) on both
  targets.

The module documentation names 0.9.1, and SQLite 3.54.1 on both
targets. The comment in .github/workflows/wasm.yml names the 1.94.0
floor.
The v1.1.0 entry in docs/manuals/07-upgrade-manual.md lists the changes
that an operator sees after the move to sqlx 0.9.1. A build from source
needs Rust 1.94.0. PostgreSQL connections read PGHOSTADDR, hostaddr=
and .pgpass as libpq does. The text of a PostgreSQL error ends with the
line of the server source. The entry also says what to check before the
upgrade.

docs/design/15-backup-restore.md names the 1.94.0 toolchain. The AWS
SDK entries in Cargo.lock do not change. Their versions build on 1.94.0,
as they did on 1.91.1.
@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author

Thanks for the review, @LJMart11.

I fixed Docs item 1 in 5b7d9df. The v1.1.0 entry in docs/manuals/07-upgrade-manual.md now covers PGHOSTADDR, hostaddr=, .pgpass and the Rust 1.94.0 floor. It also says what to check before an upgrade. While I wrote it, I found one more change for operators. sqlx 0.9 adds at line <n> to the text of a PostgreSQL error, so that's in the entry too.

I also merged main into the branch. Some code and tests that main added since 18 Nov needed the AssertSqlSafe wrapper. The WebAssembly SQLite shim from #1009 copied the sqlx 0.8.6 rules, so it now follows 0.9.1. That's 7e2a9b7.

For the items you couldn't check: cargo +1.94.0 check --locked --workspace --all-targets passes here, and CI runs the 1.94.0 test leg and the MongoDB jobs on this head. I didn't run a server with PGHOSTADDR set either. The entry follows the sqlx-postgres 0.9.1 code you pointed to.

@LJMart11 LJMart11 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked at 5b7d9df against the list from 1e5b3b7.

Previous items: 1 fixed.

1 finding is left inline.

timeout: std::time::Duration,
) -> Result<(), sqlx::Error> {
sqlx::query("SELECT set_config('lock_timeout', $1, true)")
.bind(format!("{}ms", timeout.as_millis().max(1)))

@LJMart11 LJMart11 Nov 25, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: Lee showed that the 1 ms floor and its missing test predate this PR; the change only moves the floor into set_lock_timeout. It is tracked separately in #1502, so no change is requested here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The floor and its missing test predate this PR. On main, begin_read_committed applies .max(1) itself (catalog_check.rs line 255 at 80490c6), and so does set_lock_timeout_until (ddl.rs line 733). This PR moves both into set_lock_timeout and doesn't change the value either call sets.

I filed #1502 for a test that fails without the floor. With a zero budget and a held indexes write, the first attempt starts with 0 ms left, so the test takes the floor on every run.

LeeroyHannigan added a commit that referenced this pull request Nov 27, 2026
* chore(release): bump version to 1.1.0

Moves the workspace version from 1.0.0 to 1.1.0 on every surface that
carries it: the root Cargo.toml version and its 13 exact pins, the 15
workspace entries in Cargo.lock (no third-party entry changes),
packaging/npm/package.json (the version and the five platform pins),
the four license-notice files (regenerated with cargo-about 0.9.0), and
the sample `extenddb version` and `serve` output in
docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md.

This is a minor release. Since v1.0.0, main has three features (#468,
#1009, #1449) and changes that make ExtendDB answer as DynamoDB does, which
docs/versioning.md ships in a minor release. It adds no catalog
migration (RELEASED_THROUGH stays 12, the last id), no configuration
key and no backup format version.

Upgrade manual, Behavior Changes by Release: v1.1.0 entries for #468
(AT_TIMESTAMP, and the GetShardIterator answers it changes), #486,
#503, #544, #567, #765 and #774, #588, #596, #690, #963, #1144, #1173,
#1194, #1375 and #1522, next to the existing entries for #398, #526,
#1166, #1449 and #1523. The #526 entry now gives the old
TransactWriteItems mismatch message, the #1523 heading takes the
v1.1.0: prefix, and the entries are in PR order. Current Status, the General
Upgrade Procedure and the Rollback Procedure cover 1.0.0 to 1.1.0: no
migrate step, the #1166 checks before a PostgreSQL upgrade, and a
rollback runs the 1.0.0 binary on the same catalog, with the two
limits the manual names (#526 tokens, and 1.0.0's catalog-check
--fix). The rollback note of the KEK-file switch says that 1.0.0
serves a switched catalog.

docs/manuals/11-deployment-guide.md: a sentence about the release
before the one that carries #398 is gone.

docs/troubleshooting.md: the bus error entry names 1.0.0 as the release
that has the bug, so its line carries a version-literal-ok marker.

* docs(upgrade): add the v1.1.0 entry of #1290, put #1349's in order

#1290 merged after this branch was rebased. It changes the answer to a
request with no Authorization header, so it gets a v1.1.0 entry. The
merge of main put the #1349 entry after the #1523 entry. It moves to
the place of its number, beside the new #1290 entry.

---------

Co-authored-by: Lee Hannigan <29015211+LeeroyHannigan@users.noreply.github.com>
annguy3n added a commit to annguy3n/extenddb that referenced this pull request Nov 30, 2026
Resolve the Cargo.toml and Cargo.lock merge conflicts with main (v1.1.0) and
adapt the Cloud Bigtable storage backend to upstream changes:

- Align workspace Cargo.toml and Cargo.lock with ExtendDB v1.1.0 (ExtendDB#1514), MSRV
  1.94.0 and sqlx 0.9.1 (ExtendDB#1166), and extenddb-server default-features = false
  (ExtendDB#1449), bumping extenddb-storage-bigtable to =1.1.0.
- Adapt AuthorizationStore::fetch_session_data (ExtendDB#1523) to look up role session
  policy, tags, and RFC 3339 created_at in O(1) by access_key_id via
  iam_session_ak:<access_key_id> -> iam_session:<session_token> without
  re-checking session expiry, with symmetric 4 KiB row-key and non-empty token
  guards across fetch_session_data and lookup_credential.
- Decide StreamSpecification transitions in BigtableEngine::update_table ahead
  of companion table fields and GSI updates (ExtendDB#963) so a refused disable/enable
  writes no other table member while still closing any open shards left behind
  by a prior disable.
- Update docs/bigtable-setup.md for Rust 1.94.0 and the exact v1.1.0 extenddb
  version output.
- Add unit and live cbtemulator integration tests covering
  session_data_conformance::run, expired/deleted/oversized session-data and
  credential lookups, write_bootstrap_rows admin environment-variable
  combinations and idempotent re-runs (ExtendDB#1349), ClientRequestToken NUL/backslash/
  UTF-8 escaped stored tokens (ExtendDB#1375), and refused stream disable/enable
  preceding companion edits (ExtendDB#963).
hitesh96db pushed a commit that referenced this pull request Dec 1, 2026
Resolves the conflict in drop_ttl_index with sqlx 0.9 (#1166): the bounded-wait retry loop is kept and its DROP INDEX goes through sqlx::AssertSqlSafe. The dynamic SQL in tests/ttl_index_drop_lock.rs is wrapped the same way so the test builds against sqlx 0.9.

Signed-off-by: Hitesh Sharma <hts@amazon.com>
hitesh96db pushed a commit that referenced this pull request Dec 1, 2026
Resolve the conflict in crates/storage-sqlite/src/delete_table.rs: keep
this branch's DELETING refusal and comment, and main's sqlx::AssertSqlSafe
wrapper (#1166) on the row query. The old DELETING-branch index query is
gone with the branch.

Signed-off-by: Hitesh Sharma <hts@amazon.com>
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Main moved to sqlx 0.9.1 in #1166. sqlx 0.9 accepts SQL that is not a
&'static str only in sqlx::AssertSqlSafe. After the merge of main, the
three test files that this branch adds did not compile: gsi_async_build.rs,
gsi_build_slots.rs and gsi_build_task.rs.

Each of the 22 calls that passes a string built at run time now passes it
in sqlx::AssertSqlSafe, in the same form as main's tests. The SQL text and
the bound values do not change.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Two files conflicted. In crates/storage-sqlite/src/data/query_scan.rs, main
(#1166) changed the rowid query of the start-key check, which this branch
deletes, so the merge keeps the check of this branch. In
docs/manuals/07-upgrade-manual.md, main (#1514) moved the ClientRequestToken
entry, and this branch added its entry after the old place. The merge keeps
the ClientRequestToken entry of main. The entry of this branch becomes
"v1.2.0: SQLite parallel Scan segments follow the partition key". It goes
after the v1.2.0 entries of main, because v1.1.0 does not include this change.
Its text names 1.1.0 as the release before the change.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Main is at c8e66fb. This branch last had main at 3534c9e. Since
then, 42 PRs merged into main, #1482 among them, which fixes the
WebAssembly build.

Seven files conflicted. The merge keeps both sides in each:

- crates/core/src/settings_keys.rs: #1449 adds the
  search_inequality_filters keys where this branch adds the GSI phase
  hold key. Both blocks stay, the hold first.
- crates/app/src/cmd_settings.rs: #1449 imports server_setting_default
  and this branch imports writable_key_validator from the same module.
  The import names both.
- crates/server/src/management/ops_settings.rs: #1449 adds the
  search_tests module where this branch adds its tests module. Both
  stay.
- crates/storage-mongodb/src/lib.rs: #486 adds mod error_class where
  this branch adds its two GSI modules. All three stay.
- crates/storage-postgres/src/delete_table.rs: #1411 refuses a table
  that is already DELETING before the indexes are read, where this
  branch built its description with the backfill set. The merge keeps
  the refusal of #1411 and reads the backfill set after it, before the
  index rows, as this branch does.
- crates/storage-sqlite/src/delete_table.rs: the same change of #1411.
  The second hunk keeps the backfill set before the index rows and the
  sqlx::AssertSqlSafe query of #1166.
- crates/storage-sqlite/src/table_helpers.rs: the backfill set before
  the catalog rows, and the sqlx::AssertSqlSafe query of #1166.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Main moved to sqlx 0.9.1 in #1166, which refuses a query string built at
run time unless AssertSqlSafe wraps it. The two PostgreSQL GSI test files
of this branch built their SQL with format! and passed it by reference,
so after the merge of main their test targets did not compile (E0277).
gsi_backfilling.rs and gsi_create_converge.rs now wrap each built string
in sqlx::AssertSqlSafe, as the other test files of the crate do on main.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Main is at c8e66fb. This branch last had main at a417b2f. Since
then, 40 PRs merged into main, #1482 among them, which fixes the
WebAssembly build, and #1166, which moves the SQLite crate to sqlx
0.9.1.

Git merged every file with no conflict. Main also changed nine files of
this PR, in lines that this branch does not change. They are
Cargo.lock, crates/storage-sqlite/Cargo.toml, bootstrapper.rs, lib.rs,
migrations/backend.rs and migrations/mod.rs of crates/storage-sqlite,
docs/manuals/07-upgrade-manual.md, docs/manuals/10-security-model.md
and docs/troubleshooting.md.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
One hunk of crates/engine/src/update_table.rs conflicted. Main added the
companion.is_some() term of #963 to the condition that reads the table
before the backend call. This branch replaced switches_to_on_demand
with changes_capacity in the same condition. The merge keeps both terms.
changes_capacity includes every switch to PAY_PER_REQUEST.

Main moved to sqlx 0.9.1 in #1166, and sqlx 0.9.1 refuses a query string
that the code builds at run time. The SQLite test helper table_with builds
its UPDATE with format!, so the merge wraps that string in
sqlx::AssertSqlSafe.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Main is at c057660, 43 commits after the last merge. Thirteen files
conflicted. Main's #1411 and #1446 change the same DeleteTable paths as
this branch, so the merge keeps one copy of each check.

#1411 refuses a second DeleteTable of a DELETING table on PostgreSQL and
SQLite with StorageError::IndexesInUse and the TableBeingDeleted
message. This branch refuses it with StorageError::TableBeingDeleted,
which UpdateTable, MongoDB and Cassandra also raise. The merge keeps
that variant, removes the second check that git placed after it in
crates/storage-postgres/src/delete_table.rs, and removes
deleting_refusal from crates/storage-sqlite/src/delete_table.rs. On
SQLite, #1411 also re-reads the status under the write lock
(refuse_if_deleting_or_gone). This branch reads the row inside the
BEGIN IMMEDIATE transaction under the same lock, so the re-read goes.
#1411's two concurrent DeleteTable tests stay, in one test module with
this branch's tests, and expect TableBeingDeleted.

#1446 removes a MongoDB table's tags and catalog document in one
transaction keyed on the table id (delete_tags_and_table_doc). This
branch does the same in remove_deleting_document, which the control
plane also runs. The merge keeps the branch's function and adds #1446's
note on aws:ResourceTag to its comment. The live test
live_delete_table_keeps_tags_while_deleting finishes its stopped
DeleteTable with finish_table_delete, because this branch refuses a
second DeleteTable.

Other conflicts: the doc comment of ErrorMessageKey::TableBeingDeleted
names both measurement dates. crates/engine/src/delete_table.rs keeps
the key-info drop before the storage call with #1411's
deleting_description, and one test module. The engine test uses main's
crate::test_context, so crates/engine/src/partiql/test_context.rs is
main's. In put_item.rs, delete_item.rs and update_item.rs the queries
take main's AssertSqlSafe and keep this branch's db_error. In
table_snapshot.rs, conftest.py and test_table_operations.py main's test
names and helpers stay, with the TableBeingDeleted variant. In
docs/differences-from-dynamodb.md both rows stay. #1411's row now says
that MongoDB and Cassandra refuse a second DeleteTable too.

sqlx 0.9.1 (#1166) refuses a query string built at run time. Eight of
this branch's queries now take AssertSqlSafe: two in ddl.rs
(table_key_info and the status check) and six in the window tests.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Main is at db8a90d. This branch last had main at 3534c9e (#1009).
Since then, 44 commits merged into main. Among them, #1514 released
v1.1.0 without this branch, and #1166 moved to sqlx 0.9.1.

Four files conflicted:

- crates/storage/src/lib.rs: #1449 exports VectorItemFilter beside the
  transact exports that this branch extends. The merge keeps both.
- crates/storage-mongodb/src/data_engine_live_tests.rs: #1446 declares
  its delete_table module where this branch declares token. The merge
  keeps both, main's first.
- crates/storage-postgres/tests/twi_conflict.rs: #1166 passes the SQL of
  the deadlock test through sqlx::AssertSqlSafe, and this branch takes
  the outside transaction from outside_transaction. The merge keeps the
  helper and the wrapper.
- docs/manuals/07-upgrade-manual.md: #1514 moved and rewrote the v1.1.0
  ClientRequestToken entry of #526. This branch changed the Cassandra
  sentence of the old copy. The merge keeps the entry as main has it.
  The text of this branch is now a v1.2.0 entry after the v1.2.0
  entries of main, because v1.1.0 shipped without this change.

sqlx 0.9 takes SQL that is not a &'static str only in
sqlx::AssertSqlSafe (#1166). The merge passes the SQL of the 11 queries
that this branch adds to twi_conflict.rs in it. The SQL text does not
change.

Git merged these files, which both sides change, at other lines:

- crates/core/src/error/mod.rs and crates/core/src/validation/mod.rs
- crates/engine/src/transact_write_helpers.rs and
  crates/storage/src/transact.rs
- tx_helpers.rs of PostgreSQL and SQLite, and
  crates/storage-postgres/src/data/update_item.rs
- the Cassandra direct_integration.rs and
  docs/differences-from-dynamodb.md

Since #1375, the engine stores a ClientRequestToken with each backslash
doubled and each U+0000 written \0 before a backend sees it. The token
code of this branch uses that stored form, as it used the token before.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Main is at db8a90d. This branch last had main at 14ade59 (#864).
Since then, 35 commits merged into main. Among them, #1514 released
v1.1.0 without this branch, #1166 moved to sqlx 0.9.1, and #1449 added
the SearchVectors inequality filters.

Four files conflicted:

- crates/storage-postgres/src/vector_search.rs: #1166 passes the search
  statement through sqlx::AssertSqlSafe, and #1449 moves the vector
  attribute of a hit into hit(). This branch decodes the stored item
  through json_to_item. The merge keeps the wrapper and hit() of main
  and the decode of this branch.
- docs/adr/README.md: #1449 adds ADR-0031, the search condition grammar,
  where this branch lists its own ADR-0031. The ADR of this branch is
  now ADR-0032, the next number that no ADR on main and no open PR uses.
- docs/getting-started.md and docs/manuals/04-quickstart-setup-guide.md:
  #1514 shows version 1.1.0 in the sample output, and this branch shows
  catalog migration 13. The merge shows both.

The upgrade manual merged with no conflict, but the U+0000 entry of this
branch was a v1.1.0 entry. It is now a v1.2.0 entry after the v1.2.0
entries of main, because v1.1.0 shipped without this change. The
sentence that links to the entry names 1.2.0. It also adds 1.1.0 to the
releases whose deployments run extenddb migrate --yes once for
migration 13.

sqlx 0.9 takes SQL that is not a &'static str only in
sqlx::AssertSqlSafe (#1166). The merge passes the SQL of the 18 queries
that this branch adds in migration 13 and in its PostgreSQL tests in it.
The SQL text does not change. m0013_tests.rs runs the migration files
with raw_sql(*text), as the runner of main does.

Git merged the other files that both sides change at other lines. Main
adds no catalog migration, so migration 13 keeps its number.
parsnips added a commit to parsnips/extenddb that referenced this pull request Dec 4, 2026
main moved to sqlx 0.9.1 (ExtendDB#1166), whose query functions take
`impl SqlSafeStr`, so a `&String` no longer builds.

Conflicts:
- crates/storage-postgres/src/data/put_item.rs: both transaction-path
  inserts keep `insert_if_absent_sql(...)` and pass it through
  `sqlx::AssertSqlSafe(...)`.
- crates/storage-postgres/tests/put_create_race.rs: the gate helpers stay
  in tests/common/insert_gate.rs; main's `AssertSqlSafe` moves into
  `install_gate` there.

Eleven sites merged without a conflict but did not build, and are wrapped
the same way: the four statements of `insert_absent`, one in
tests/common/insert_gate.rs and six in tests/create_only_put.rs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012kcRer5geZYy7TBPP5U5sD
Signed-off-by: michael parsons <michael@twisp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RUSTSEC-2026-0459: the SQLite builds bundle SQLite 3.46.0, and sqlx 0.8.6 blocks the fixed libsqlite3-sys

3 participants