
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
sequelize-cockroachdb
Advanced tools
This NPM package makes Sequelize compatible with CockroachDB.
Learn how to build a Node.js app with CockroachDB.
Please file bugs against the sequelize-cockroachdb project
This package needs Node.js v12 or later
First make sure you have CockroachDB installed. You can run cockroach version
to see if is installed or you can download here
Run cockroach start-single-node --insecure --logtostderr
to start the database. If this returns ERROR: cockroach server exited with error: unable to lookup hostname
run with --host localhost
flag.
Run cockroach sql --insecure
to enter in SQL mode and type CREATE DATABASE sequelize_test;
Then install the depedencies with npm i
and npm test
to run all tests
From the docs
CockroachDB guarantees that while a transaction is pending, it is isolated from other concurrent transactions with serializable isolation.
Which means that any other query made in another connection to the same node will hang.
For example:
const t = await this.sequelize.transaction();
await this.User.create({ name: "bob" }, { transaction: t });
await this.User.findAll({ transaction: null }); // Query will hang!
See tests/model_create_test.js
to browse those implementations.
FAQs
Support using Sequelize with CockroachDB.
The npm package sequelize-cockroachdb receives a total of 2,276 weekly downloads. As such, sequelize-cockroachdb popularity was classified as popular.
We found that sequelize-cockroachdb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.