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