You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also want to say there's a way to put MySQL into a mode where it accepts the $1, $2, ... style prepared statement parameters, but I can't find it. Maybe I'm imagining that.
Hope this helps.
I'll keep this open and think about implementing a MySQL syntax this weekend.
Can this module build a MySQL query?
example:
{ type: 'select',
table: 'some_table',
where: { id: { '$gt': 1 } }
}
pg: {
text: 'select "some_table".* from "some_table" where "some_table"."id" > $1',
values: [ 1 ]
}
but can i receive MySQL query?
mysql: {
text: 'select
some_table
.* fromsome_table
wheresome_table
.id
> ?',values: [ 1 ]
}
if not .. can i replace $n values in query? thanks for help
The text was updated successfully, but these errors were encountered: