Closed harry-prins-otm closed 1 year ago
Appreciate your writing this up! I'll try to respond soon
I believe this is handled now, could you give it a try and let me know? I didn't specifically test for it, real cowboy coding over here, but if there's still a problem I'll do it the right way :P
Note that I changed the top-level structure of the xray map, it now includes a :tables
key and a :table-order
key. The :tables
key contains what was previously the entire xray
map
This works, fantastic! Thank you very much! 🎉
Hi, I'm messing around with this library a bit, looks like it can be very useful!
I notice
table-order
(well actually,dep/depend
) freaks out when it encounters a circular foreign key. Examples:As a quick test I altered
table-order
to include a filter as follows:This prevents the error when calling the
xray
function, but I can't say for sure it still does what it's supposed to be doing correctly, or that it doesn't cause some other issue. In my case, I run into the following error when trying to callplumatic-schema
on the result:I'm not sure this is related, though.
Oh, one minor nitpick: the name
xray
is used as an input variable in multiple functions, butxray
is a function name as well. It may make things a bit easier on the eye if a different name is used for the inputs, or maybe the function can be named->xray
, e.g.