diff options
| author | Abdelhak Bougouffa <abougouffa@cryptolab.net> | 2023-11-23 23:03:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-23 14:03:37 -0800 |
| commit | 515ee18092e0b3ae17130032dd019fd9c08e69bc (patch) | |
| tree | b130cd2c14abed3bc9d1c1f384da2cb0b074a2c7 /test | |
| parent | fb8842b731474a50e96fa27e2157d3d30e354586 (diff) | |
Add support for SQL using `pgformatter` (#247)
Add support for [`pgFormatter`](https://github.com/darold/pgFormatter)
for `sql-mode`.
<!--
To expedite the pull request process, please see the contributor guide
for my projects:
<https://github.com/raxod502/contributor-guide>
-->
Diffstat (limited to 'test')
| -rw-r--r-- | test/formatters/installers/pgformatter.bash | 1 | ||||
| -rw-r--r-- | test/formatters/samplecode/pgformatter/in.sql | 1 | ||||
| -rw-r--r-- | test/formatters/samplecode/pgformatter/out.sql | 9 |
3 files changed, 11 insertions, 0 deletions
diff --git a/test/formatters/installers/pgformatter.bash b/test/formatters/installers/pgformatter.bash new file mode 100644 index 0000000..60375b8 --- /dev/null +++ b/test/formatters/installers/pgformatter.bash @@ -0,0 +1 @@ +apt-get install -y pgformatter diff --git a/test/formatters/samplecode/pgformatter/in.sql b/test/formatters/samplecode/pgformatter/in.sql new file mode 100644 index 0000000..74b50eb --- /dev/null +++ b/test/formatters/samplecode/pgformatter/in.sql @@ -0,0 +1 @@ +create table person (primary key id int, firstname varchar(500), lastname varchar(500), email varchar(500), password_sha256 varchar(200), password_seed varchar(200)); diff --git a/test/formatters/samplecode/pgformatter/out.sql b/test/formatters/samplecode/pgformatter/out.sql new file mode 100644 index 0000000..3853714 --- /dev/null +++ b/test/formatters/samplecode/pgformatter/out.sql @@ -0,0 +1,9 @@ +CREATE TABLE person ( + PRIMARY KEY id int, + firstname varchar(500), + lastname varchar(500), + email varchar(500), + password_sha256 varchar(200), + password_seed varchar(200) +); + |
