Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 4074a84

Browse files
raksivdavemooreuws
andcommitted
Apply suggestions from code review
Co-authored-by: David Moore <[email protected]>
1 parent d7c0e77 commit 4074a84

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/guides/nodejs/nitric-and-pgsql.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ published_at: 2025-03-18
1212

1313
This guide demonstrates how to use PostgreSQL with Nitric's [SQL database](/sql) feature. We will be creating a simple to-do app. The finished source can be found [here](https://github.com/nitrictech/examples/tree/main/v1/nitric-pgsql).
1414

15-
<Note>
16-
SQL databases are currently in preview and only support PostgreSQL.
17-
</Note>
15+
<Note>SQL databases are currently in preview and only support PostgreSQL.</Note>
1816

1917
## Create a new Nitric project
2018

2119
The first step is to create a new Nitric TypeScript project using the [Nitric CLI](/reference/cli).
2220

2321
```bash
2422
nitric new todo-app ts-starter
25-
npm install
2623
```
2724

2825
## Enabling SQL databases
@@ -34,8 +31,6 @@ preview:
3431
- sql-databases
3532
```
3633
37-
Ensure your CLI is at least `v1.42` and your AWS provider is at least `v1.6.2`.
38-
3934
## Install PostgreSQL client
4035
4136
```bash
@@ -72,7 +67,7 @@ export default getClient
7267

7368
Create a migration file to define the `todos` table.
7469

75-
```sql title: 'migrations/1_create_table.up.sql'
70+
```sql title: migrations/todos/1_create_table.up.sql
7671
CREATE TABLE IF NOT EXISTS todos (
7772
id SERIAL PRIMARY KEY,
7873
text TEXT NOT NULL,

0 commit comments

Comments
 (0)