
Adding features to an app can be hard. One minute you’re writing code, the next you’re switching to the PostgreSQL database client to run a query, and then it’s over to the console to check on your instances. For example, let’s say you wanted to add search capabilities. This can mean adding the right extensions to your PostgreSQL database and learning how to use it. How do you know which extension to use and how to use it in your queries? What if you could do it all from one place, using plain English?
The recently announced Gemini CLI extension for PostgreSQL is here to do just that. It’s a powerful tool that brings the magic of natural language and the convenience of the command line to your database tasks.
Let’s see it in action: The fuzzy search challenge
Imagine you want to add a “fuzzy search” feature to your app — you know, so users can find a “t-shirt” even if they type “tshirt”.
Normally, this would involve a bunch of research and manual steps. But with the Gemini CLI, it’s a conversation:
- The ask: You tell Gemini CLI you need to implement fuzzy search.
- The smart suggestion: Gemini CLI immediately identifies that the pg_trgm extension is the perfect tool for the job.
Source Credit: https://cloud.google.com/blog/products/databases/gemini-cli-for-postgresql-in-action/