From d27cdb1bdad8434b7edff9337fdb08612276df37 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Tue, 30 Sep 2025 10:14:11 -0700 Subject: [PATCH 1/4] feat: update context file to use full table name --- CLOUD-SQL-POSTGRESQL.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CLOUD-SQL-POSTGRESQL.md b/CLOUD-SQL-POSTGRESQL.md index 8d775f6..c674bd3 100644 --- a/CLOUD-SQL-POSTGRESQL.md +++ b/CLOUD-SQL-POSTGRESQL.md @@ -78,4 +78,10 @@ Users may have set project environment variables: * `CLOUD_SQL_POSTGRES_DATABASE`: The name of the database. Instead of prompting the user for these values for specific tool calls, prompt the user to verify reuse a specific value. -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`. \ No newline at end of file +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`. + +## Use Full Table Name Format "DATABASE_NAME.SCHEMA_NAME.TABLE_NAME" + +**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. +* Default to using "public" for the schema name. +* Use command `echo $CLOUD_SQL_POSTGRES_DATABASE` to get the current database value. From fe812e94b3548abe2ec75e97cd111e22cec05779 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Tue, 30 Sep 2025 10:15:39 -0700 Subject: [PATCH 2/4] Update CLOUD-SQL-POSTGRESQL.md --- CLOUD-SQL-POSTGRESQL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLOUD-SQL-POSTGRESQL.md b/CLOUD-SQL-POSTGRESQL.md index c674bd3..2cdb352 100644 --- a/CLOUD-SQL-POSTGRESQL.md +++ b/CLOUD-SQL-POSTGRESQL.md @@ -82,6 +82,6 @@ Make sure to not use the environment variable name like `CLOUD_SQL_POSTGRES_PROJ ## Use Full Table Name Format "DATABASE_NAME.SCHEMA_NAME.TABLE_NAME" -**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. +**ALWAYS** use the full table name format, `DATABASE_NAME.SCHEMA_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_postgres__execute_sql` tool. * Default to using "public" for the schema name. * Use command `echo $CLOUD_SQL_POSTGRES_DATABASE` to get the current database value. From 7fdd427c7ece7e60b686bd73acb43c5bc5bdbf1e Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Tue, 30 Sep 2025 10:16:22 -0700 Subject: [PATCH 3/4] Update CLOUD-SQL-POSTGRESQL.md --- CLOUD-SQL-POSTGRESQL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLOUD-SQL-POSTGRESQL.md b/CLOUD-SQL-POSTGRESQL.md index 2cdb352..ea95b54 100644 --- a/CLOUD-SQL-POSTGRESQL.md +++ b/CLOUD-SQL-POSTGRESQL.md @@ -1,7 +1,7 @@ You are a highly skilled database engineer and database administrator. Your purpose is to help the developer build and interact with databases and utilize data context throughout the entire software delivery cycle. --- +--- # Setup From c7c5b3e83cfe370a053432e871be673db23e4997 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Tue, 30 Sep 2025 10:23:09 -0700 Subject: [PATCH 4/4] Apply suggestion from @Yuan325 Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> --- CLOUD-SQL-POSTGRESQL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLOUD-SQL-POSTGRESQL.md b/CLOUD-SQL-POSTGRESQL.md index ea95b54..373c1ac 100644 --- a/CLOUD-SQL-POSTGRESQL.md +++ b/CLOUD-SQL-POSTGRESQL.md @@ -82,6 +82,6 @@ Make sure to not use the environment variable name like `CLOUD_SQL_POSTGRES_PROJ ## Use Full Table Name Format "DATABASE_NAME.SCHEMA_NAME.TABLE_NAME" -**ALWAYS** use the full table name format, `DATABASE_NAME.SCHEMA_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_postgres__execute_sql` tool. +**ALWAYS** use the full table name format, `DATABASE_NAME.SCHEMA_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_postgresql__execute_sql` tool. * Default to using "public" for the schema name. * Use command `echo $CLOUD_SQL_POSTGRES_DATABASE` to get the current database value.