loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Where is native DB query

Open johnsoftek opened this issue 12 years ago • 6 comments

In Hacker News, https://news.ycombinator.com/item?id=7796196, it was said of Loopback:

We allow you to execute native query using dataSource.connector.query(query, params, cb). We're considering to promote it to dataSource level and fully document it.

Is this feature available? Example?

johnsoftek avatar Aug 31 '14 11:08 johnsoftek

Okay, found it.

johnsoftek avatar Aug 31 '14 11:08 johnsoftek

Could you tell me how to do that? #576
thx

veekungx avatar Sep 21 '14 15:09 veekungx

I found it.

veekungx avatar Sep 21 '14 16:09 veekungx

where is native query?

likun7981 avatar Jun 28 '16 12:06 likun7981

@likun7981 you can try dataSource.connector.query(sql, params, cb);

biliboss avatar Jun 29 '16 10:06 biliboss

@biliboss thx ,I found it .

likun7981 avatar Jul 03 '16 15:07 likun7981