You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how we can expose stored procedure of MySQL database in rest API using loopback4 #5408
@deepakrkris@dhmlau That code you mentioned in #3459 is working fine.
But what i want is to get the list of stored procedure and execute the stored procedure of MySQL database using an API in loopback4 explorer.
Thanks.
Activity
dougal83 commentedon May 13, 2020
Please see #5101 (comment)
deepakrkris commentedon May 14, 2020
@kanusoni please take a look at #3459
constructor(
@repository(MyRepository)
public myRepo: MyRepository,
) {
this.user_Profile = userProfile;
}
async testData(
): Promise {
return await this.myRepo.dataSource.execute(
EXEC Get_Customer(?), ['CUSTID01']);}
and
https://loopback.io/doc/en/lb4/apidocs.repository.connector.execute.html
kanusoni commentedon May 15, 2020
@deepakrkris @dhmlau That code you mentioned in #3459 is working fine.
But what i want is to get the list of stored procedure and execute the stored procedure of MySQL database using an API in loopback4 explorer.
Thanks.
Arathy-sivan commentedon Jun 17, 2020
What is the use of " --save " in mysql loopback4 connector command??
( npm install --save loopback-connector-mysql )
achrinza commentedon Jun 17, 2020
@Arathy-sivan This is a question with regards to NPM and not specific to LoopBack 4.
Please see https://stackoverflow.com/questions/19578796/what-is-the-save-option-for-npm-install