remove ilo run command file
[yosql.git] / yosql-website / content / configuration / files / sqlStatementSeparator.md
blob01a12bad747a17db09c31b66d722e55a59700434
1 ---
2 title: sqlStatementSeparator
3 date: 2019-09-27T18:51:08+02:00
4 menu:
5   main:
6     parent: Files
7 categories:
8 - Configuration
9 tags:
10   - sql
11   - statement
12   - separator
13 ---
15 The `sqlStatementSeparator` option can be used to change the character that separates multiple SQL statements within a single `.sql` file. It defaults to `;`.
17 ## Configuration Options
19 ### Option: ';'
21 The default value of the `sqlStatementSeparator` configuration option is `.sql`. It matches all files that end with `.sql`.
23 ### Option: '|'
25 Changing the `sqlStatementSeparator` configuration option to `|` configures `YoSQL` split `.sql` files using the `|` character.
27 ## Related Options
29 - [inputBaseDirectory](../inputbasedirectory/): Controls the base directory for `.sql` files.
30 - [outputBaseDirectory](../outputbasedirectory/): Controls the output directory for `.java` files.
31 - [skipLines](../skiplines/): Skip lines at the beginning of each `.sql` file.
32 - [sqlFilesCharset](../sqlfilescharset/): Controls the charset used to read `.sql` files.
33 - [sqlFilesSuffix](../sqlfilessuffix/): Controls the expected file ending when looking for `.sql` files.
35 ## Tooling
37 ### Maven
39 In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/).
41 {{< maven/config/files/sqlStatementSeparator >}}
43 ### Gradle
45 In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/).
47 ```groovy
48 plugins {
49   id("wtf.metio.yosql")
52 yosql {
53   files {
54       sqlStatementSeparator = configValue
55   }
57 ```
59 ### Bazel
61 In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/).
63 ### CLI
65 In order to use YoSQL on the command line, take a look at the tooling [documentation for CLI](/tooling/cli/).
67 ```shell
68 $ yosql --files-sql-statement-separator=configValue
69 ```
71 The shorter form is available as well:
73 ```shell
74 $ yosql --sql-statement-separator=configValue
75 ```