Skip to content

Commit

Permalink
fix: change letter casing for dataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
shimks committed Mar 21, 2018
1 parent 5326d7d commit c309ec3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export class NoteRepository extends DefaultCrudRepository<
Note,
typeof Note.prototype.id
> {
constructor(@inject('datasources.db') protected datasource: DataSourceType) {
super(Note, datasource);
constructor(@inject('datasources.db') protected dataSource: DataSourceType) {
super(Note, dataSource);
}
}
```
Expand Down Expand Up @@ -164,7 +164,7 @@ against the underlying database or service.
`Repository` can be defined and implemented by application developers. LoopBack
ships a few predefined `Repository` interfaces for typical CRUD and KV
operations. These `Repository` implementations leverage `Model` definition and
`Datasource` configuration to fulfill the logic for data access.
`DataSource` configuration to fulfill the logic for data access.

```js
interface Repository<T extends Model> {}
Expand Down Expand Up @@ -229,9 +229,9 @@ There are two subtly different types of models for domain objects:
}
```

### Datasource
### DataSource

`Datasource` is a named configuration of a connector. The configuration
`DataSource` is a named configuration of a connector. The configuration
properties vary by connectors. For example, a datasource for `MySQL` needs to
set the `connector` property to `loopback-connector-mysql` with settings as
follows:
Expand All @@ -246,7 +246,7 @@ follows:
}
```

When a `Datasource` is instantiated, the configuration properties will be used
When a `DataSource` is instantiated, the configuration properties will be used
to initialize the connector to connect to the backend system.

### Connector
Expand Down

0 comments on commit c309ec3

Please sign in to comment.