SlideShare a Scribd company logo
Visualizing a Database Structure with SchemaSpy Albert Guo [email_address]
Agenda Introduction SchemaSpy Parameters SchemaSpy Support Database Type Database Document Generation Process – command line Database Document Generation Process – ant build script My output
Introduction SchemaSpy can be a valuable asset in maintaining and publishing these models.  Like Javadoc for Java source code, SchemaSpy provides an accurate, up-to-date view of the database structure, generated automatically from the actual database.  As an automated tool, SchemaSpy incurs very little cost to set up and virtually no cost to maintain—the diagrams are automatically updated as the database schema evolves.  This alone is a valuable time-saver for both development and maintenance teams. http://schemaspy.sourceforge.net/
SchemaSpy Parameters * denotes required parameter. Please go to here,  http://schemaspy.sourceforge.net/ , to get full parameter list.  Parameter Description -t databaseType Type of database (e.g. ora, db2, etc.). Use -dbhelp for a list of built-in types. Defaults to ora.  * -db dbName Name of database to connect to * -u user Valid database user id with read access -s schema Database schema (optional if the same as user or isn't supported by your database) -p password Password associated with that user. Defaults to no password. * -o outputDirectory Directory to write the generated HTML/graphs to
SchemaSpy Support Database Type Type Description db2 IBM DB2 with the 'App' Driver db2net IBM DB2 with the 'Net' Driver firebird Firebird hsqldb HSQLDB Server mssql Microsoft SQL Server mysql MySQL ora Oracle with OCI8 Driver orathin Oracle with Thin Driver pgsql PostgreSQL sybase Sybase Server with JDBC3 Driver sybase2 Sybase Server with JDBC2 Driver udbt4 DB2 UDB Type 4 Driver
Database Document Generation Process – command line Database document Command line Retrieve database info. generate
Database Document Generation Process – command line A MySQL example: java -jar schemaSpy.jar -t mysql -o library -host localhost -db library -u user -p password –notablecomments will create a series of files in the library directory that give the details of the schema in the database library. An MS SQL Server example: java -jar schemaSpy.jar -t mssql -db library -host localhost -port 1433 -u user -p password -o library does the same thing as the MySQL example, but specifies an mssql database type with MS SQL Server-specific database connection parameters.
Database Document Generation Process – ant build script Database document Retrieve database info. generate
Database Document Generation Process – ant build script Assign parameter values
Database Document Generation Process – ant build script Integrate command line into ant build script
Database Document Generation Process – ant build script Just type in ant to generate database schema document
My output
My output – cont.
My output – cont.

More Related Content

PPT
RESTful API In Node Js using Express
PDF
Stream Processing – Concepts and Frameworks
PDF
CORS and (in)security
DOCX
Introduccion mvc
PPTX
Bài giảng Lập trình mạng
PPTX
Recommender Systems
PPTX
Hack an ASP .NET website? Hard, but possible!
PPTX
Cryptosystéme de ElGamal
RESTful API In Node Js using Express
Stream Processing – Concepts and Frameworks
CORS and (in)security
Introduccion mvc
Bài giảng Lập trình mạng
Recommender Systems
Hack an ASP .NET website? Hard, but possible!
Cryptosystéme de ElGamal

What's hot (20)

PPTX
Dangling DNS records takeover at scale
PPTX
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
PDF
Thiết kế website bán điện thoại di động bằng PHP
PDF
BI : Analyse des Données avec Mondrian
PDF
Qcon SF 2013 - Machine Learning & Recommender Systems @ Netflix Scale
PDF
Chapitre1 introduction
ODP
Resource Oriented Architecture
PPT
Cours php
PDF
Les bases de l'HTML / CSS
PDF
Puppeteer can automate that! - Frontmania
PPT
Item Based Collaborative Filtering Recommendation Algorithms
PPTX
Recommendation system
PDF
HTTP Security Headers
PPT
Slide đồ án tốt nghiệp
PDF
BigData_TP3 : Spark
PDF
Bai tap va loi giai sql
 
PPTX
Database Connectivity in PHP
PDF
Support Web Services SOAP et RESTful Mr YOUSSFI
PPT
Servlet life cycle
Dangling DNS records takeover at scale
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
Thiết kế website bán điện thoại di động bằng PHP
BI : Analyse des Données avec Mondrian
Qcon SF 2013 - Machine Learning & Recommender Systems @ Netflix Scale
Chapitre1 introduction
Resource Oriented Architecture
Cours php
Les bases de l'HTML / CSS
Puppeteer can automate that! - Frontmania
Item Based Collaborative Filtering Recommendation Algorithms
Recommendation system
HTTP Security Headers
Slide đồ án tốt nghiệp
BigData_TP3 : Spark
Bai tap va loi giai sql
 
Database Connectivity in PHP
Support Web Services SOAP et RESTful Mr YOUSSFI
Servlet life cycle
Ad

Similar to Visualizing a Database Structure with SchemaSpy (20)

PPT
PPT
PDF
Spark Saturday: Spark SQL & DataFrame Workshop with Apache Spark 2.3
PPT
JDBC.ppt
PPTX
Data Analytics Meetup: Introduction to Azure Data Lake Storage
 
PPTX
Building highly scalable data pipelines with Apache Spark
PPTX
Hadoop_File_Formats_and_Data_Ingestion.pptx
PPTX
Database Systems and SQL
PPT
Rails
 
PDF
Serverless Data Platform
PDF
MS-SQL SERVER ARCHITECTURE
PDF
Using Document Databases with TYPO3 Flow
PPTX
Schema webinar
PDF
Mysql tutorial
PDF
DB Turbo v6.0 2023.pdf
PPTX
NOSQL - not only sql
PPT
Java database connectivity
PPT
Java database connectivity
PPTX
Data Handning with Sqlite for Android
Spark Saturday: Spark SQL & DataFrame Workshop with Apache Spark 2.3
JDBC.ppt
Data Analytics Meetup: Introduction to Azure Data Lake Storage
 
