juji-io / datalevin

A simple, fast and versatile Datalog database
https://github.com/juji-io/datalevin
Eclipse Public License 1.0
1.07k stars 60 forks source link

Refactor xform to one refs in pull expressions #231

Closed dvingo closed 7 months ago

dvingo commented 7 months ago

My prior fix to add support for xform of cardinality-one ref types in this PR https://github.com/juji-io/datalevin/pull/226 doesn't work for reverse component refs, I noticed this after seeing the same issue being fixed in DataScript https://github.com/tonsky/datascript/commit/941c2b172d631b5aeec181837132376e818554f1 and issue https://github.com/tonsky/datascript/issues/455

This PR reverts my prior attempt at a fix and pulls in the DataScript fix.

huahaiy commented 7 months ago

Thank you!