Interface abstracts either a side-effect imported driver or a binary that is called in order to produce the data required for generation.
| 40 | // Interface abstracts either a side-effect imported driver or a binary |
| 41 | // that is called in order to produce the data required for generation. |
| 42 | type Interface interface { |
| 43 | // Assemble the database information into a nice struct |
| 44 | Assemble(config Config) (*DBInfo, error) |
| 45 | // Templates to add/replace for generation |
| 46 | Templates() (map[string]string, error) |
| 47 | // Imports to merge for generation |
| 48 | Imports() (importers.Collection, error) |
| 49 | } |
| 50 | |
| 51 | // DBInfo is the database's table data and dialect. |
| 52 | type DBInfo struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…