Closed Shankar-khati closed 1 year ago
Thanks for putting this together and sorry for the delay. I found a limitation with this approach had to spend some timedoing more analysis.
I addressed this in this commit ec966b91477957dc98f394db951fba0fbfcbc491
on the main branch
Thanks @toluaina. it's fixed in main
branch.
Fixed:
142
264
321
Insert is not working with through tables:
example schema
PROBLEM:
in
_get_foreign_keys
function for though tables we are returning data like { 'pulblic.authors': ['id'], 'public.book': ['isbn'], 'public.book_authors': ['author_id', 'book_isbn'] // this is the node we get }Filers were not generating correctly since in above output I can't decide like public.book_authors.author_id should map to pulblic.authors.id and public.book_authors.book_isbn should map to public.book.isbn.
FIX
Use get_foreign_keys instead of _get_foreign_keys and get the foreign keys one by one,
book_authors
andauthors
table and update filters.book_authors
andbook
table and update filters.That way we are able to perform all crud operation in
book_authors
,book
andauthors
tableTEST CASES- PASSED
@toluaina PTAL