ジェネレーター ノードで PostgreSQL ツールを使用して AI モデルを PostgreSQL データベースに接続し、クエリやデータ取得を可能にする方法を学びます。
gemini-2.5-pro
), select the Tools tab. You will see a list of available integrations that can be connected.
postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
. For detailed information, refer to the official PostgreSQL documentation.getTableStructure
query
getTableStructure
: Allows the AI model to retrieve the schema of your database. This includes table names, column names, and data types. This is crucial for the AI to understand how to construct valid queries.query
: Allows the AI model to execute a standard SQL query against the connected database and retrieve the results.getTableStructure
and query
tools for a node.
getTableStructure
function to understand the database layout.users
).SELECT COUNT(*) FROM users;
.query
tool.