diff options
Diffstat (limited to 'examples/examples.php')
-rw-r--r-- | examples/examples.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/examples.php b/examples/examples.php index 0d3c641..9d69182 100644 --- a/examples/examples.php +++ b/examples/examples.php @@ -183,6 +183,30 @@ $comment_statements = array( </table> +<h1>Compress Query</h1> + +<div> + Usage: + <pre> + <?php highlight_string('<?php' . "\n" . '$compressed = SqlFormatter::compress($sql);' . "\n" . '?>'); ?> + </pre> +</div> +<table> + <tr> + <th>Original</th> + <th>Compressed</th> + </tr> + <?php foreach ($statements as $sql) { ?> + <tr> + <td> + <pre><?php echo $sql; ?></pre> + </td> + <td><pre><?php echo SqlFormatter::compress($sql); ?></pre></td> + </tr> + <?php } ?> +</table> + + <h1>Splitting SQL Strings Into Individual Queries</h1> <div> |