Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs for gradle dbeaver are incomplete #339

Closed
nedtwigg opened this issue Jan 21, 2019 · 2 comments
Closed

Docs for gradle dbeaver are incomplete #339

nedtwigg opened this issue Jan 21, 2019 · 2 comments

Comments

@nedtwigg
Copy link
Member

According to our docs:

spotless {
  sql {
    // default value for target files
    target '**/*.sql'
    // configFile is optional, arguments available here:
    // https://github.com/diffplug/spotless/blob/master/lib/src/main/java/com/diffplug/spotless/sql/DBeaverSQLFormatterStep.java
    dbeaver().configFile('dbeaver.props')
  }
}

However, that link takes you here, which doesn't say what any of the options are.

@baptistemesta, you know what options there are, and/or where people can find them?

@baptistemesta
Copy link
Contributor

My bad, I might have refactored it.
It's here: https://github.com/diffplug/spotless/blob/master/lib/src/main/java/com/diffplug/spotless/sql/dbeaver/DBeaverSQLFormatterConfiguration.java

	/**
	 * UPPER, LOWER or ORIGINAL
	 */
	private static final String SQL_FORMATTER_KEYWORD_CASE = "sql.formatter.keyword.case";

	/**
	 * ';' by default
	 */
	private static final String SQL_FORMATTER_STATEMENT_DELIMITER = "sql.formatter.statement.delimiter";
	/**
	 * space or tag
	 */
	private static final String SQL_FORMATTER_INDENT_TYPE = "sql.formatter.indent.type";
	/**
	 * 4 by default
	 */
	private static final String SQL_FORMATTER_INDENT_SIZE = "sql.formatter.indent.size";

baptistemesta added a commit to baptistemesta/spotless that referenced this issue Jan 21, 2019
change link and add a sample configuration file

Closes diffplug#339
@baptistemesta
Copy link
Contributor

see pull request #340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants