FetchAllSchemas fetches all schemas
()
| 201 | |
| 202 | // FetchAllSchemas fetches all schemas |
| 203 | func (c *ControllerHTTPClient) FetchAllSchemas() (tables []*metaCom.Table, err error) { |
| 204 | var schemas []metaCom.Table |
| 205 | schemas, err = c.GetAllSchema(c.namespace) |
| 206 | if err != nil { |
| 207 | return |
| 208 | } |
| 209 | tables = make([]*metaCom.Table, 0, len(schemas)) |
| 210 | for i := range schemas { |
| 211 | tables = append(tables, &schemas[i]) |
| 212 | } |
| 213 | return |
| 214 | } |
| 215 | |
| 216 | // FetchSchema fetch one schema for given table |
| 217 | func (c *ControllerHTTPClient) FetchSchema(tableName string) (table *metaCom.Table, err error) { |
nothing calls this directly
no test coverage detected