We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi and thanks for the neat package. Any interest in adding support for Maps? They're nice to work with except for needing Array.from():
Array.from()
const fields = new Map() fields.set('username', username.trim()) fields.set('password', await bcrypt.hash(newPassword, 12)) ... const query = sql` INSERT INTO users ${sql.tuple(Array.from(fields.keys()).map(sql.column))} VALUES ${sql.tuple(Array.from(fields.values()))} `
I think sqlate could handle the array conversion, with a few extra checks to stay ES5-compatible. Happy to submit a PR if you think it's a good idea?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi and thanks for the neat package. Any interest in adding support for Maps? They're nice to work with except for needing
Array.from()
:I think sqlate could handle the array conversion, with a few extra checks to stay ES5-compatible. Happy to submit a PR if you think it's a good idea?
The text was updated successfully, but these errors were encountered: