query_database
Query a database table for the current project and retrieve results as a dictionary, with optional filtering using a where clause.
Instructions
Query a database resource for the current project. This will return the results of the query as a dictionary. You can use the 'where_clause' parameter to filter the results of the query. Example:
query_database(neptune_json_path, "users", "age > 18")This will return the results of the query as a dictionary. You can use the 'table_name' parameter to specify the table to query. Example:
query_database(neptune_json_path, "users", "age > 18")Note the database must already exist in the neptune.json configuration of the project. It must also be provisioned using 'provision_resources' before querying it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | ||
| where_clause | No | ||
| neptune_json_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||