Executes an insert directly on a named shard and returns the generated primary key.
Use this helper when you already know the shard you want to target.
The helper still captures the generated id and stores the mapping so routed
reads can find the new row later.
Type Parameters
T = Record<string,unknown>
Type of returned rows when the insert uses RETURNING
Executes an insert directly on a named shard and returns the generated primary key.
Use this helper when you already know the shard you want to target. The helper still captures the generated id and stores the mapping so routed reads can find the new row later.