Skip to content

Commit cae9ccd

Browse files
committed
[DOC-9718] Update Spring JPA and JDBC app tutorials for Cloud 2.0
1 parent 4c80e8e commit cae9ccd

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/current/_includes/cockroachcloud/sql-connection-string-free.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% include_cached copy-clipboard.html %}
44
~~~ shell
5-
cockroach sql --url 'postgresql://<username>:<password>@<serverless-host>:26257/defaultdb?sslmode=verify-full&sslrootcert='$HOME'/.postgresql/root.crt'
5+
cockroach sql --url 'postgresql://<username>:<password>@<cluster-host>:26257/defaultdb?sslmode=verify-full&sslrootcert='$HOME'/.postgresql/root.crt'
66
~~~
77

88
</section>
@@ -11,7 +11,7 @@
1111

1212
{% include_cached copy-clipboard.html %}
1313
~~~ shell
14-
cockroach sql --url 'postgresql://<username>:<password>@<serverless-host>:26257/defaultdb?sslmode=verify-full&sslrootcert='$HOME'/.postgresql/root.crt'
14+
cockroach sql --url 'postgresql://<username>:<password>@<cluster-host>:26257/defaultdb?sslmode=verify-full&sslrootcert='$HOME'/.postgresql/root.crt'
1515
~~~
1616

1717
</section>
@@ -20,15 +20,15 @@
2020

2121
{% include_cached copy-clipboard.html %}
2222
~~~ shell
23-
cockroach sql --url "postgresql://<username>:<password>@<serverless-host>:26257/defaultdb?sslmode=verify-full&sslrootcert=$env:appdata/.postgresql/root.crt"
23+
cockroach sql --url "postgresql://<username>:<password>@<cluster-host>:26257/defaultdb?sslmode=verify-full&sslrootcert=$env:appdata/.postgresql/root.crt"
2424
~~~
2525

2626
</section>
2727

2828
Where:
2929
- `<username>` is the SQL user. By default, this is your CockroachDB {{ site.data.products.cloud }} account username.
3030
- `<password>` is the password for the SQL user. The password will be shown only once in the **Connection info** dialog after creating the cluster.
31-
- `<serverless-host>` is the hostname of the CockroachDB {{ site.data.products.serverless }} cluster.
31+
- `<cluster-hostname>` is the hostname of your CockroachDB {{ site.data.products.cloud }} cluster.
3232
- `<cluster-id>` is a unique string used to identify your cluster when downloading the CA certificate. For example, `12a3bcde-4fa5-6789-1234-56bc7890d123`.
3333

34-
You can find these settings in the **Connection parameters** tab of the **Connection info** dialog.
34+
You can find these settings in the **Connection parameters** tab of the **Connection info** dialog.

