Title: doc: show the use of string expressions in the SQLTagStore example by schliepa · Pull Request #60873 · nodejs/node · GitHub
Open Graph Title: doc: show the use of string expressions in the SQLTagStore example by schliepa · Pull Request #60873 · nodejs/node
X Title: doc: show the use of string expressions in the SQLTagStore example by schliepa · Pull Request #60873 · nodejs/node
Description: Slight edit to the example shown for the database.createTagStore API. Showing the get query with a string instead of a number to demonstrate correct usage of the template literals in combination with string expressions. Reason for this change: Because strings in SQL queries are usually enclosed in quotation marks: "SELECT * FROM users WHERE name = 'Alice'" Users may be tempted to enclose them in quotation marks in the template literals used for the SQLTagStore API: const user = sql.get`SELECT * FROM users WHERE name = '${name}'`; This would lead to a incorrect SQL query (which might actually fail quietly). The correct form is to leave the quotation marks out: const user = sql.get`SELECT * FROM users WHERE name = ${name}`;
Open Graph Description: Slight edit to the example shown for the database.createTagStore API. Showing the get query with a string instead of a number to demonstrate correct usage of the template literals in combination wi...
X Description: Slight edit to the example shown for the database.createTagStore API. Showing the get query with a string instead of a number to demonstrate correct usage of the template literals in combination wi...
Opengraph URL: https://github.com/nodejs/node/pull/60873
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1144ccae-7feb-e4ab-0c42-ba74313401a0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ECC2:10FBE0:A35F9E:E51768:6A4C9F7D |
| html-safe-nonce | 974655cea8b51b9cd548d2e75d57aeb724d2caf3d3aa2ad0926210d90b6d10a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0MyOjEwRkJFMDpBMzVGOUU6RTUxNzY4OjZBNEM5RjdEIiwidmlzaXRvcl9pZCI6IjExODg3NDY5Nzk2NTc0MjQ3NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6b08e8f3e2417ca97102df2ca2f2a0fd0fb455ab3e56d4bd6ef367591c46d183 |
| hovercard-subject-tag | pull_request:3051608054 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/60873/files |
| twitter:image | https://avatars.githubusercontent.com/u/15910117?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15910117?s=400&v=4 |
| og:image:alt | Slight edit to the example shown for the database.createTagStore API. Showing the get query with a string instead of a number to demonstrate correct usage of the template literals in combination wi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width