
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@desmart/queue-knex
Advanced tools
Knexjs connector for @desmart/queue
npm i @desmart/queue-knex
const { manager, job } = require('@desmart/queue')
const connector = require('@desmart/queue-knex')
const queue = manager(connector({
knex: knexConnectionInstance
}))
Connector can be configured by passing options object to factory function.
Available options:
knex
knex connection to dbtable [jobs]
which table should be used to store/retrieve jobsretryAfter [600]
number of seconds for which job will be lockedIn migrations/
folder you will find Knex migration file. Import/copy it to you application.
If you're planning to contribute to the package please make sure to adhere to following conventions.
npm run lint
to check if there are any linting errorsDefault test suite is using SQLite db.
It's possible to run tests against different databases.
This requires installed Docker Native.
To run tests for latest MySQL:
NODE_ENV=mysql .travis/setUp.sh
NODE_ENV=mysql npm test
NODE_ENV=mysql .travis/tearDown.sh
Available databases:
mysql
latest version of MySQLmysql5
last available version of MySQL 5postgres
latest version of Postgrespostgres9
last available version of Postgres 9We're not looking back! You are encouraged to use all features from ES6.
This package follows functional approach - if possible use pure functions, avoid classes etc.
FAQs
Knexjs connector for @desmart/queue
We found that @desmart/queue-knex 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
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.