dataface-electron icon indicating copy to clipboard operation
dataface-electron copied to clipboard

Support compound primary keys

Open timwis opened this issue 9 years ago • 3 comments

Per @jmealo, a table with a compound primary key doesn't seem to render properly

timwis avatar Jun 27 '16 03:06 timwis

getPrimaryKey actually returns every key as an array in rows -- just support array responses

timwis avatar Jun 28 '16 00:06 timwis

Also, @jmealo, the current build does seem to let you browse and update tables with compound primary keys. Could you paste/send the schema of the table you were having trouble with?

timwis avatar Jun 28 '16 00:06 timwis

Which branch? I cloned the default last night. It didn't work with any of my tables. I had to make one from scratch. I do believe all the tables had compound keys though.

I'm not sure how you use the primary key but I'm imagining you'd need special handling if you're trying to use that as a unique identifier in a lookup table or the DOM.

I'll send you the schemas OOB. On Jun 27, 2016 8:33 PM, "Tim Wisniewski" [email protected] wrote:

Also, @jmealo https://github.com/jmealo, the current build does seem to let you browse and update tables with compound primary keys. Could you paste/send the schema of the table you were having trouble with?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timwis/dataface/issues/34#issuecomment-228916183, or mute the thread https://github.com/notifications/unsubscribe/ABBGKAgd9TFU7d15ZBfTtZiDuxxTy55Aks5qQGvXgaJpZM4I-uol .

jmealo avatar Jun 28 '16 00:06 jmealo