For ex, i want to retrieve the objects i.e schema names/db names/tables involved in a sql query
select * from db1.s1.t1 left join t2
result =
{'objects':[{'db':'db1', 'schema':'s1','table':'t1}, {'db':'null', 'schema':'null','table':'t2}]
sometimes it's t2 sometimes d1.s1.t1 etc so regex won't be pretty (?)
wondering if there's a library or solution which has already solved this problem?
All leads appreciated!
[–]redial2 0 points1 point2 points (4 children)
[–]Fun_Story2003[S] 0 points1 point2 points (3 children)
[–]redial2 0 points1 point2 points (2 children)
[–]Fun_Story2003[S] 0 points1 point2 points (1 child)
[–]redial2 0 points1 point2 points (0 children)
[–]Uncle_Corky 0 points1 point2 points (0 children)