Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-sql-cst

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-sql-cst - npm Package Compare versions

Comparing version 0.11.2 to 0.11.3

13

dist/syntax/alter_action.js

@@ -22,3 +22,8 @@ "use strict";

},
alter_action_add_constraint: function (print) { return print.spaced(["addKw", "constraint"]); },
alter_action_add_constraint: function (print) {
return print.spaced(["addKw", "name", "constraint", "modifiers"]);
},
alter_action_add_constraint_constraint_name: function (print) {
return print.spaced(["constraintKw", "ifNotExistsKw", "name"]);
},
alter_action_drop_constraint: function (print) {

@@ -32,2 +37,5 @@ return print.spaced([

},
alter_action_drop_primary_key: function (print) {
return print.spaced(["dropPrimaryKeyKw", "ifExistsKw"]);
},
alter_action_alter_constraint: function (print) {

@@ -85,2 +93,5 @@ return print.spaced(["alterConstraintKw", "constraint", "modifiers"]);

},
alter_action_attach_partition: function (print) {
return print.spaced(["attachPartitionKw", "index"]);
},
// ALTER COLUMN

@@ -87,0 +98,0 @@ alter_action_alter_column: function (print) {

4

dist/syntax/constraint.js

@@ -60,5 +60,2 @@ "use strict";

},
index_specification: function (print) {
return print.spaced(["expr", "opclass", "direction", "nullHandlingKw"]);
},
referential_action: function (print) {

@@ -105,3 +102,2 @@ return print.spaced(["onKw", "eventKw", "actionKw", "columns"]);

exclusion_param: function (print) { return print.spaced(["index", "withKw", "operator"]); },
index_include_clause: function (print) { return print.spaced(["includeKw", "columns"]); },
index_tablespace_clause: function (print) {

@@ -108,0 +104,0 @@ return print.spaced(["usingIndexTablespaceKw", "name"]);

@@ -7,3 +7,3 @@ "use strict";

postgresql_operator: function (print) { return print("operator"); },
postgresql_operator_class: function (print) { return print("name"); },
postgresql_operator_class: function (print) { return print.spaced(["name", "options"]); },
postgresql_with_options: function (print) { return print.spaced(["withKw", "options"]); },

@@ -10,0 +10,0 @@ postgresql_options: function (print) { return print.spaced(["optionsKw", "options"]); },

@@ -15,3 +15,2 @@ "use strict";

},
reindex_stmt: function (print) { return print.spaced(["reindexKw", "table"]); },
pragma_stmt: function (print) { return print.spaced(["pragmaKw", "pragma"]); },

@@ -18,0 +17,0 @@ pragma_assignment: function (print) { return (0, print_utils_1.join)(" = ", print(["name", "value"])); },

@@ -19,4 +19,6 @@ "use strict";

"createKw",
"orReplaceKw",
"indexTypeKw",
"indexKw",
"concurrentlyKw",
"ifNotExistsKw",

@@ -26,2 +28,3 @@ "name",

"table",
"using",
"columns",

@@ -31,7 +34,16 @@ ])

},
index_specification: function (print) {
return print.spaced(["expr", "opclass", "direction", "nullHandlingKw"]);
},
index_include_clause: function (print) { return print.spaced(["includeKw", "columns"]); },
index_nulls_distinct_clause: function (print) { return print.spaced(["nullsDistinctKw"]); },
index_nulls_not_distinct_clause: function (print) {
return print.spaced(["nullsNotDistinctKw"]);
},
drop_index_stmt: function (print) {
return print.spaced([
return (0, print_utils_1.group)(print.spaced([
"dropKw",
"indexTypeKw",
"indexKw",
"concurrentlyKw",
"ifExistsKw",

@@ -41,5 +53,39 @@ "indexes",

"table",
"behaviorKw",
]));
},
verbose_all_columns: function (print) { return print.spaced("allColumnsKw"); },
alter_index_stmt: function (print) {
return (0, print_utils_1.group)([
print.spaced(["alterKw", "indexKw", "ifExistsKw", "index"]),
print.dynamicLine(),
print("action"),
]);
},
verbose_all_columns: function (print) { return print.spaced("allColumnsKw"); },
alter_index_all_in_tablespace_stmt: function (print) {
return (0, print_utils_1.group)([
print.spaced([
"alterIndexKw",
"allInTablespaceKw",
"tablespace",
"ownedBy",
]),
print.dynamicLine(),
print("action"),
]);
},
reindex_stmt: function (print) {
return print.spaced([
"reindexKw",
"options",
"targetKw",
"concurrentlyKw",
"name",
]);
},
reindex_option_concurrently: function (print) {
return print.spaced(["concurrentlyKw", "value"]);
},
reindex_option_tablespace: function (print) { return print.spaced(["tablespaceKw", "name"]); },
reindex_option_verbose: function (print) { return print.spaced(["verboseKw", "value"]); },
};

@@ -26,2 +26,3 @@ "use strict";

},
as_replica_of_clause: function (print) { return print.spaced(["asReplicaOfKw", "view"]); },
drop_view_stmt: function (print) {

@@ -28,0 +29,0 @@ return (0, print_utils_1.group)(print.spaced([

{
"name": "prettier-plugin-sql-cst",
"version": "0.11.2",
"version": "0.11.3",
"description": "Prettier plugin for SQL",

@@ -36,6 +36,7 @@ "author": "Rene Saarsoo <nene@triin.net>",

"prettier": "^3.0.3",
"sql-parser-cst": "^0.26.0"
"sql-parser-cst": "^0.27.0"
},
"devDependencies": {
"@types/jest": "^29.2.5",
"chalk": "^4.3.0",
"dedent-js": "^1.0.1",

@@ -42,0 +43,0 @@ "jest": "^29.7.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc