19.10.2015 Views

workbench-en.a4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 21. MySQL Workb<strong>en</strong>ch Schema Validation Plugins<br />

(Commercial Version)<br />

MySQL Workb<strong>en</strong>ch provides validation modules so that you can test your models before implem<strong>en</strong>ting them.<br />

The validation plugins are accessed from the MODEL m<strong>en</strong>u option. One plugin performs g<strong>en</strong>eral validation for any Relational Database<br />

Managem<strong>en</strong>t System (RDMS) and the other is MySQL-specific. B<strong>en</strong>eath these m<strong>en</strong>u items are a number of specific validation<br />

tests. Running any one of these tests op<strong>en</strong>s an output window docked at the bottom of the application. Warning messages are displayed<br />

on the left side of this window and the tests performed are displayed on the right.<br />

The tasks performed by the validation modules are outlined in what follows.<br />

21.1. G<strong>en</strong>eral Validation<br />

The types of validation and examples that violate validation are listed in what follows:<br />

• Empty Cont<strong>en</strong>t validation<br />

• A table with no columns<br />

• A routine or view with no SQL code defined<br />

• A routine group containing no routines<br />

• A table, view, or routine not refer<strong>en</strong>ced by at least one role<br />

• A user with no privileges<br />

• Objects such as tables that do not appear on at least one EER Diagram<br />

• Table Effici<strong>en</strong>cy Validation<br />

• A table with no primary key<br />

• A primary key that does not use an integer-based data type<br />

• A foreign key that refers to a column with a differ<strong>en</strong>t data type<br />

• Duplicated Id<strong>en</strong>tifiers Validation<br />

• Duplicate object names<br />

• Duplicate role or user names<br />

• Duplicate index or routine names<br />

• Consist<strong>en</strong>cy Validation<br />

• Use of the same column with columns of differing data types<br />

• Logic Validation<br />

• A foreign key that refers to a column other than the primary key in the source table<br />

• Any object that is object is either read- or write-only by role definition<br />

• Placeholder objects left over from reverse <strong>en</strong>gineering<br />

21.2. MySQL-Specific Validation<br />

The types of MySQL-specific validation and examples that violate validation are listed in the following.<br />

• Integrity Violation<br />

• An object name longer than the maximum allowed<br />

73

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!