├── d3example ├── mynodecode.css ├── node-test.html ├── mynodecode.js └── chord-test.html ├── README.TXT ├── license.txt └── SQLDevUDExamples.xml /d3example/mynodecode.css: -------------------------------------------------------------------------------- 1 | .link { 2 | fill: none; 3 | stroke: black; 4 | stroke-width: 1.0px; 5 | } 6 | 7 | .node rect { 8 | fill: white; 9 | stroke: #000000; 10 | stroke-width: 1.0px; 11 | } 12 | 13 | text { 14 | font: 10px sans-serif; 15 | pointer-events: none; 16 | } 17 | -------------------------------------------------------------------------------- /README.TXT: -------------------------------------------------------------------------------- 1 | SQL Developer User Defined Report Pack 2 | 3 | Purpose: 4 | To collect and package a collection of useful 5 | SQL Developer User Defined Reports. 6 | 7 | Project home: 8 | https://github.com/dmann99/SQLDevUDRepPack 9 | 10 | 11 | 12 | 13 | 14 | Version History 15 | 16 | Date User Version Description 17 | ----------- -------- ------- --------------------------------------------- 18 | 11-JUL-2012 dmann 0.1.1 Initial check in. 19 | 01-NOV-2014 dmann 0.4 Lots of updates. 20 | -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2014, David Mann 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | o Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | o Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 18 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 21 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 22 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | -------------------------------------------------------------------------------- /d3example/node-test.html: -------------------------------------------------------------------------------- 1 | DBMS_OUTPUT.PUT_LINE(''); 2 | DBMS_OUTPUT.PUT_LINE('
'); 3 | DBMS_OUTPUT.PUT_LINE(''); 4 | DBMS_OUTPUT.PUT_LINE(''); 5 | DBMS_OUTPUT.PUT_LINE(''); 6 | DBMS_OUTPUT.PUT_LINE(''); 7 | DBMS_OUTPUT.PUT_LINE(''); 25 | DBMS_OUTPUT.PUT_LINE(''); 26 | DBMS_OUTPUT.PUT_LINE(''); 27 | DBMS_OUTPUT.PUT_LINE(''); 28 | DBMS_OUTPUT.PUT_LINE(''); 29 | DBMS_OUTPUT.PUT_LINE(''); 30 | DBMS_OUTPUT.PUT_LINE(''); 31 | DBMS_OUTPUT.PUT_LINE(''); 32 | DBMS_OUTPUT.PUT_LINE(''); 33 | DBMS_OUTPUT.PUT_LINE(''); -------------------------------------------------------------------------------- /d3example/mynodecode.js: -------------------------------------------------------------------------------- 1 | // David Mann 2 | // ba6.us 3 | 4 | // An example of a way to integrate SQL Developer 4 with d3.js 5 | // and other JavaScript libraries. 6 | 7 | var nodes = {}; 8 | 9 | // Compute the distinct nodes from the links. 10 | links.forEach(function(link) { 11 | link.source = nodes[link.source] || (nodes[link.source] = {name: link.source}); 12 | link.target = nodes[link.target] || (nodes[link.target] = {name: link.target}); 13 | }); 14 | 15 | var width = 800, 16 | height = 600; 17 | 18 | var force = d3.layout.force() 19 | .nodes(d3.values(nodes)) 20 | .links(links) 21 | .size([width, height]) 22 | .linkDistance(50) 23 | .charge(-800) 24 | .on("tick", tick) 25 | .start(); 26 | 27 | var svg = d3.select("body") 28 | .append("svg") 29 | .attr("width", width) 30 | .attr("height", height); 31 | 32 | var link = svg.selectAll(".link") 33 | .data(force.links()) 34 | .enter().append("line") 35 | .attr("class", "link"); 36 | 37 | var node = svg.selectAll(".node") 38 | .data(force.nodes()) 39 | .enter().append("g") 40 | .attr("class", "node") 41 | // .on("mouseover", mouseover) 42 | // .on("mouseout", mouseout) 43 | .call(force.drag); 44 | 45 | node.append("rect") 46 | .attr("x",-40) 47 | .attr("y",-10) 48 | .attr("width", 80) 49 | .attr("height",20); 50 | 51 | node.append("text") 52 | .attr("x", -30) 53 | .attr("dy", "4px") 54 | .text(function(d) { return d.name; }); 55 | 56 | function tick() { 57 | link 58 | .attr("x1", function(d) { return d.source.x; }) 59 | .attr("y1", function(d) { return d.source.y; }) 60 | .attr("x2", function(d) { return d.target.x; }) 61 | .attr("y2", function(d) { return d.target.y; }); 62 | 63 | node 64 | .attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; }); 65 | } 66 | 67 | function mouseover() { 68 | d3.select(this).select("circle").transition() 69 | .duration(750) 70 | .attr("r", 20); 71 | } 72 | 73 | function mouseout() { 74 | d3.select(this).select("circle").transition() 75 | .duration(750) 76 | .attr("r", 8); 77 | } 78 | 79 | // References: 80 | // Labeled Force Layout - http://bl.ocks.org/mbostock/950642 81 | -------------------------------------------------------------------------------- /d3example/chord-test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /SQLDevUDExamples.xml: -------------------------------------------------------------------------------- 1 | 2 |Number String = "'||myNum||'"
'); 718 | 719 | 720 | END;]]>This is red text
'); 782 | 783 | DBMS_OUTPUT.PUT_LINE('This is blue Verdana family text at 18pt
'); 785 | 786 | DBMS_OUTPUT.PUT_LINE('| Row 1 Col A | Row 1 Col B |
| Row 2 Col A | Row 2 Col B |
| Row 3 Col A | Row 3 Col B |
');
797 |
798 | DBMS_OUTPUT.PUT_LINE('
');
801 |
802 | DBMS_OUTPUT.PUT_LINE('This is preformatted text'); 818 | 819 | 820 | 821 | DBMS_OUTPUT.PUT_LINE('
This is red text with CSS styling