Skip to content

Commit 26d30d0

Browse files
committed
brief readme
1 parent 7d20f40 commit 26d30d0

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# T-SQL Diff
2+
Compare Difference In T-SQL Queries at Runtime
3+
4+
## Install
5+
1. Go to [release](https://github.com/llouislu/tsql-diff/releases) and download the latest version.
6+
2. execute install.sql in your target database.
7+
8+
## Uninstall
9+
Execute this stored procedure.
10+
```
11+
EXEC Diff.Uninstall;
12+
```
13+
14+
## Usage
15+
Please refer to the doc/examples while reading this section.
16+
17+
There is a `Diff` schema in your target database after you successfully installed this library.
18+
19+
### Compare two queries in strings
20+
```sql
21+
DECLARE @status_code INT;
22+
EXEC @status_code = Diff.CompareString 'Select 1', 'Select 2';
23+
```
24+
25+
### Compare two queries in files
26+
```sql
27+
DECLARE @status_code INT;
28+
EXEC @status_code = Diff.Compare 'path/to/query1.sql', 'path/to/query2.sql';
29+
```
30+
31+
### Compare paris of queries in a folder
32+
```sql
33+
declare @status_code INT;
34+
exec Diff.ComapreFolder @FolderPath='/root/data/t', @ModifierName='Model'
35+
```

0 commit comments

Comments
 (0)