How do you define the Model with a Stored Procedure? #13243
Unanswered
RayDeanTech
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can I define my Model with the results of a Stored Procedure?
My Bossman is also the DBA, so I must comply with the "mandate" to write and use Stored Procedures.
Does that defeat the purpose of an ORM?
If I can't use
.define()
, and I must use .query()
toEXEC
a Stored Procedure, how do I map the results from.query()
to an Object/Class/Model?OR, do I just simply return the results?
(using Node/Express/BodyParser, JavaScript, MSSQL, and JSON)
Beta Was this translation helpful? Give feedback.
All reactions