Skip to content

Commit

Permalink
Merge pull request #2250 from micalevisk/patch-1
Browse files Browse the repository at this point in the history
docs(sql): enforce usage of typeorm 0.2, not the latest
  • Loading branch information
kamilmysliwiec committed Mar 21, 2022
2 parents dadf171 + 7ceaf23 commit 875b9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/techniques/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ For integrating with SQL and NoSQL databases, Nest provides the `@nestjs/typeorm
To begin using it, we first install the required dependencies. In this chapter, we'll demonstrate using the popular [MySQL](https://www.mysql.com/) Relational DBMS, but TypeORM provides support for many relational databases, such as PostgreSQL, Oracle, Microsoft SQL Server, SQLite, and even NoSQL databases like MongoDB. The procedure we walk through in this chapter will be the same for any database supported by TypeORM. You'll simply need to install the associated client API libraries for your selected database.

```bash
$ npm install --save @nestjs/typeorm typeorm mysql2
$ npm install --save @nestjs/typeorm typeorm@0.2 mysql2
```

> warning **Warning** Note that we're using TypeORM v0.2, which isn't the latest version of TypeORM. The latter has substantial modifications and duplicate methods which are used on this page. You can read about `typeorm@0.3.0` changes [on their repository](https://github.com/typeorm/typeorm/releases/tag/0.3.0).
Once the installation process is complete, we can import the `TypeOrmModule` into the root `AppModule`.

```typescript
Expand Down

0 comments on commit 875b9c0

Please sign in to comment.