Skip to content

Commit

Permalink
Add note on no data being shared
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed Jul 23, 2023
1 parent 3b26011 commit 0a2f59f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ protected SchemaFunctionReturn(final CatalogDescription catalogDescription) {

@Override
public String get() {
return catalogDescription.toString();
return String.format("Description of database schema in JSON:%n%s", catalogDescription);
}
}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Description of database schema in JSON:
{"schemas":[{"name":"PUBLIC.BOOKS","tables":[{"name":"AUTHORS","columns":[{"name":"ID","type":"INTEGER"},{"name":"FIRSTNAME","type":"VARCHAR"},{"name":"LASTNAME","type":"VARCHAR"},{"name":"ADDRESS1","type":"VARCHAR"},{"name":"ADDRESS2","type":"VARCHAR"},{"name":"CITY","type":"VARCHAR"},{"name":"STATE","type":"CHARACTER"},{"name":"POSTALCODE","type":"VARCHAR"},{"name":"COUNTRY","type":"VARCHAR"}],"remarks":"Contact details for book authors"},{"name":"BOOKS","columns":[{"name":"ID","remarks":"Unique (internal) id for book","type":"INTEGER"},{"name":"TITLE","remarks":"Book title","type":"VARCHAR"},{"name":"DESCRIPTION","remarks":"Book description\n(Usually the blurb from the book jacket or promotional materials)","type":"VARCHAR"},{"name":"PUBLISHERID","remarks":"Foreign key to the book publisher","type":"INTEGER"},{"name":"PUBLICATIONDATE","remarks":"Book publication date","type":"DATE"},{"name":"PRICE","remarks":"Current price for the book","type":"DOUBLE"},{"name":"PREVIOUSEDITIONID","type":"INTEGER"}],"remarks":"Details for published books"},{"name":"Celebrities","columns":[{"name":"Id","type":"INTEGER"},{"name":"NAME","type":"VARCHAR"}]},{"name":"COUPONS","columns":[{"name":"ID","type":"INTEGER"},{"name":"DATA","type":"CLOB"},{"name":"COUPONS","type":"INTEGER ARRAY"},{"name":"BOOKS","type":"VARCHAR(20) ARRAY[10]"}]},{"name":"CUSTOMERDATA","columns":[{"name":"ID","type":"INTEGER"},{"name":"DATA","type":"VALID_STRING"}]},{"name":"CUSTOMERS","columns":[{"name":"ID","type":"INTEGER"},{"name":"FIRSTNAME","type":"NAME_TYPE"},{"name":"LASTNAME","type":"NAME_TYPE"},{"name":"AGE","type":"AGE_TYPE"}]},{"name":"PUBLISHERS","columns":[{"name":"ID","remarks":"Unique (internal) id for book publisher","type":"INTEGER"},{"name":"PUBLISHER","remarks":"Name of book publisher","type":"VARCHAR"}],"remarks":"List of book publishers"},{"name":"BOOKAUTHORS","columns":[{"name":"BOOKID","type":"INTEGER"},{"name":"AUTHORID","type":"INTEGER"},{"name":"SOMEDATA","type":"VARCHAR"}],"remarks":"Relationship between books and their authors, \nalong with the latest updated information"},{"name":"Celebrity Updates","columns":[{"name":"Celebrity Id","type":"INTEGER"},{"name":"UPDATE","type":"VARCHAR"}]},{"name":"ΒΙΒΛΊΑ","columns":[{"name":"ΜΟΝΑΔΙΚΌΣ","type":"SMALLINT"},{"name":"ΤΊΤΛΟΣ","type":"VARCHAR"},{"name":"ΠΕΡΙΓΡΑΦΉ","type":"VARCHAR"},{"name":"ΕΚΔΌΤΗΣ","type":"SMALLINT"}]},{"name":"AUTHORSLIST","columns":[{"name":"ID","type":"INTEGER"},{"name":"FIRSTNAME","type":"VARCHAR"},{"name":"LASTNAME","type":"VARCHAR"}]}]},{"name":"PUBLIC.INFORMATION_SCHEMA"},{"name":"PUBLIC.PUBLIC"},{"name":"PUBLIC.\"PUBLISHER SALES\"","tables":[{"name":"REGIONS","columns":[{"name":"CITY","type":"VARCHAR"},{"name":"STATE","type":"VARCHAR"},{"name":"POSTALCODE","type":"VARCHAR"},{"name":"COUNTRY","type":"VARCHAR"}]},{"name":"SALESDATA","columns":[{"name":"SALESDATAID","type":"INTEGER"},{"name":"YEARLYAMOUNT","type":"DOUBLE"}]},{"name":"SALES","columns":[{"name":"POSTALCODE","type":"VARCHAR"},{"name":"COUNTRY","type":"VARCHAR"},{"name":"BOOKID","type":"INTEGER"},{"name":"COUPON_ID","type":"INTEGER"},{"name":"PERIODENDDATE","type":"DATE"},{"name":"TOTALAMOUNT","type":"DOUBLE"},{"name":"SALESDATAID","type":"INTEGER"}]}]},{"name":"PUBLIC.SYSTEM_LOBS"}]}

0 comments on commit 0a2f59f

Please sign in to comment.