Named parameters for queries #1

Open
opened 2021-03-05 14:02:44 -08:00 by ben · 0 comments
Owner

Add named parameters for queries so that users can pass an object of parameters

db.sql("UPDATE contacts SET name = ?newName WHERE name = ?oldName", {
  oldName: "Jim",
  newName: "Bob"
});
Add named parameters for queries so that users can pass an object of parameters ```javascript db.sql("UPDATE contacts SET name = ?newName WHERE name = ?oldName", { oldName: "Jim", newName: "Bob" }); ```
ben added the
enhancement
label 2021-03-05 14:02:44 -08:00
ben self-assigned this 2021-03-05 14:02:44 -08:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: n0m/PawSQLite#1
No description provided.