fuzzycsv.rdbms.DbExportFlags.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fuzzy-csv Show documentation
Show all versions of fuzzy-csv Show documentation
A groovy/java tabular Data (from CSV,SQL,JSON) processing library that supports fuzzy column matching,tranformations/merging/querying etc
package fuzzycsv.rdbms
import groovy.transform.CompileStatic
@CompileStatic
enum DbExportFlags {
CREATE,
CREATE_IF_NOT_EXISTS,
INSERT,
RESTRUCTURE,
USE_DECIMAL_FOR_INTS
static Set of(DbExportFlags flag, DbExportFlags... others) {
def flags = EnumSet.of(flag)
if (others) flags.addAll(others)
return flags
}
static Set withRestructure() {
return of(CREATE_IF_NOT_EXISTS, INSERT, RESTRUCTURE)
}
}