Giter Club home page Giter Club logo

Comments (5)

dhmlau avatar dhmlau commented on August 18, 2024

@ataft, thanks for the suggestion. Your proposal sounds reasonable to me. It's important for us to keep the backward compatibility. @jannyHou, what do you think? Thanks.

from loopback-connector-mssql.

jannyHou avatar jannyHou commented on August 18, 2024

@ataft Thank you for the suggestion and investigation made. 👍

I'd make the PR and clearly it wouldn't affect any users.

And we really appreciate your help on the the code contribution 👍, will review it when ready.
Changing the returned data of executeSQL would affect all CRUD queries, if you only want to configure the result of a native query, I think you need to make the option turned off by default. And better disable it for the built-in CRUD queries.

I checked the sqlServer query runner in TypeORM, and find they also returns the result.recordset by default, sometimes returns the result.affectedRows. Just curious...could you explain more about when the raw data is needed?

from loopback-connector-mssql.

ataft avatar ataft commented on August 18, 2024

Maybe the term "raw data" is confusing. I mean return whatever object the mssql library returns. The use case is to get rowsAffected or any of the other results:
https://github.com/tediousjs/node-mssql#execute-procedure-callback

Yes, it would clearly be off by default.

from loopback-connector-mssql.

stale avatar stale commented on August 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from loopback-connector-mssql.

stale avatar stale commented on August 18, 2024

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

from loopback-connector-mssql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.