Class PostgreConstraintNames

java.lang.Object
ch.tocco.nice2.dbrefactoring.spi.liquibase.JdbcHelper
ch.tocco.nice2.dbrefactoring.spi.PostgreConstraintNames

public class PostgreConstraintNames extends JdbcHelper
  • Constructor Details

    • PostgreConstraintNames

      public PostgreConstraintNames()
  • Method Details

    • createWithExistingConstraints

      public static PostgreConstraintNames createWithExistingConstraints(DataSource dataSource)
      only use this static method factory if getConstraintName is called to generate new unique names. If you want the name of an existing constraint or call the method twice for the same constraint you get the wrong name!
    • getConstraintName

      public String getConstraintName(String tableName, String columnNames, String suffix)