MCPcopy
hub / github.com/uber/aresdb / FetchAllSchema

Method FetchAllSchema

client/schema.go:145–159  ·  view source on GitHub ↗

FetchAllSchema fetch all schemas

()

Source from the content-addressed store, hash-verified

143
144// FetchAllSchema fetch all schemas
145func (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
162func (cf *CachedSchemaHandler) FetchSchemas() {

Callers

nothing calls this directly

Calls 3

setTableMethod · 0.95
fetchAndSetEnumCasesMethod · 0.95
FetchAllSchemasMethod · 0.65

Tested by

no test coverage detected