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


export declare class DataSourceBooter extends BaseArtifactBooter 

Extends: BaseArtifactBooter


Constructor Modifiers Description
(constructor)(app, projectRoot, datasourceConfig)   Constructs a new instance of the DataSourceBooter class


Property Modifiers Type Description
app   ApplicationWithRepositories  
datasourceConfig   ArtifactOptions  


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.