You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constPrimaryKeySymbol=Symbol.for("effect-app/PrimaryKey")exportconstPrimaryKey=(key: string)=>flow(S.annotate(PrimaryKeySymbol,key))
isin: PrimaryKey("isin")(ISIN)query(where("isin",someIsin))// this is already the result of not using `fromKey`
where the driver maps isin to id and back, if the underlying storage mechanism demands it, like CosmosDB.
aka probably don't convert for in memory/json, or in the future in any SQL driver - set the PrimaryKey in SQL.
The text was updated successfully, but these errors were encountered:
patroza
changed the title
Support idKey conversion in the storage driver, instead of requiring X.fromKey("id"
Support idKey conversion in the storage driver, instead of requiring X.fromKey("id")
Oct 26, 2024
Current
Desired
where the driver maps isin to id and back, if the underlying storage mechanism demands it, like CosmosDB.
aka probably don't convert for in memory/json, or in the future in any SQL driver - set the PrimaryKey in SQL.
The text was updated successfully, but these errors were encountered: