Skip to content

dengdaiyemanren/sqlgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

参考项目

解析SQL: https://github.com/alris/antlr4-oracle

图形化SQL:http://www.graphviz.org/pdf/dotguide.pdf

Python API图形化:https://graphviz.readthedocs.io/en/stable/examples.html#unix-py

graphviz 工具:http://www.graphviz.org/

antlr4介绍: https://www.cntofu.com/book/115/introduction.md

同一方法中表调用关系图形化(已实现)

图形化PKG包的调用关系

CREATE OR REPLACE PACKAGE BODY scott.pkg1
is
   PROCEDURE proc1
   (
      param1 in number,
	  param2 in varchar2,
	  result out number
   ) is
   begin
	 insert into table1(a1,b1,c1)
	 select h.a1,t.b1,h.c1 from 
	 (select s.a1,t.c1 from tables s , tablet t where s.a1 = t.a1) h,
	 (select x.b1 from tablex x) t 
	 where  t.b1 = h.b1;
	 
   
   end proc1;
   
END;
/

java学习导图

同一包中的表调用关系图形化

PROCEDURE proc2
   (
      param1 in number,
	  param2 in varchar2,
	  result out number
   ) is
   begin
	 insert into table2(a1,b1,c1)
	 select h.a1,t.b1,h.c1 from 
	 (select s.a1,t.c1 from table1 s , tablet t where s.a1 = t.a1) h,
	 (select x.b1 from tablex x) t 
	 where  t.b1 = h.b1;
	 
   
   end proc1;

java学习导图

跨包的表调用关系图形化

About

graph the sql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages