summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2013-07-09 10:10:33 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2013-07-09 10:10:33 +0200
commit204b77954eacc85615eace5ac895fab5ebb16e04 (patch)
tree111f910d540f97253c77caf05d5b703b8d3cf86d /docs
parent223e41045f2b4396007249c59b912aaea149e873 (diff)
downloadsqlparse-204b77954eacc85615eace5ac895fab5ebb16e04.tar.gz
Add option to truncate long string literals.
Diffstat (limited to 'docs')
-rw-r--r--docs/source/api.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/source/api.rst b/docs/source/api.rst
index 99e50e2..518a428 100644
--- a/docs/source/api.rst
+++ b/docs/source/api.rst
@@ -35,6 +35,14 @@ The :meth:`~sqlparse.format` function accepts the following keyword arguments.
``strip_comments``
If ``True`` comments are removed from the statements.
+``truncate_strings``
+ If ``truncate_strings`` is a positive integer, string literals longer than
+ the given value will be truncated.
+
+``truncate_char`` (default: "[...]")
+ If long string literals are truncated (see above) this value will be append
+ to the truncated string.
+
``reindent``
If ``True`` the indentations of the statements are changed.