Page Contents
Home > @loopback/repository > RepositoryMixinDoc
RepositoryMixinDoc class
A dummy class created to generate the tsdoc for the members in repository mixin. Please don’t use it.
The members are implemented in function RepositoryMixin
Signature:
export declare class RepositoryMixinDoc
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(args) | Constructs a new instance of the RepositoryMixinDoc class |
Methods
Method | Modifiers | Description |
---|---|---|
component(component) | Add a component to this application. Also mounts all the components repositories. | |
dataSource(dataSource, name) | Add the dataSource to this application. | |
getRepository(repo) | Retrieve the repository instance from the given Repository class | |
migrateSchema(options) | Update or recreate the database schema for all repositories.**WARNING**: By default, migrateSchema() will attempt to preserve data while updating the schema in your target database, but this is not guaranteed to be safe.Please check the documentation for your specific connector(s) for a detailed breakdown of behaviors for automigrate! |
|
mountComponentRepository(component) | Get an instance of a component and mount all it’s repositories. This function is intended to be used internally by component() | |
repository(repo) | Add a repository to this application. |