(ctx context.Context, internalID string)
| 95 | } |
| 96 | |
| 97 | func (c *Client) DeleteWebFeature(ctx context.Context, internalID string) error { |
| 98 | _, err := c.ReadWriteTransaction(ctx, func(_ context.Context, txn *spanner.ReadWriteTransaction) error { |
| 99 | mutation := spanner.Delete(webFeaturesTable, spanner.Key{internalID}) |
| 100 | |
| 101 | return txn.BufferWrite([]*spanner.Mutation{mutation}) |
| 102 | }) |
| 103 | |
| 104 | return err |
| 105 | } |
| 106 | |
| 107 | func TestUpsertWebFeature(t *testing.T) { |
| 108 | restartDatabaseContainer(t) |
no outgoing calls
no test coverage detected