gograph_schema
Find Go structs that map to a database table via struct tags. Identify which types represent a table for migration or ORM analysis.
Instructions
Find Go structs that declare a mapping to a specific database table via struct tags (e.g., db:"table_name", gorm:"table:table_name"). Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. WHEN TO USE: When tracing which Go types represent a database table, or before writing a migration to understand the current ORM model. NOT TO USE: For non-tagged Go structs used as query results (use gograph_fields or gograph_query instead). RETURNS: Matching struct names with package paths and file locations; empty when no structs map to the named table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | The table or schema name to search for in struct tags (e.g., 'users', 'roles') |