(ctx context.Context, tabId, name string)
| 41 | } |
| 42 | |
| 43 | func UpdateTabName(ctx context.Context, tabId, name string) error { |
| 44 | return WithTx(ctx, func(tx *TxWrap) error { |
| 45 | tab, _ := DBGet[*waveobj.Tab](tx.Context(), tabId) |
| 46 | if tab == nil { |
| 47 | return fmt.Errorf("tab not found: %q", tabId) |
| 48 | } |
| 49 | if tabId != "" { |
| 50 | tab.Name = name |
| 51 | DBUpdate(tx.Context(), tab) |
| 52 | } |
| 53 | return nil |
| 54 | }) |
| 55 | } |
| 56 | |
| 57 | func UpdateObjectMeta(ctx context.Context, oref waveobj.ORef, meta waveobj.MetaMapType, mergeSpecial bool) error { |
| 58 | return WithTx(ctx, func(tx *TxWrap) error { |
no test coverage detected