Skip to content

Commit

Permalink
Release prep, version bump.
Browse files Browse the repository at this point in the history
Updates to the readme.
Added util.inspect to output results.
  • Loading branch information
lawrencekgrant committed Aug 4, 2016
1 parent 8d07fcb commit ee1f308
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ This is an extension for working with Cassandra CQL. This extension supports syn
- Snippets (SELECT, CREATE TABLE|KEYSPACE|TRIGGER|TYPE|INDEX, UPDATE)
- CQL Statement Execution
- Keybinding for CQL Statement Execution
- Scanning for objects
- View schema

###CQL Statement Execution
**Execute SQL Statement:**
Expand All @@ -33,26 +35,13 @@ If your Cassandra endpoint is at 127.0.0.1:9042 (or localhost), then there is no
"contactPoints": ["127.0.0.1"],
"hosts": ["127.0.0.1"]
}`

### Other
- Task List:
- ~~Execute Statements~~ (done)
- ~~Configure extension~~ (done)
- Context for Intellisense *(some)*
- ~~Better Internal Structure~~ (done)
- Symbols functionality
- Document
- Workspace
- ~~Search Cassandra for symbols~~
- ~~Better Syntax Highlighting~~ (done)
- Move this task list Issues

- **cql.resultStyle** *(object)*: Configures where and how you will view results. There are two options:
- format: *json* or *tabular*
- location: If set to *output* results are routed to the CQL Output window instead of a pane.

### For more information
* [project on github](https://github.com/lawrencekgrant/vscode-cql)

*(Table and Column names come from CREATE scripts that have been opened.)*

### Build Status
[![Build Status](https://travis-ci.org/lawrencekgrant/vscode-cql.svg?branch=master)](https://travis-ci.org/lawrencekgrant/vscode-cql)
# **Enjoy!**
# **Enjoy with care**
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cql",
"displayName": "cql",
"description": "Cassandra CQL extension for VS Code.",
"version": "0.5.1",
"version": "0.6.0",
"publisher": "LawrenceGrant",
"author": {
"name": "Lawrence Grant"
Expand Down Expand Up @@ -116,10 +116,10 @@
"description": "Connection object for connecting to cassandra"
},
"cql.resultStyle": {
"type": "string",
"type": "object",
"default": {
"format": "json",
"location": "sideview"
"location": "pane"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cqlExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function registerAll() : vscode.Disposable[] { //I like that.. I may keep
function showResults(error, results) {
if(vscode.workspace.getConfiguration("cql")["resultStyle"].location == "output") {
outputChannel.appendLine("Results:");
outputChannel.appendLine(JSON.stringify(error ? error : currentResults));
outputChannel.appendLine(util.inspect(error ? error : currentResults, {depth: 64}));
outputChannel.appendLine(new Date().toTimeString());
outputChannel.show();
} else {
Expand Down

0 comments on commit ee1f308

Please sign in to comment.