MCPcopy Create free account
hub / github.com/araddon/qlbridge / tableForVariables

Method tableForVariables

datasource/schemadb.go:292–299  ·  view source on GitHub ↗
(table string)

Source from the content-addressed store, hash-verified

290}
291
292func (m *SchemaDb) tableForVariables(table string) (*schema.Table, error) {
293
294 t := schema.NewTable(table)
295 t.AddField(schema.NewFieldBase("Variable_name", value.StringType, 64, "string"))
296 t.AddField(schema.NewFieldBase("Value", value.StringType, 64, "string"))
297 t.SetColumns(schema.ShowVariablesColumns)
298 return t, nil
299}
300
301func (m *SchemaDb) tableForTables() (*schema.Table, error) {
302

Callers 1

TableMethod · 0.95

Calls 4

AddFieldMethod · 0.95
SetColumnsMethod · 0.95
NewTableFunction · 0.92
NewFieldBaseFunction · 0.92

Tested by

no test coverage detected