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
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/guides/nodejs/nitric-and-pgsql.mdx
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,14 @@ published_at: 2025-03-18
12
12
13
13
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).
14
14
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>
18
16
19
17
## Create a new Nitric project
20
18
21
19
The first step is to create a new Nitric TypeScript project using the [Nitric CLI](/reference/cli).
22
20
23
21
```bash
24
22
nitric new todo-app ts-starter
25
-
npm install
26
23
```
27
24
28
25
## Enabling SQL databases
@@ -34,8 +31,6 @@ preview:
34
31
- sql-databases
35
32
```
36
33
37
-
Ensure your CLI is at least `v1.42` and your AWS provider is at least `v1.6.2`.
38
-
39
34
## Install PostgreSQL client
40
35
41
36
```bash
@@ -72,7 +67,7 @@ export default getClient
72
67
73
68
Create a migration file to define the `todos` table.
0 commit comments