( ctx context.Context, key Key, )
| 812 | } |
| 813 | |
| 814 | func (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. |
| 825 | func (c *entityReader[M, ExternalStruct, SpannerStruct, Key]) readRowByKeyWithTransaction( |
no test coverage detected