The Gemini Code Assist Google Databases tool is available as part of Gemini Code Assist Standard and Enterprise edition.
You can use the Google Databases tool prompt @GoogleDatabases
in the Gemini Code Assist chat to generate database-aware application code for Cloud SQL in your integrated development environment (IDE).
The first three steps should be done by an administrator, and the remaining step can be completed by individual developers.
In your IDE, navigate to the Gemini Code Assist chat and enter the following prompt:
@GoogleDatabases generate a function FEATURE
Replace FEATURE with the feature requirement that you want to generate code for. For example, you could generate a function to get customers by ID by entering the following prompt: @GoogleDatabases generate a function to get customers by ID
The Gemini Code Assist Google Databases tool returns database-aware code for the feature requirement.
The following prompts are recommended for the Google Databases tool:
@GoogleDatabases generate a function that gets a sales comparison between the last two months
@GoogleDatabases generate a function that returns the top 5 selling items over the past week
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-17 UTC.