Fastify CockroachDB Plugin using Sequelize ORM
npm i fastify-cockroachdb -s
// ...Other Pluginsfastify;fastify;
||Required, the name of the database to connect to within CockroachDB.|
||Required, the name of the user to log in as within the database.|
||Optional, the password of the user to log in as. Should be empty if SSL is used.|
||Optional, the settings to be passed in to the Sequelize ORM. Should include
||Optional, used in place of default port
||Optional, any models to be declared and injected under
Any models declared should follow the following format:
name: "profiles" // Required, should match name of model in databasealias: "Profile" // Optional, an alias to inject the model asschema: schemaDefinition // Required, should match schema of model in database
schemaDefinition variable should be created according to the Sequelize Model Specification.
Licensed under GPLv3.