Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@dvo/batch-query
Advanced tools
A small tool that formats a query and an array or parameters into a batch query.
This tool is meant to merge a mySQL query and a data array into a formatted query that does what it needs in batch. For example, the query
let query =
'REPLACE INTO common_surnames
(america, spain, korea)
VALUES
(?,?,Kim)'
could be combined with data like
let data = [
['Johnson', 'Gutierrez'],
['Lee', 'Pança'],
['McDonald', 'Plata']
]
when called with batchQuery( query, data )
to produce the results
let formattedQuery =
'REPLACE INTO common_surnames
(america, spain, korea)
VALUES
(Johnson,Gutierrez,Kim),
(Lee,Pança,Kim),
(McDonald,Plata,Kim)'
FAQs
A small tool that formats a query and an array or parameters into a batch query.
We found that @dvo/batch-query demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.