Extensions inspire

Caret Plugin::SQL and DAX Formatter

0

Details

Author:
Dan Shrader

Category:
Developer Tools

Version:
1.1.1

Users:
47

Size:
110KiB

Price:
Free

Updated:
March 07, 2019

Webstore Link:
https://chrome.google.com/webstore/detail/caret-pluginsql-and-dax-f/dkjokfldmgepembohkgndcmjoggncdgn

Download

version 1.1.1  - Download ZIP file

version 1.0.0  - Download ZIP file

Description

This Caret plugin formats SQL and DAX for pretty print

The options for sql-formatter are passed via "options"

Please open tickets on GitHub
https://github.com/DanShrader/Caret-Plugin-Pretty-SQL

Change Log:
Fixed the ' = ' issue

To use with Caret

You'll need to add the following to your api.json file, under settings menu. This plugin can pass the same options that sql-formatter does in the 'options' tag. Note: The id is the id found under extensions. The one in here is for the plugin on the webstore.

api.json

{
"sampleMessage": {
"id": "extension id goes here",
"message": {
"data": "message can be any JSON object passable to chrome.runtime.sendMessageExternal"
}
},
"format-SQL": {
"id": "fnkfgnggimkijjldpalcfjfomhipodib",
"message": {
"command": "sql-format",
"options": {
"indent": "\t"
}
},
"sendEditorContext": true
},
"format-DAX": {
"id": "fnkfgnggimkijjldpalcfjfomhipodib",
"message": {
"command": "dax-format",
"options": {
"indent": "\t"
}
},
"sendEditorContext": true
}
}

menus.json

This is optional, but allows the command to be accessable in menu system.

{
"label": "Format SQL",
"command": "api:execute",
"argument": "format-SQL"
}, {
"label": "Format DAX",
"command": "api:execute",
"argument": "format-DAX"
}

The following have contributed works

Without the following, this plug-in would not exist. Thanks to their works.

Caret
https://github.com/thomaswilburn/Caret

sql-formatter
https://github.com/zeroturnaround/sql-formatter

Microsoft for SSAS and DAX

Top Extensions

 
(10943)
 
(50577)
 
(98995)
 
(25231)
 
(8324)
 
(1434)
 
(11367)

What has inspired us?

Extore is a team of professionals who are passionate about creating extensions for web browsers. This devotion also gives us opportunity to appreciate work of other people. We get inspired by useful, open source extensions made by developers all over the world. Our strong belief is that one should share helpful add-ons with others. That’s why we’d like to present you our ever-growing list of favourite extensions that have inspired us. Moreover, as you probably have already learned, sometimes struggling for the best brings an end to the good. Talking about add-ons it often turns out that an upgrade is worse then previous version. Also it can become really tricky to get back to the beloved version of your favourite extension. That’s why we’re going to make not only the latest, but all versions of our favourite (and we hope yours too) add-ons available for download. No more compromises, just stick to the version you really like!