├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .prettierrc.js ├── LICENSE ├── README.md ├── jest.eslint.config.js ├── jest.test.config.js ├── package.json ├── scripts └── add_statement.js ├── src ├── comments.ts ├── embed.ts ├── index.ts ├── nodeTypes.ts ├── print.ts ├── reservedWords.ts └── util.ts ├── tests ├── BEGIN │ ├── __snapshots__ │ │ └── jsfmt.spec.js.snap │ ├── deferrable.sql │ ├── full-house.sql │ ├── isolation-level.sql │ ├── jsfmt.spec.js │ ├── read.sql │ └── simple.sql ├── CREATE_FUNCTION │ ├── __snapshots__ │ │ └── jsfmt.spec.js.snap │ ├── jsfmt.spec.js │ └── simple.sql └── SELECT │ ├── __snapshots__ │ └── jsfmt.spec.js.snap │ ├── jsfmt.spec.js │ └── simple.sql ├── tests_config ├── massageAST.js ├── raw-serializer.js └── run_spec.js ├── tsconfig.json ├── typings └── pg-query-native-latest.d.ts └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist/ 3 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/README.md -------------------------------------------------------------------------------- /jest.eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/jest.eslint.config.js -------------------------------------------------------------------------------- /jest.test.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/jest.test.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/package.json -------------------------------------------------------------------------------- /scripts/add_statement.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/scripts/add_statement.js -------------------------------------------------------------------------------- /src/comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/src/comments.ts -------------------------------------------------------------------------------- /src/embed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/src/embed.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/nodeTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/src/nodeTypes.ts -------------------------------------------------------------------------------- /src/print.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/src/print.ts -------------------------------------------------------------------------------- /src/reservedWords.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/src/reservedWords.ts -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/src/util.ts -------------------------------------------------------------------------------- /tests/BEGIN/__snapshots__/jsfmt.spec.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/BEGIN/__snapshots__/jsfmt.spec.js.snap -------------------------------------------------------------------------------- /tests/BEGIN/deferrable.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/BEGIN/deferrable.sql -------------------------------------------------------------------------------- /tests/BEGIN/full-house.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/BEGIN/full-house.sql -------------------------------------------------------------------------------- /tests/BEGIN/isolation-level.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/BEGIN/isolation-level.sql -------------------------------------------------------------------------------- /tests/BEGIN/jsfmt.spec.js: -------------------------------------------------------------------------------- 1 | run_spec(__dirname, ["postgresql"]); 2 | -------------------------------------------------------------------------------- /tests/BEGIN/read.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/BEGIN/read.sql -------------------------------------------------------------------------------- /tests/BEGIN/simple.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/BEGIN/simple.sql -------------------------------------------------------------------------------- /tests/CREATE_FUNCTION/__snapshots__/jsfmt.spec.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/CREATE_FUNCTION/__snapshots__/jsfmt.spec.js.snap -------------------------------------------------------------------------------- /tests/CREATE_FUNCTION/jsfmt.spec.js: -------------------------------------------------------------------------------- 1 | run_spec(__dirname, ["postgresql"]); 2 | -------------------------------------------------------------------------------- /tests/CREATE_FUNCTION/simple.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/CREATE_FUNCTION/simple.sql -------------------------------------------------------------------------------- /tests/SELECT/__snapshots__/jsfmt.spec.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/SELECT/__snapshots__/jsfmt.spec.js.snap -------------------------------------------------------------------------------- /tests/SELECT/jsfmt.spec.js: -------------------------------------------------------------------------------- 1 | run_spec(__dirname, ["postgresql"]); 2 | -------------------------------------------------------------------------------- /tests/SELECT/simple.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests/SELECT/simple.sql -------------------------------------------------------------------------------- /tests_config/massageAST.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests_config/massageAST.js -------------------------------------------------------------------------------- /tests_config/raw-serializer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests_config/raw-serializer.js -------------------------------------------------------------------------------- /tests_config/run_spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tests_config/run_spec.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typings/pg-query-native-latest.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/typings/pg-query-native-latest.d.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjie/prettier-plugin-pg/HEAD/yarn.lock --------------------------------------------------------------------------------