Skip to content

Commit 5a8a40a

Browse files
committed
docs: document SQLCDEBUG=databases=managed
1 parent 4be42c6 commit 5a8a40a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/reference/environment-variables.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,15 @@ The `dumpexplain` command prints the JSON-formatted result from running
182182

183183
`SQLCDEBUG=dumpexplain=1`
184184

185+
### databases
186+
187+
Setting this value to `managed` prevents `sqlc vet` from opening connections to
188+
databases configured with a `uri`. Rules that need a database connection will
189+
only run against a managed database; evaluating such a rule against a `uri`
190+
database returns an error.
191+
192+
`SQLCDEBUG=databases=managed`
193+
185194
## SQLCTMPDIR
186195

187196
If specified, use the given directory as the base for temporary folders. Only

0 commit comments

Comments
 (0)