Executes an insert on an automatically selected shard and returns the generated primary key.
This is the default helper for generated-key tables. CollegeDB picks a shard
using the configured allocation strategy, then stores the generated primary
key -> shard mapping so routed reads can find the row later.
Type Parameters
T = Record<string,unknown>
Type of returned rows when the insert uses RETURNING
Executes an insert on an automatically selected shard and returns the generated primary key.
This is the default helper for generated-key tables. CollegeDB picks a shard using the configured allocation strategy, then stores the generated primary key -> shard mapping so routed reads can find the row later.