Skip to content

Ability to generate parameterized queries/prepared statements #138

@mwozniczak

Description

@mwozniczak

Hi, I was looking into this library during a refactor of a legacy, jquery-based frontend. This one looks pretty similar to one of the components there, but I can't seem to find the functionality that would output a parameterized query, that would be safer to execute, similar to what the original does here (search for 'question_mark' to see what I mean, specifically)

I need to be able to get the query in a format similar to something like

{
  sql: 'author LIKE ? AND publish_date BETWEEN ? AND ?',
  params: ['%Tolkien%', '1954/01/01', '1956/01/01']
}

Can this library do something like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions