Skip to content

Commit

Permalink
docs: add sequelize page under accessing databases
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham P <shubham.prajapat@sourcefuse.com>
  • Loading branch information
shubhamp-sf authored and dhmlau committed May 31, 2023
1 parent 3c871b0 commit f90cf7f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/site/Using-Sequelize-with-LoopBack.md
@@ -0,0 +1,10 @@
---
lang: en
title: 'How to use Sequelize with LoopBack'
keywords: LoopBack 4.0, LoopBack 4, Sequelize
sidebar: lb4_sidebar
layout: readme
source: loopback-next
file: extensions/sequelize/README.md
permalink: /doc/en/lb4/Using-sequelize-with-loopback.html
---
7 changes: 7 additions & 0 deletions docs/site/sidebars/lb4_sidebar.yml
Expand Up @@ -351,6 +351,13 @@ children:
url: Executing-database-commands.html
output: 'web, pdf'

- title: 'Using Sequelize'
output: 'web, pdf'
children:
- title: 'How to use Sequelize with LoopBack'
url: Using-sequelize-with-loopback.html
output: 'web, pdf'

- title: 'Using TypeORM'
output: 'web, pdf'
children:
Expand Down
4 changes: 2 additions & 2 deletions extensions/sequelize/README.md
Expand Up @@ -49,7 +49,7 @@ simply changing the parent classes in the target Data Source and Repositories.
Change the parent class from `juggler.DataSource` to `SequelizeDataSource` like
below.

```ts title="pg.datasource.ts"
```ts
// ...
import {SequelizeDataSource} from '@loopback/sequelize';

Expand Down Expand Up @@ -92,7 +92,7 @@ let config = {
Change the parent class from `DefaultCrudRepository` to
`SequelizeCrudRepository` like below.

```ts title="your.repository.ts"
```ts
// ...
import {SequelizeCrudRepository} from '@loopback/sequelize';

Expand Down

0 comments on commit f90cf7f

Please sign in to comment.