SqlHighlighter
classin packageklyn.code.sql
public class SqlHighlighter extends Object implements SyntaxHighlighter
└ SqlHighlighter
All Implemented Interfaces: SyntaxHighlighter

Syntax highlighter for SQL backed by klyn.code.sql.SqlTokenizer.

Example
import klyn.code.sql

spans = SqlHighlighter().highlight("SELECT id, created_at::TIMESTAMPTZ FROM users WHERE active = TRUE;")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public highlight
highlight(line as String) as List<StyledSpan>
Highlights one SQL source line.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml