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
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,5 +35,18 @@ These instructions apply to all work in this repository.
35
35
- Use the existing scripts in `scripts/` and root automation scripts when available.
36
36
- Avoid introducing new dependencies unless necessary and justified.
37
37
38
+
## Database Operations and Inspection
39
+
- When asked about database operations, schema inspection, or data queries, **use `hana-cli` commands directly** to inspect and interact with the database.
40
+
- Common database inspection commands:
41
+
-`hana-cli tables` - List all tables in the current schema
42
+
-`hana-cli inspectTable [schema] [table]` - Show table columns and structure
43
+
-`hana-cli querySimple --query "SELECT * FROM TABLE"` - Execute SQL with `--query` flag (supports `--output json|csv|table|excel`)
44
+
-`hana-cli indexes [schema] [table]` - List indexes on a table
45
+
-`hana-cli dependencies [schema] [object]` - Show object dependencies
46
+
-**Important**: Always use the `--query` flag with querySimple: `hana-cli querySimple --query "SQL statement"` (not positional arguments)
47
+
- Use actual database queries via `hana-cli` rather than relying on code inspection; this provides real, up-to-date information for testing and validation.
48
+
- For custom SQL queries, use `hana-cli querySimple` to execute the SQL and get structured JSON results back, enabling programmatic analysis.
49
+
- Document any database schema changes, new tables, or structural modifications discovered during inspection.
50
+
38
51
## Output Expectations
39
52
- Provide concise summaries of changes and recommended follow-ups.
0 commit comments