| Package | Description |
|---|---|
| gudusoft.gsqlparser.demos.prettyscore | |
| gudusoft.gsqlparser.pp.score |
PrettyScore: readability scoring for formatted SQL.
|
| Constructor and Description |
|---|
CorpusRunner(EDbVendor vendor,
ScoreProfile profile,
boolean keepText) |
CorpusRunner(EDbVendor vendor,
ScoreProfile profile,
boolean keepText,
boolean astEnabled) |
| Modifier and Type | Method and Description |
|---|---|
static ScoreProfile |
ScoreProfile.builtin(String name)
Load a built-in profile by name (
isf-default, river, compact). |
static ScoreProfile |
ScoreProfile.defaults()
The default profile (
isf-default). |
static ScoreProfile |
ScoreProfile.fromJson(String json)
Parse a profile from JSON text, honouring
"extends". |
static ScoreProfile |
ScoreProfile.load(String nameOrPath)
Resolve a profile from a built-in name or a file path.
|
| Modifier and Type | Method and Description |
|---|---|
ScoreReport |
PrettyScore.score(String sql,
EDbVendor vendor,
ScoreProfile profile,
String original,
Map<String,Object> options) |