FetchAllSchema fetch all schemas
()
| 143 | |
| 144 | // FetchAllSchema fetch all schemas |
| 145 | func (cf *CachedSchemaHandler) FetchAllSchema() error { |
| 146 | tables, err := cf.schemaFetcher.FetchAllSchemas() |
| 147 | if err != nil { |
| 148 | return err |
| 149 | } |
| 150 | |
| 151 | for _, table := range tables { |
| 152 | cf.setTable(table) |
| 153 | err := cf.fetchAndSetEnumCases(table) |
| 154 | if err != nil { |
| 155 | return err |
| 156 | } |
| 157 | } |
| 158 | return nil |
| 159 | } |
| 160 | |
| 161 | // FetchSchemas fetch schemas in schemas of CachedSchemaHandler |
| 162 | func (cf *CachedSchemaHandler) FetchSchemas() { |
nothing calls this directly
no test coverage detected