Skip to content

Commit d27cdb1

Browse files
authored
feat: update context file to use full table name
1 parent 9133f0d commit d27cdb1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CLOUD-SQL-POSTGRESQL.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,10 @@ Users may have set project environment variables:
7878
* `CLOUD_SQL_POSTGRES_DATABASE`: The name of the database.
7979
8080
Instead of prompting the user for these values for specific tool calls, prompt the user to verify reuse a specific value.
81-
Make sure to not use the environment variable name like `CLOUD_SQL_POSTGRES_PROJECT`, `${CLOUD_SQL_POSTGRES_PROJECT}`, or `$CLOUD_SQL_POSTGRES_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_POSTGRES_PROJECT`.
81+
Make sure to not use the environment variable name like `CLOUD_SQL_POSTGRES_PROJECT`, `${CLOUD_SQL_POSTGRES_PROJECT}`, or `$CLOUD_SQL_POSTGRES_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_POSTGRES_PROJECT`.
82+
83+
## Use Full Table Name Format "DATABASE_NAME.SCHEMA_NAME.TABLE_NAME"
84+
85+
**ALWAYS** use the full table name format, `DATABASE_NAME.SCHEMA_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `alloydb__execute_sql` tool.
86+
* Default to using "public" for the schema name.
87+
* Use command `echo $CLOUD_SQL_POSTGRES_DATABASE` to get the current database value.

0 commit comments

Comments
 (0)