diff --git a/dist/releaseNotes.html b/dist/releaseNotes.html index 0e6e236..81d63da 100644 --- a/dist/releaseNotes.html +++ b/dist/releaseNotes.html @@ -111,6 +111,15 @@
Table contained " + NumberFormat.getIntegerInstance().format(table.getNumRows()) + " rows at "); - else - out.write("
Analyzed at "); - out.writeln(db.getConnectTime()); + out.write("
"); + if (displayNumRows && !table.isView()) { + out.write("Table contained " + NumberFormat.getIntegerInstance().format(table.getNumRows()) + " rows at "); + } else { + out.write("Analyzed at "); + } + out.write(db.getConnectTime()); + out.writeln("
"); } private void writeCheckConstraints(Table table, LineWriter out) throws IOException { @@ -400,135 +399,33 @@ private void writeView(Table table, Database db, LineWriter out) throws IOExcept for (View v : db.getViews()) tables.put(v.getName(), v); - out.writeln(""); - - int len = sql.length(); - for (int i = 0; i < len; i++) { - char ch = sql.charAt(i); - if (Character.isWhitespace(ch)) - out.write(ch); - else - out.write(HtmlEncoder.encodeToken(ch)); - } - } - else - { - out.write(" | ");
- @SuppressWarnings("hiding")
- Set ");
+ out.writeln(" View Definition:");
+ out.writeln(formatted);
out.writeln(" ");
- }
- }
-
- /**
- * getSqlKeywords
- *
- * @return Object
- */
- private Set");
+ out.writeln(" Possibly Referenced Tables/Views:");
+ out.writeln(" ");
}
- }
- return keywords;
+ }
}
/**
diff --git a/src/schemaSpy.css b/src/schemaSpy.css
index 40f486f..dfb39a7 100755
--- a/src/schemaSpy.css
+++ b/src/schemaSpy.css
@@ -181,11 +181,27 @@ a:visited {
}
.viewDefinition {
+ font-size: 90%;
+ background-color: #ffffff;
+ border-style: solid;
+ border-width: 1px;
+ float: left;
+ padding: 4px;
font-family: "Courier New", Courier, monospace
}
+.viewReferences {
+ font-size: 90%;
+ padding: 4px;
+}
+
+/* wrap around divs that float so they "take up space" */
+div.spacer {
+ clear: both;
+}
+
.preFormatted {
- white-space:pre;
+ white-space: pre;
}
/* Tabs from http://www.alistapart.com/articles/slidingdoors/ */
");
+ out.write(" ");
+ for (Table t : references) {
+ out.write("");
+ out.write(t.getName());
+ out.write(" ");
}
- } catch (Exception exc) {
- // don't totally fail just because we can't extract these details...
- System.err.println(exc);
+
+ out.writeln(" ");
+ out.writeln(" |