You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ You can control the files/folders to process using different strategies, either
54
54
The first way to control which files and folders are processed is to list them in the CLI. In the following command, we only check `file1.sql` and all the files in the `src` folder, because folders are recursively traversed.
Copy file name to clipboardExpand all lines: docs/getting_started.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ The Postgres Language Server can be installed as a development dependency of you
7
7
We recommend creating a `postgres-language-server.jsonc` configuration file for each project. This eliminates repetitive CLI options and ensures that consistent configuration in your editor. Some options are only available from a configuration file. This step is optional though: if you are happy with the defaults, you don’t need a configuration file. To create the `postgres-language-server.jsonc` file, run the `init` command in the root folder of your project:
8
8
9
9
```sh
10
-
postgrestools init
10
+
postgres-language-server init
11
11
```
12
12
13
13
You’ll now have a `postgres-language-server.jsonc` file in your directory:
@@ -45,9 +45,9 @@ You’ll now have a `postgres-language-server.jsonc` file in your directory:
45
45
46
46
[//]: #"END DEFAULT_CONFIGURATION"
47
47
48
-
Make sure to edit the database connection settings to connect to your local development database. To see all options, run `postgrestools --help`.
48
+
Make sure to edit the database connection settings to connect to your local development database. To see all options, run `postgres-language-server --help`.
49
49
50
-
You can use your current `postgrestools` version instead of "latest" in the `$schema` URL, e.g. `https://pgtools.dev/0.8.1/schema.json`.
50
+
You can use your current `postgres-language-server` version instead of "latest" in the `$schema` URL, e.g. `https://pg-language-server.com/0.8.1/schema.json`.
51
51
52
52
## Usage
53
53
@@ -59,13 +59,13 @@ The CLI exposes a `check` command that will run all checks on the given files or
Run `postgrestools --help` for all options. The CLI options take precedence over what is loaded from `postgres-language-server.jsonc`.
68
+
Run `postgres-language-server --help` for all options. The CLI options take precedence over what is loaded from `postgres-language-server.jsonc`.
69
69
70
70
### Editor Integrations
71
71
@@ -78,7 +78,7 @@ The Postgres Language Server is available as an extension in your favorite edito
78
78
79
79
### Continuous Integration
80
80
81
-
Run `postgrestools check` in your CI pipeline to lint your schema changes and enforce code quality across your team. We provide a [GitHub Action](https://github.com/supabase-community/postgrestools-cli-action) to setup the Postgres Language Server in your runner.
81
+
Run `postgres-language-server check` in your CI pipeline to lint your schema changes and enforce code quality across your team. We provide a [GitHub Action](https://github.com/supabase-community/postgrestools-cli-action) to setup the Postgres Language Server in your runner.
82
82
83
83
See the [Continuous Integration](/guides/continuous_integration) guide for an example.
When you are setting it up in an existing project, you might want to ignore all migrations that are already applied. To do so, add `migrationsDir` and `after` to your `postgres-language-server.jsonc` file
@@ -23,7 +23,7 @@ When you are setting it up in an existing project, you might want to ignore all
Copy file name to clipboardExpand all lines: docs/guides/continuous_integration.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Running the Postgres Language Server in a CI environment can boost your teams co
4
4
5
5
### GitHub Actions
6
6
7
-
We provide a first-party [GitHub Action](https://github.com/supabase-community/postgrestools-cli-action) to setup the CLI in your runner. Here’s what a simple workflow might look like:
7
+
We provide a first-party [GitHub Action](https://github.com/supabase-community/postgrestools-cli-action) to setup the CLI in your runner. Here's what a simple workflow might look like:
Copy file name to clipboardExpand all lines: docs/guides/vcs_integration.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,20 +50,20 @@ First, you have to update your configuration file with the default branch via th
50
50
Add the `--changed` option to your command to process only those files that your VCS acknowledged as “changed”. The language server will determine the changed files from the branch `main` and your current revision:
51
51
52
52
```shell
53
-
postgrestools check --changed
53
+
postgres-language-server check --changed
54
54
```
55
55
56
56
Alternatively, you can use the option `--since` to specify an arbitrary branch. This option takes precedence over the option `vcs.defaultBranch`. For example, you might want to check your changes against the `next` branch:
Before committing your changes, you may want to check the files that have been added to the index, also known as staged files. Add the `--staged` option to process only those files:
0 commit comments