Page Contents
Home > @loopback/boot > DataSourceBooter
DataSourceBooter class
A class that extends BaseArtifactBooter to boot the ‘DataSource’ artifact type. Discovered DataSources are bound using app.dataSource().
Supported phases: configure, discover, load
Signature:
export declare class DataSourceBooter extends BaseArtifactBooter
Extends: BaseArtifactBooter
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(app, projectRoot, datasourceConfig) | Constructs a new instance of the DataSourceBooter class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| app | ApplicationWithRepositories | ||
| datasourceConfig | ArtifactOptions |
Methods
| Method | Modifiers | Description |
|---|---|---|
| load() | Uses super method to get a list of Artifact classes. Boot each file by creating a DataSourceConstructor and binding it to the application class. |