@sqlike/cli 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ API. There is no analysis engine in it.
|
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
# analyze a query
|
|
15
|
-
npx @sqlike/cli check query.sql
|
|
15
|
+
npx @sqlike/cli check query.sql
|
|
16
16
|
|
|
17
17
|
# or install it
|
|
18
18
|
npm i -g @sqlike/cli
|
|
@@ -20,7 +20,7 @@ brew install orifisher2/sqlike/sqlike
|
|
|
20
20
|
|
|
21
21
|
# from stdin, machine-readable
|
|
22
22
|
echo 'SELECT * FROM users WHERE id IN (SELECT uid FROM bans)' \
|
|
23
|
-
| sqlike check - --
|
|
23
|
+
| sqlike check - --json
|
|
24
24
|
|
|
25
25
|
# check a rewrite is equivalent (equivalence always runs server-side)
|
|
26
26
|
sqlike diff before.sql after.sql --schema schema.sql
|
|
@@ -37,7 +37,7 @@ undecided, `3` operational error.
|
|
|
37
37
|
### Privacy
|
|
38
38
|
|
|
39
39
|
A query is tokenized before it leaves your machine. One that cannot be parsed cannot be tokenized,
|
|
40
|
-
so `check` and `diff` refuse rather than send raw SQL. Pass `--allow-raw`
|
|
40
|
+
so `check` and `diff` refuse rather than send raw SQL. Pass `--allow-raw` to
|
|
41
41
|
override that for a parse diagnostic.
|
|
42
42
|
|
|
43
43
|
## How it ships
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlike/cli",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.4.2",
|
|
4
|
+
"description": "Lints SQL and checks that a rewrite still returns the same rows. Postgres, MySQL, MariaDB, SQLite, SQL Server and DuckDB. Queries are tokenized before they leave your machine.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sql",
|
|
7
7
|
"sqlike",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"node": ">=18"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@sqlike/cli-darwin-arm64": "0.4.
|
|
37
|
-
"@sqlike/cli-darwin-x64": "0.4.
|
|
38
|
-
"@sqlike/cli-linux-arm64": "0.4.
|
|
39
|
-
"@sqlike/cli-linux-x64": "0.4.
|
|
40
|
-
"@sqlike/cli-win32-x64": "0.4.
|
|
36
|
+
"@sqlike/cli-darwin-arm64": "0.4.2",
|
|
37
|
+
"@sqlike/cli-darwin-x64": "0.4.2",
|
|
38
|
+
"@sqlike/cli-linux-arm64": "0.4.2",
|
|
39
|
+
"@sqlike/cli-linux-x64": "0.4.2",
|
|
40
|
+
"@sqlike/cli-win32-x64": "0.4.2"
|
|
41
41
|
}
|
|
42
42
|
}
|