()
| 375 | } |
| 376 | |
| 377 | func (m *SchemaDb) tableForDatabases() (*schema.Table, error) { |
| 378 | t := schema.NewTable("databases") |
| 379 | t.AddField(schema.NewFieldBase("Database", value.StringType, 64, "string")) |
| 380 | t.SetColumns(schema.ShowDatabasesColumns) |
| 381 | schemas := registry.Schemas() |
| 382 | rows := make([][]driver.Value, 0, len(schemas)) |
| 383 | sort.Strings(schemas) |
| 384 | for _, name := range schemas { |
| 385 | rows = append(rows, []driver.Value{name}) |
| 386 | } |
| 387 | t.SetRows(rows) |
| 388 | return t, nil |
| 389 | } |
| 390 | |
| 391 | type mysqlWriter struct { |
| 392 | } |
no test coverage detected