Skip to content

Commit

Permalink
Updated readme, created vsce 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Price committed Sep 19, 2019
1 parent fddca94 commit 6b0fe62
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Azure Data Studio - Simple Data Scripter
# Azure Data Studio - Simple Data Scripter

This extension provides a quick and easy way to migrate data between tables by generating insert scripts based on the result sets of a query. It defaults to generating all data from a given table (based on the table selected via a context menu), but the default sql can be modifed to generate subsets of data.
This extension provides a quick and easy way to migrate data between tables by generating insert scripts based on the result sets of a query. It defaults to generating all data from a given table (based on the table selected via a context menu), but the default sql can be modifed to generate subsets of data.

## Installation
The current release is available to [download as a .vsix file](https://github.com/ecirpnaes/SimpleDataScripter/releases/download/0.1.0/simple-data-scripter-0.1.0.vsix) and can be installed by opening the File Menu and selecting `Install Extension from VSIX Package`

The current release is available to [download as a .vsix file](https://github.com/ecirpnaes/SimpleDataScripter/releases/download/0.1.0/simple-data-scripter-0.1.0.vsix) and can be installed by opening the File Menu and selecting `Install Extension from VSIX Package`

## Features

Right-click on a table node to bring up a [`Script Table Data`] context menu.
Right-click on a table node to bring up a [`Script Table Data`] context menu. An input box will open showing the default SQL of selecting all data. You can simply press [Enter] to accept the default or the SQL using a WHERE clause, joins on other tables, etc... Any valid SQL is acceptable. Press [Enter] to run the query.
The data will be scripted to a new SQL Editor window.
![Feature](images/Scripting.gif)

-----------------------------------------------------------------------------------------------------------
## Known Issues

- This has only been tested with the MSSQL provider, i.e. Microsoft SQL Server. If there are any issues found with other flavors of SQL, (MySql, etc..) please report them at https://github.com/ecirpnaes/simple-data-scripter/issues
- Scripting of binary data (binary, varbinary, image) is not currently supported.
- This has only been tested with the MSSQL provider, i.e. Microsoft SQL Server. If there are any issues found with other flavors of SQL, (MySql, etc..) please report them at <https://github.com/ecirpnaes/simple-data-scripter/issues>
- Scripting of binary data (binary, varbinary, image) is not currently supported.

## Unknown Issues

Can be raised here: https://github.com/ecirpnaes/simple-data-scripter/issues
Can be raised here: <https://github.com/ecirpnaes/simple-data-scripter/issues>

## Release Notes

### 0.1.0

- Initial release.
- Initial release.
Binary file modified images/Scripting.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "0.0.1",
"publisher": "seanprice",
"repository": "https://github.com/ecirpnaes/SimpleDataScripter.git",
"license": "MIT",
"engines": {
"vscode": "^1.38.0",
"azdata": "*"
Expand Down
5 changes: 3 additions & 2 deletions src/DataScripter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ export class DataScripter {

// do we have an identity column in our resultset?
private hasIdentityColumn(): boolean {
return this._resultSet.columnInfo.some(function (column, index, array) {
return column && column.isIdentity;
this._resultSet.columnInfo.forEach(function (column) {
if (column.isIdentity) { return true; }
});
return false;
}

// construct a temp table based on the metadata from the resultset
Expand Down

0 comments on commit 6b0fe62

Please sign in to comment.