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

Method GetIDFromFeatureKey

lib/gcpspanner/web_features.go:812–816  ·  view source on GitHub ↗
(ctx context.Context, filter *FeatureIDFilter)

Source from the content-addressed store, hash-verified

810}
811
812func (c *Client) GetIDFromFeatureKey(ctx context.Context, filter *FeatureIDFilter) (*string, error) {
813 return newEntityWriterWithIDRetrievalAndHooks[
814 webFeatureSpannerMapper, string, WebFeature, SpannerWebFeature, string](c).
815 getIDByKey(ctx, filter.featureKey)
816}
817
818func (c *Client) GetWebFeatureByInternalID(ctx context.Context, id string) (*SpannerWebFeature, error) {
819 return newEntityReader[webFeatureByIDSpannerMapper, SpannerWebFeature, string](c).readRowByKey(ctx, id)

Calls 1

getIDByKeyMethod · 0.80

Tested by

no test coverage detected