(ctx context.Context, db QueryAble, dbName, tbName string)
| 428 | } |
| 429 | |
| 430 | func ShowCreateTable(ctx context.Context, db QueryAble, dbName, tbName string) (r string, err error) { |
| 431 | query := fmt.Sprintf("SHOW CREATE TABLE %s.%s", mysqlconfig.EscapeName(dbName), mysqlconfig.EscapeName(tbName)) |
| 432 | g.Logger.Debug("ShowCreateTable", "query", query) |
| 433 | row := db.QueryRowContext(ctx, query) |
| 434 | var dummy interface{} |
| 435 | // | Table | Create Table | |
| 436 | err = row.Scan(&dummy, &r) |
| 437 | if err != nil { |
| 438 | return "", errors.Wrap(err, "ShowCreateTable") |
| 439 | } |
| 440 | return r, nil |
| 441 | } |
nothing calls this directly
no test coverage detected