cpaczek / knex-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create CRDB in a docker container

docker volume create roach-single
docker run --name=roach-single -p 26257:26257 -p 8080:8080 -v "roach-single:/cockroach/cockroach-data" cockroachdb/cockroach:latest start-single-node --insecure

Get an SQL shell

docker exec -it roach-single ./cockroach sql --url="postgresql://root@127.0.0.1:26257/defaultdb?sslmode=disable"

Run the test

node ./index.js cockroachdb // run using cockroach db
node ./index.js sqlite // run using sqlite

About


Languages

Language:JavaScript 100.0%