Created
August 19, 2018 04:41
-
-
Save thirumurthy/18afde43aac2f43c60d2b9cad68c65fd to your computer and use it in GitHub Desktop.
Sails common API function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// you can refer https://sailsjs.com/documentation/reference/waterline-orm/datastores/send-native-query | |
// Build our SQL query template. | |
var SPNAME_CALL_SQL = `call sp_spname($1,$2)`; | |
// Send it to the database. | |
var rawResult = await sails.sendNativeQuery(SPNAME_CALL_SQL, [ 'dog', 'cat' ]); | |
return exits.success(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment