Skip to content

Commit 2e5337a

Browse files
authored
feat: add full table name to context file (#34)
* feat: add full table name to context file * Update CLOUD-SQL-MYSQL.md
1 parent f0543af commit 2e5337a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

CLOUD-SQL-MYSQL.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,9 @@ Users may have set project environment variables:
8181
* `CLOUD_SQL_MYSQL_DATABASE`: The name of the database.
8282
8383
Instead of prompting the user for these values for specific tool calls, prompt the user to verify reuse a specific value.
84-
Make sure to not use the environment variable name like `CLOUD_SQL_MYSQL_PROJECT`, `${CLOUD_SQL_MYSQL_PROJECT}`, or `$CLOUD_SQL_MYSQL_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_MYSQL_PROJECT`.
84+
Make sure to not use the environment variable name like `CLOUD_SQL_MYSQL_PROJECT`, `${CLOUD_SQL_MYSQL_PROJECT}`, or `$CLOUD_SQL_MYSQL_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_MYSQL_PROJECT`.
85+
86+
## Use Full Table Name Format "DATABASE_NAME.TABLE_NAME"
87+
88+
**ALWAYS** use the full table name format, `DATABASE_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_mysql__execute_sql` tool.
89+
* Use command `echo $CLOUD_SQL_MYSQL_DATABASE` to get the current database value.

0 commit comments

Comments
 (0)