{"library":"ffc-database","type":"library","category":null,"description":"ffc-database is an npm module developed by DEFRA, providing a structured utility layer for database interactions within FFC services. It is built upon the Sequelize ORM, abstracting common setup and model loading patterns. The module simplifies connecting to SQL databases (e.g., PostgreSQL, as shown in examples) by taking a configuration object, dynamically loading Sequelize models from a specified filesystem path, and exposing the connected Sequelize instance and loaded models. The current stable version is 1.0.24. While specific release cadence is not provided, its versioning and association with government services suggest a focus on stability and compatibility within its ecosystem. Its key differentiator lies in its opinionated, service-centric wrapper around Sequelize, streamlining database access for specific internal FFC applications.","language":"javascript","status":"active","version":"1.0.24","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ffc-database","imports":["const Base = require('ffc-database')","const dbBase = new Base(config);\nconst db = dbBase.connect();\n// Access sequelize instance:\ndb.sequelize.authenticate();","const dbBase = new Base(config);\nconst db = dbBase.connect();\n// Access models by their defined name (e.g., 'Payment'):\nawait db.Payment.findAll();"]},{"cmd":"yarn add ffc-database","imports":[]},{"cmd":"pnpm add ffc-database","imports":[]}],"homepage":null,"github":"https://github.com/DEFRA/ffc-database","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ffc-database","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ffc-database/compatibility"}}