Type of the result record
Primary key to route the query
SQL statement with parameter placeholders
Parameter values to bind to the SQL statement
Optionaloptions: ReadOptions
Read guarantee for this call. A bare row has no meta, so use all to get a bookmark back
Promise that resolves to the first matching record, or null if not found
Retrieves the first record matching the query for a given primary key.
This function is useful for fetching a single record based on a primary key. It automatically routes the query to the correct shard based on the provided primary key, ensuring consistent data access.