EscapeIdentifiers enables backtick (`) escaping for non-standard and reserved identifiers, function names, and field names when unparsing.
(escape bool)
| 654 | // EscapeIdentifiers enables backtick (`) escaping for non-standard and reserved identifiers, |
| 655 | // function names, and field names when unparsing. |
| 656 | func EscapeIdentifiers(escape bool) UnparserOption { |
| 657 | return func(opt *unparserOption) (*unparserOption, error) { |
| 658 | opt.escapeIdentifiers = escape |
| 659 | return opt, nil |
| 660 | } |
| 661 | } |
| 662 | |
| 663 | // WrapOnColumn wraps the output expression when its string length exceeds a specified limit |
| 664 | // for operators set by WrapOnOperators function or by default, "&&" and "||" will be wrapped. |
no outgoing calls