From 1aaafcbab9605db19b0d209a532ed1ffb50dd0fc Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Thu, 10 Sep 2026 17:02:44 +0100 Subject: [PATCH] docs: clarify diff connection routing --- concepts/diff.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/concepts/diff.mdx b/concepts/diff.mdx index 2f68d18..7828e16 100644 --- a/concepts/diff.mdx +++ b/concepts/diff.mdx @@ -12,9 +12,11 @@ SQLBuild can compare schemas and row-level data between two build contexts. This The mechanics below are identical for both; only what `FROM` and `TO` refer to changes. -In direct mode, each name resolves a configured target, including its named connection and -authoritative database/schema namespace. Unknown connection references fail during offline -configuration loading before SQLBuild attempts the comparison. +In direct mode, `FROM` and `TO` resolve the authoritative database/schema namespaces to compare. +SQLBuild uses the `TO` target's named connection for the complete comparison and accesses both +namespaces through fully qualified relations. It does not resolve or open the `FROM` target's +connection. The `TO` connection must therefore be able to read both namespaces; missing credentials +for that execution connection still fail before warehouse inspection. ```bash sqb diff prod:dev --full --select customer_status_snapshot