vertical-blank/sql-formatter

Formatter inserts space in between "//" (this is vertica's integer division operator)

rcauble opened this issue · 1 comments

Hi, I'm trying to use sqlFormatter with vertica which uses "//" for integer division. It doesn't look like there's an exact dialect of of the box for vertica. Wondering if there's a way to disable adding the extra space?

I figured it out

var base = SqlFormatter.of(com.github.vertical_blank.sqlformatter.languages.Dialect.MySql);
base.extend(cfg -> cfg.plusOperators("//")).format(...);