{"id":13836174,"url":"https://github.com/lyquocnam/fastify-sequelize","last_synced_at":"2025-07-10T13:32:04.250Z","repository":{"id":52201700,"uuid":"108964729","full_name":"lyquocnam/fastify-sequelize","owner":"lyquocnam","description":"Fastity plugin work with Sequelize (adapter for NodeJS -\u003e Sqlite, Mysql, Mssql, Posgres)","archived":false,"fork":false,"pushed_at":"2022-08-11T08:42:07.000Z","size":11,"stargazers_count":23,"open_issues_count":4,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-12T16:33:58.716Z","etag":null,"topics":["fastify","fastifyjs-plugin","mssql","mysql","nodejs","postgres","sequelize","sqlite"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lyquocnam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-31T08:11:18.000Z","updated_at":"2023-03-17T12:09:40.000Z","dependencies_parsed_at":"2022-09-07T08:11:09.233Z","dependency_job_id":null,"html_url":"https://github.com/lyquocnam/fastify-sequelize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyquocnam%2Ffastify-sequelize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyquocnam%2Ffastify-sequelize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyquocnam%2Ffastify-sequelize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyquocnam%2Ffastify-sequelize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyquocnam","download_url":"https://codeload.github.com/lyquocnam/fastify-sequelize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213924299,"owners_count":15657945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastify","fastifyjs-plugin","mssql","mysql","nodejs","postgres","sequelize","sqlite"],"created_at":"2024-08-04T15:00:37.401Z","updated_at":"2024-11-20T22:32:12.986Z","avatar_url":"https://github.com/lyquocnam.png","language":"JavaScript","readme":"# fastify-sequelize\n\nFastity plugin work with Sequelize (adapter for NodeJS -\u003e Sqlite, Mysql, Mssql, Posgres)\n\n## install\n\n```bash\nnpm install fastify-sequelize\n```\n\n## Usage\n\n```javascript\nconst fastify = require('fastify')()\nconst fsequelize = require('fastify-sequelize')\n\nconst sequelizeConfig = {\n    instance: 'sequelize', // the name of fastify plugin instance.\n    autoConnect: true, // auto authentication and test connection on first run\n\n    // other sequelize config goes here\n    dialect: 'sqlite',\n\n    // SQLite only\n    storage: 'path/to/db.sqlite'\n}\n\nfastify\n    .register(fsequelize, sequelizeConfig)\n    .ready()\n\nfastify.listen(3000, () =\u003e {\n  console.log('\u003e listening on port 3000')\n})\n```\n\n- `instance`: *(optional)* the name of instance will be mapped to fastify, default is `sequelize`\n- `autoConnect`: `default: true` auto authentication and test connection on first run.\n- `sequelizeConfig`: all sequelize configurations, you can see [here](http://docs.sequelizejs.com/manual/installation/getting-started.html#setting-up-a-connection).\n","funding_links":[],"categories":["\u003ch2 align=\"center\"\u003eAwesome Fastify\u003c/h2\u003e"],"sub_categories":["\u003ch2 align=\"center\"\u003eEcosystem\u003c/h2\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyquocnam%2Ffastify-sequelize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyquocnam%2Ffastify-sequelize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyquocnam%2Ffastify-sequelize/lists"}