MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / DeleteWebFeature

Method DeleteWebFeature

lib/gcpspanner/web_features_test.go:97–105  ·  view source on GitHub ↗
(ctx context.Context, internalID string)

Source from the content-addressed store, hash-verified

95}
96
97func (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
107func TestUpsertWebFeature(t *testing.T) {
108 restartDatabaseContainer(t)

Calls

no outgoing calls

Tested by

no test coverage detected