src/current/v24.2/build-a-spring-app-with-cockroachdb-jdbc.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This tutorial assumes you are running under [`SERIALIZABLE`]({% link {{ page.ver
1717

1818
## Step 1. Start CockroachDB
1919

20-
Choose whether to run a local cluster or a free CockroachDB {{ site.data.products.cloud }} cluster.
20+
Choose whether to run a local cluster or a free CockroachDB {{ site.data.products.standard }} cluster.
2121

2222
<div class="filters clearfix">
2323
<button class="filter-button page-level" data-scope="cockroachcloud">Use CockroachDB {{ site.data.products.standard }}</button>
@@ -39,7 +39,7 @@ Choose whether to run a local cluster or a free CockroachDB {{ site.data.product
3939

4040
### Set up your cluster connection
4141

42-
{% include cockroachcloud/quickstart/set-up-your-cluster-connection.md %}
42+
{% include_cached cockroachcloud/quickstart/set-up-your-cluster-connection.md %}
4343

4444
</section>
4545

@@ -92,13 +92,13 @@ The [`--also-generate-pkcs8-key` flag]({% link {{ page.version.version }}/cockro
9292

9393
<section class="filter-content" markdown="1" data-scope="cockroachcloud">
9494

95-
1. If you haven't already, [download the CockroachDB binary]({% link {{ page.version.version }}/install-cockroachdb.md %}).
95+
1. If you haven't already, [download the CockroachDB SQL Shell binary]({% link {{ page.version.version }}/install-cockroachdb.md %}).
9696
1. Start the [built-in SQL shell]({% link {{ page.version.version }}/cockroach-sql.md %}) using the connection string you got from the CockroachDB {{ site.data.products.cloud }} Console [earlier](#set-up-your-cluster-connection):
9797

9898
{% include_cached copy-clipboard.html %}
9999
~~~ shell
100100
$ cockroach sql \
101-
--url 'postgresql://<user>@<cluster-name>-<short-id>.<region>.<host>:26257/<database>?sslmode=verify-full&sslrootcert='$HOME'/Library/CockroachCloud/certs/<cluster-name>-ca.crt'
101+
--url 'postgresql://<user>@<cluster-host>-<short-id>.<region>.<host>:26257/<database>?sslmode=verify-full&sslrootcert='$HOME'/Library/CockroachCloud/certs/<cluster-name>-ca.crt'
102102
~~~
103103

104104
1. Enter your SQL user password.
@@ -211,7 +211,7 @@ Where:
211211
~~~ yml
212212
...
213213
datasource:
214-
url: jdbc:postgresql://{globalhost}:{port}/{cluster_name}.roach_data?sslmode=verify-full&sslrootcert={path to the CA certificate}/cc-ca.crt
214+
url: jdbc:postgresql://{globalhost}:{port}/{cluster_host}.roach_data?sslmode=verify-full&sslrootcert={path to the CA certificate}/cc-ca.crt
215215
username: {username}
216216
password: {password}
217217
driver-class-name: org.postgresql.Driver

src/current/v24.2/build-a-spring-app-with-cockroachdb-jpa.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This tutorial shows you how to build a [Spring Boot](https://spring.io/projects/
1313

1414
## Step 1. Start CockroachDB
1515

16-
Choose whether to run a local cluster or a free CockroachDB {{ site.data.products.cloud }} cluster.
16+
Choose whether to run a local cluster or a free CockroachDB {{ site.data.products.standard }} cluster.
1717

1818
<div class="filters clearfix">
1919
<button class="filter-button page-level" data-scope="cockroachcloud">Use CockroachDB {{ site.data.products.standard }}</button>
@@ -35,7 +35,7 @@ Choose whether to run a local cluster or a free CockroachDB {{ site.data.product
3535

3636
### Set up your cluster connection
3737

38-
{% include cockroachcloud/quickstart/set-up-your-cluster-connection.md %}
38+
{% include_cached cockroachcloud/quickstart/set-up-your-cluster-connection.md %}
3939

4040
</section>
4141

@@ -88,13 +88,13 @@ The [`--also-generate-pkcs8-key` flag]({% link {{ page.version.version }}/cockro
8888

8989
<section class="filter-content" markdown="1" data-scope="cockroachcloud">
9090

91-
1. If you haven't already, [download the CockroachDB binary]({% link {{ page.version.version }}/install-cockroachdb.md %}).
91+
1. If you haven't already, [download the CockroachDB SQL Shell binary]({% link {{ page.version.version }}/install-cockroachdb.md %}).
9292
1. Start the [built-in SQL shell]({% link {{ page.version.version }}/cockroach-sql.md %}) using the connection string you got from the CockroachDB {{ site.data.products.cloud }} Console [earlier](#set-up-your-cluster-connection):
9393

9494
{% include_cached copy-clipboard.html %}
9595
~~~ shell
9696
$ cockroach sql \
97-
--url='postgres://{username}:{password}@{global host}:26257/{cluster_name}.defaultdb?sslmode=verify-full&sslrootcert={certs_dir}/cc-ca.crt'
97+
--url='postgres://{username}:{password}@{global host}:26257/{cluster_host}.defaultdb?sslmode=verify-full&sslrootcert={certs_dir}/cc-ca.crt'
9898
~~~
9999

100100
In the connection string copied from the CockroachDB {{ site.data.products.cloud }} Console, your username, password and cluster name are pre-populated. Replace the `{certs_dir}` placeholder with the path to the `certs` directory that you created [earlier](#set-up-your-cluster-connection).
@@ -217,7 +217,7 @@ Where:
217217
~~~ yml
218218
...
219219
datasource:
220-
url: jdbc:postgresql://{globalhost}:{port}/{cluster_name}.roach_data?sslmode=verify-full&sslrootcert={path to the CA certificate}/cc-ca.crt
220+
url: jdbc:postgresql://{globalhost}:{port}/{cluster_host}.roach_data?sslmode=verify-full&sslrootcert={path to the CA certificate}/cc-ca.crt
221221
username: {username}
222222
password: {password}
223223
driver-class-name: org.postgresql.Driver

src/current/v24.2/deploy-app-vercel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Before starting the tutorial, create a [Vercel](https://vercel.com/signup) accou
2424

2525
{% include_cached cockroachcloud/connection-string-standard.md %}
2626

27-
# Step 2. Get the code
27+
## Step 2. Get the code
2828

2929
1. Open the code repository's [GitHub repository](https://github.com/cockroachdb/prisma-examples).
3030
1. Fork it by clicking **Fork** at the top. Netlify requires you to own a Netlify app's repository.

0 commit comments

Comments
 (0)