mbarre / schemacrawler-additional-lints

Some additionnal lints for Schemacrawler
Other
12 stars 7 forks source link

UUID > Detect uuid content to ask people use dedicated type #267

Open adriens opened 3 years ago

adriens commented 3 years ago

Description

In some databases, we have found uuid stored as text in text based column, which is af not optimal. It would be very useful to get a new lint that :

Testimonial

This new lint idea has been emiited today by Emmanuel Confrere

Implemntation guidelines

public boolean isUUID(String string) {
    try {
        UUID.fromString(string);
        return true;
    } catch (Exception ex) {
        return false;
    }
}