These examples use synthetic names and data. Authenticate your CLI normally when running remote commands. Use disposable resources you own.
Requires an R2 SQL-enabled catalog and permission to query it. Set CATALOG_ID to its identifier, then run r2-sql-exit.sh. Wrangler 4.164.0 prints error 40003 for SELECT 1 (which does not reference a table) but returns status 0.