Loader connects to a live database and reads its schema metadata. Dialect-specific implementations are provided in pkg/schema/postgres, pkg/schema/mysql, and pkg/schema/sqlite.
| 20 | // Dialect-specific implementations are provided in pkg/schema/postgres, |
| 21 | // pkg/schema/mysql, and pkg/schema/sqlite. |
| 22 | type Loader interface { |
| 23 | // Load returns the full schema for all user tables in the database. |
| 24 | // schemaName may be empty to use the database default. |
| 25 | Load(db *sql.DB, schemaName string) (*DatabaseSchema, error) |
| 26 | // LoadTable returns schema for a single named table. |
| 27 | LoadTable(db *sql.DB, schemaName, tableName string) (*Table, error) |
| 28 | } |
no outgoing calls
no test coverage detected