Building highly scalable data pipelines with Apache Spark
Hadoop_File_Formats_and_Data_Ingestion.pptx
Database Systems and SQL
Rails
 
Serverless Data Platform
MS-SQL SERVER ARCHITECTURE
Using Document Databases with TYPO3 Flow
Schema webinar
Mysql tutorial
DB Turbo v6.0 2023.pdf
NOSQL - not only sql
Java database connectivity
Java database connectivity
Data Handning with Sqlite for Android
Ad

More from Guo Albert (20)

PPTX
AWS IAM (Identity and Access Management) Policy Simulator
PPTX
TOEIC 準備心得
PDF
DBM專案環境建置
PDF
JPA Optimistic Locking With @Version
PDF
OCEJPA Study Notes
PPTX
OCEJPA(1Z0-898) Preparation Tips
PPTX
JPA lifecycle events practice
PPTX
XDate - a modern java-script date library
PDF
How to avoid check style errors
PDF
NIG系統報表開發指南
PDF
Ease Your Effort of Putting Data into History Table
PDF
NIG 系統開發指引
PDF
NIG系統開發文件閱讀步驟
PDF
Form Bean Creation Process for NIG System
PDF
A Short Intorduction to JasperReports
PPTX
Apply Template Method Pattern in Report Implementation
PPTX
Utilize Commons BeansUtils to do copy object
PPTX
Apply my eclipse to do entity class generation
PPTX
Nig project setup quickly tutorial
PPTX
Spring JDBCTemplate
AWS IAM (Identity and Access Management) Policy Simulator
TOEIC 準備心得
DBM專案環境建置
JPA Optimistic Locking With @Version
OCEJPA Study Notes
OCEJPA(1Z0-898) Preparation Tips
JPA lifecycle events practice
XDate - a modern java-script date library
How to avoid check style errors
NIG系統報表開發指南
Ease Your Effort of Putting Data into History Table
NIG 系統開發指引
NIG系統開發文件閱讀步驟
Form Bean Creation Process for NIG System
A Short Intorduction to JasperReports
Apply Template Method Pattern in Report Implementation
Utilize Commons BeansUtils to do copy object
Apply my eclipse to do entity class generation
Nig project setup quickly tutorial
Spring JDBCTemplate

Recently uploaded (20)

PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PDF
Advanced IT Governance
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
Electronic commerce courselecture one. Pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
Advanced IT Governance
Per capita expenditure prediction using model stacking based on satellite ima...
Sensors and Actuators in IoT Systems using pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Monthly Chronicles - July 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
Electronic commerce courselecture one. Pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Understanding_Digital_Forensics_Presentation.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Chapter 3 Spatial Domain Image Processing.pdf
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
GamePlan Trading System Review: Professional Trader's Honest Take

Visualizing a Database Structure with SchemaSpy

  • 1. Visualizing a Database Structure with SchemaSpy Albert Guo [email_address]
  • 2. Agenda Introduction SchemaSpy Parameters SchemaSpy Support Database Type Database Document Generation Process – command line Database Document Generation Process – ant build script My output
  • 3. Introduction SchemaSpy can be a valuable asset in maintaining and publishing these models. Like Javadoc for Java source code, SchemaSpy provides an accurate, up-to-date view of the database structure, generated automatically from the actual database. As an automated tool, SchemaSpy incurs very little cost to set up and virtually no cost to maintain—the diagrams are automatically updated as the database schema evolves. This alone is a valuable time-saver for both development and maintenance teams. http://schemaspy.sourceforge.net/
  • 4. SchemaSpy Parameters * denotes required parameter. Please go to here, http://schemaspy.sourceforge.net/ , to get full parameter list. Parameter Description -t databaseType Type of database (e.g. ora, db2, etc.). Use -dbhelp for a list of built-in types. Defaults to ora. * -db dbName Name of database to connect to * -u user Valid database user id with read access -s schema Database schema (optional if the same as user or isn't supported by your database) -p password Password associated with that user. Defaults to no password. * -o outputDirectory Directory to write the generated HTML/graphs to
  • 5. SchemaSpy Support Database Type Type Description db2 IBM DB2 with the 'App' Driver db2net IBM DB2 with the 'Net' Driver firebird Firebird hsqldb HSQLDB Server mssql Microsoft SQL Server mysql MySQL ora Oracle with OCI8 Driver orathin Oracle with Thin Driver pgsql PostgreSQL sybase Sybase Server with JDBC3 Driver sybase2 Sybase Server with JDBC2 Driver udbt4 DB2 UDB Type 4 Driver
  • 6. Database Document Generation Process – command line Database document Command line Retrieve database info. generate
  • 7. Database Document Generation Process – command line A MySQL example: java -jar schemaSpy.jar -t mysql -o library -host localhost -db library -u user -p password –notablecomments will create a series of files in the library directory that give the details of the schema in the database library. An MS SQL Server example: java -jar schemaSpy.jar -t mssql -db library -host localhost -port 1433 -u user -p password -o library does the same thing as the MySQL example, but specifies an mssql database type with MS SQL Server-specific database connection parameters.
  • 8. Database Document Generation Process – ant build script Database document Retrieve database info. generate
  • 9. Database Document Generation Process – ant build script Assign parameter values
  • 10. Database Document Generation Process – ant build script Integrate command line into ant build script
  • 11. Database Document Generation Process – ant build script Just type in ant to generate database schema document
  • 13. My output – cont.
  • 14. My output – cont.