All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rapid7.armor.schema.DiffTableName Maven / Gradle / Ivy

There is a newer version: 0.0.52
Show newest version
package com.rapid7.armor.schema;

import com.rapid7.armor.interval.Interval;

public final class DiffTableName {

  private DiffTableName() {}
  
  public static String generatePlusTableDiffName(String table, Interval interval, ColumnId columnId) {
    return table + "_" + interval.name().toLowerCase() + "_" + columnId.getName().toLowerCase() + "_plus";
  }
  
  public static String generateMinusTableDiffName(String table, Interval interval, ColumnId columnId) {
    return table + "_" + interval.name().toLowerCase() + "_" + columnId.getName().toLowerCase() + "_minus";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy