@nireno/reasonably-typed

Experimenting with some bucklescript bindings for nodejs packages I use.


Keywords
BuckleScript
License
MIT
Install
npm install @nireno/reasonably-typed@0.18.1

Documentation

reasonably-typed

Experimenting with some bucklescript bindings for nodejs packages I use.

Get started

let (instance, logger) = Pino.make();
logger.info("Hello");

See tests and examples for more.

Testing - Setup postgres session store database

sudo -s -u postgres
createuser --pwprompt throwaway
createdb --owner throwaway throwaway
psql --host 127.0.0.1 -U throwaway -d throwaway

CREATE TABLE "session" (
  "sid" varchar NOT NULL COLLATE "default",
	"sess" json NOT NULL,
	"expire" timestamp(6) NOT NULL
)
WITH (OIDS=FALSE);

ALTER TABLE "session" ADD CONSTRAINT "session_pkey" PRIMARY KEY ("sid") NOT DEFERRABLE INITIALLY IMMEDIATE;

CREATE INDEX "IDX_session_expire" ON "session" ("expire");