devashishdxt / deli

Apache License 2.0
8 stars 3 forks source link

Composite primary keys #3

Open LucaCappelletti94 opened 1 month ago

LucaCappelletti94 commented 1 month ago

Hi - what would be necessary to support composite primary keys?

devashishdxt commented 1 month ago

Right now, deli takes field attributes to specify primary keys. So, it is not possible to specify composite primary keys. We can add container attribute to specify composite primary keys.

LucaCappelletti94 commented 2 weeks ago

I am working on the derive now and I have a question: what is the expected key type for composite keys? Tuples? Vectors? I am trying to understand how the internals of idb work but I though better to ask.