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

Method readRowByKey

lib/gcpspanner/client.go:814–822  ·  view source on GitHub ↗
(
	ctx context.Context,
	key Key,
)

Source from the content-addressed store, hash-verified

812}
813
814func (c *entityReader[M, ExternalStruct, SpannerStruct, Key]) readRowByKey(
815 ctx context.Context,
816 key Key,
817) (*SpannerStruct, error) {
818 txn := c.Single()
819 defer txn.Close()
820
821 return c.readRowByKeyWithTransaction(ctx, key, txn)
822}
823
824// readRowByKey retrieves the row of an entity based on its external key with transaction.
825func (c *entityReader[M, ExternalStruct, SpannerStruct, Key]) readRowByKeyWithTransaction(

Calls 2

CloseMethod · 0.45

Tested by

no test coverage detected