(ctx context.Context, zoneId string, name string)
| 27 | } |
| 28 | |
| 29 | func dbDeleteFile(ctx context.Context, zoneId string, name string) error { |
| 30 | return WithTx(ctx, func(tx *TxWrap) error { |
| 31 | query := "DELETE FROM db_wave_file WHERE zoneid = ? AND name = ?" |
| 32 | tx.Exec(query, zoneId, name) |
| 33 | query = "DELETE FROM db_file_data WHERE zoneid = ? AND name = ?" |
| 34 | tx.Exec(query, zoneId, name) |
| 35 | return nil |
| 36 | }) |
| 37 | } |
| 38 | |
| 39 | func dbGetZoneFileNames(ctx context.Context, zoneId string) ([]string, error) { |
| 40 | return WithTxRtn(ctx, func(tx *TxWrap) ([]string, error) { |