(db usql.QueryAble, databaseName, tableName string)
| 140 | } |
| 141 | |
| 142 | func ShowCreateTable(db usql.QueryAble, databaseName, tableName string) (statement string, err error) { |
| 143 | var dummy, createTableStatement string |
| 144 | query := fmt.Sprintf(`show create table %s.%s`, umconf.EscapeName(databaseName), umconf.EscapeName(tableName)) |
| 145 | err = db.QueryRowContext(context.TODO(), query).Scan(&dummy, &createTableStatement) |
| 146 | return createTableStatement, err |
| 147 | } |
| 148 | |
| 149 | func ShowCreateView(db *gosql.DB, databaseName, tableName string, dropTableIfExists bool) (createTableStatement string, err error) { |
| 150 | var dummy, character_set_client, collation_connection string |
no test coverage detected