0.2.38 • Published 1 year ago

@dr666m1/prettier-plugin-bq v0.2.38

Weekly downloads
6
License
MIT
Repository
-
Last release
1 year ago

prettier-plugin-bq

@dr666m1/prettier-plugin-bq is a prettier plugin for standardSQL, which is a dialect of BigQuery.

⚠️ This plugin is still a work in progress, so the behavior would change frequently.

Install

npm install --save-dev --save-exact prettier @dr666m1/prettier-plugin-bq

Usage

As the prettier document says, the plugin is automatically loaded.

Plugins are automatically loaded if you have them installed in the same node_modules directory where prettier is located.

You can format .sql and .bq file by the following command.

npx prettier --write ./xxx.sql

For more information, please read the prettier document.

Configuration

Below are the options that @dr666m1/prettier-plugin-bq currently supports.

API OptionCLI OptionDefaultDescription
formatMultilineCommentformat-multiline-commentfalse(experimental) Print multiline commnets in "starred-block" style.
indentCteindent-ctetrueIndent CTEs in with clause.
printBlankLineAfterCteprint-blank-line-after-ctefalsePrint blank line after CTE in with clause.
printKeywordsInUpperCaseprint-keywords-in-upper-casetruePrint reserved keywords and functions in upper case.
printPseudoColumnsInUpperCaseprint-pseudo-columns-in-upper-casetruePrint pseudo columns (e.g. _PARTITIONDATE, _PARTITIONTIME) in upper case. When printKeywordsInUpperCase is false, this option is ignored.

Coding style

This plugin doesn't follow any famous style guides, because none of them satisfies me.

Feedback

I'm not ready to accept pull requests, but your feedback is always welcome. If you find any bugs, please feel free to create an issue.

0.2.38

1 year ago

0.2.37

1 year ago

0.2.36

1 year ago

0.2.35

1 year ago

0.2.34

1 year ago

0.2.33

1 year ago

0.2.32

2 years ago

0.2.31

2 years ago

0.2.30

2 years ago

0.2.27

2 years ago

0.2.26

2 years ago

0.2.25

2 years ago

0.2.24

2 years ago

0.2.23

2 years ago

0.2.29

2 years ago

0.2.28

2 years ago

0.2.22

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago

1.0.0

3 years ago