MCPcopy Index your code
hub / github.com/uber/aresdb / FetchAllSchemas

Method FetchAllSchemas

controller/client/controller.go:203–214  ·  view source on GitHub ↗

FetchAllSchemas fetches all schemas

()

Source from the content-addressed store, hash-verified

201
202// FetchAllSchemas fetches all schemas
203func (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
217func (c *ControllerHTTPClient) FetchSchema(tableName string) (table *metaCom.Table, err error) {

Callers

nothing calls this directly

Calls 1

GetAllSchemaMethod · 0.95

Tested by

no test coverage detected