When connecting to a SQL database in Node.js, the ______ method is commonly used to execute SQL queries.
- query()
- execSQL()
- runQuery()
- execute()
When connecting to a SQL database in Node.js, the query() method is commonly used to execute SQL queries. This method is provided by most SQL database libraries for Node.js and allows you to send SQL queries to the database. Options 2, 3, and 4 are not standard methods for executing SQL queries in Node.js.
Loading...
Related Quiz
- The typeof operator in JavaScript returns 'object' for ________.
- What considerations should be made when determining the expiration time of a JWT?
- When using ES6+ modules, the import statement must be at the ________ of the file.
- You are developing a suite of unit tests for a service that interacts with an external API. How would you employ mocking and stubbing to ensure the tests are isolated and reliable?
- How can you send JSON data as a response using the http module in Node.js?