You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add /query/sql endpoint and RETURN DISTINCT documentation
- Document POST /query/sql endpoint for SQL generation
- Explain SQL array format with SET ROLE example
- Add role-based connection pool explanation
- Document RETURN DISTINCT for de-duplicating results
- Add role parameter to /query endpoint docs
- Include Python and curl examples
- Note cache behavior and performance characteristics
-`parameters` (object, optional): Query parameters for parameterized queries ✅ **[COMPLETED: Nov 10, 2025]**
39
42
- Supports all JSON data types: String, Int, Float, Bool, Array, Null
40
43
- Use `$paramName` syntax in queries (e.g., `WHERE n.age >= $minAge`)
41
44
- SQL injection prevention built-in
45
+
-`role` (string, optional): ClickHouse RBAC role name for query execution ✅ **[ADDED: v0.5.1]**
46
+
- Uses role-based connection pools for optimal performance
47
+
- No `SET ROLE` overhead on query execution
48
+
- Example: `"analyst"`, `"admin"`
42
49
-`schema_name` (string, optional): Graph schema/database name to use for this query. Defaults to `"default"`. Enables multi-database support for queries. **Note**: The `USE` clause in the query itself takes precedence over this parameter.
- The `sql` array format allows representing complex multi-statement operations
252
+
- When `role` is specified, `SET ROLE` is included in the SQL array for visibility, but actual query execution uses role-based connection pools (no SET ROLE overhead)
253
+
- Parameter placeholders (`$paramName`) are NOT substituted in the generated SQL - they remain as placeholders for you to substitute when executing
0 commit comments