On GitHub, sequelize/sequelize-sscce has picked up 48 stars, TypeScript. Base repository for creating and sharing Sequelize SSCCEs
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Use this repository to create an SSCCE for your issue! It will greatly help us figure out what is going wrong and your issue
will be much easier to investigate.
Method 1: Create your SSCCE locally (preferred)
Step 1 - Install this repository locally
Start by Forking this repository,
then clone it on your machine.
Run npm install or yarn to install the necessary dependencies.
Step 1 - Create the SSCCE
You now need to create a failing test that accurately represents the issue you're experiencing.
If you want to test against Sequelize 6, modify src/sscce-sequelize-6.ts.
If you want to test against Sequelize 7, modify src/sscce-sequelize-7.ts.
If you are using a version older than Sequelize 6, unfortunately these versions are now EOL and won't receive support.
You should consider migrating to Sequelize 6.
Remember the SSCCE rules. It should be:
Short (Small) - It should not include anything that is not relevant to your issue.
Self Contained - Ensure everything is included, ready to go.
Correct - It should demonstrate the problem you're encountering (i.e. the sscce should fail, but with the right error).
Example - Displays the problem we are trying to solve.
Step 2 - Run the SSCCE
Use one of our npm scripts to run your SSCCE.
Running with a dialect other than sqlite will require installing an extra package
& having a database running. For convenience, we provide docker containers for each database.
You can also opt to open a pull request, and run the code directly in our CI.
sqlite
The easiest of the bunch. Simply run:
npm run test:sqlite
postgres
You'll need to install the pg package and have a postgres database running.
# Do this only once.
npm install pg
# or
npm install pg-native
# if you need to use DataTypes.HSTORE, you also need this dependency
npm install pg-hstore
# Start the postgres database using docker.
# Requires docker. You can also run your own database if you prefer.
npm run start:postgres
# run the sscce!
npm run test:postgres
# or
npm run test:postgres-native
# Remember to stop the docker container once you're done.
npm run stop:postgres
mariadb
# Do this only once.
npm install mariadb
# Start the mariadb database using docker.
# Requires docker. You can also run your own database if you prefer.
npm run start:mariadb
# run the sscce!
npm run test:mariadb
# Remember to stop the docker container once you're done.
npm run stop:mariadb
mysql
# Do this only once.
npm install mysql2
# Start the mysql database using docker.
# Requires docker. You can also run your own database if you prefer.
npm run start:mysql
# run the sscce!
npm run test:mysql
# Remember to stop the docker container once you're done.
npm run stop:mysql
mssql (SQL Server)
# Do this only once.
npm install tedious
# Start the mssql database using docker.
# Requires docker. You can also run your own database if you prefer.
npm run start:mssql
# run the sscce!
npm run test:mssql
# Remember to stop the docker container once you're done.
npm run stop:mssql
Step 3 - Commit your SSCCE & sent it to us
Open an issue on the main sequelize repo describing
your problem and include a link to your SSCCE in it.
You can also open a PR of your fork to this repository,
this way your SSCCE will be run on our CI and will continue existing even if you delete your fork.
Method 2: Create your SSCCE on GitHub
By using this method, you won't have to worry about setting up any database.
You don't need to install anything, you don't need docker, you don't need to spend time configuring a development environment to create your SSCCE.
Everything is already set up for you in our GitHub actions.
You just write your code and it works, directly from GitHub!
Step 1 - Create the SSCCE
If you want to test against Sequelize 6, go to this file: src/sscce-sequelize-6.ts.
If you want to test against Sequelize 7, go to this file: src/sscce-sequelize-7.ts.
Then click the edit button (a pencil).
Since this is not your repository, a fork will be automatically created for you to perform your edit. You will see this message:
Just create your SSCCE in that file, and commit it to your fork:
Step 2 - Run your SSCCE with GitHub Actions
This step is extremely easy. Now that you have commited your SSCCE to your fork, just open a Pull Request (don't worry, I won't accept it!):
The idea here is that once you open the pull request, GitHub Actions will automatically execute it for you, since I have it configured in the main repository. I won't accept the pull request, since the goal is just to have your code executed.
It will run your SSCCE and show a green checkmark (or a red X) next to the commit:
FAQ
What if you want to make some changes to the SSCCE?
Just add more commits on top of it, in your fork, and your PR will be updated automatically, and the SSCCE will be executed again.
I don't want to open a pull request for this
You don't have to! If you've opted for method 1, you can just add a link to your forked repository in your issue.
However, opening a pull request will ensure the SSCCE continues to exist even if you delete your fork. Less clutter in your repository list!
Creating a dialect-specific SSCCE
By default, your SSCCE will be executed on all dialects. If you only want a specific dialect,
you can remove dialects you don't need to test on from the testingOnDialects variable in your sscce-sequelize-x.ts file.
For example, if you only want to run your SSCCE for postgres, change the following line:
// if your issue is dialect specific, remove the dialects you don't need to test on.
export const testingOnDialects = new Set(['mssql', 'sqlite', 'mysql', 'mariadb', 'postgres', 'postgres-native']);
to this:
// if your issue is dialect specific, remove the dialects you don't need to test on.
export const testingOnDialects = new Set(['postgres']);
Enabling specific postgres extensions
If your issue needs a postgres extension such as uuid-ossp, you should enable it at the beginning of your SSCCE:
export async function run() {
const sequelize = createSequelize6Instance();
// add it here, after createSequelizeInstance:
await sequelize.query(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp"`);
// The rest of the SSCCE goes here...
}
License
MIT (c) Pedro Augusto de Paula Barbosa & The Sequelize Team
How active is development on sequelize/sequelize-sscce?
The most recent commit recorded on sequelize/sequelize-sscce was 7 months ago, based on the GitHub push timestamp. The repository has 347 forks — one of the better signals of community interest.
How many stars does sequelize/sequelize-sscce have?
sequelize/sequelize-sscce has 48 GitHub stars — refresh the page for the live number, or check github.com/sequelize/sequelize-sscce. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What language is sequelize/sequelize-sscce written in?
sequelize/sequelize-sscce is written primarily in TypeScript. GitHub's language field is based on the largest share of bytes in the default branch.
What license does sequelize/sequelize-sscce use?
sequelize/sequelize-sscce is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
What topics is sequelize/sequelize-sscce associated with?
GitHub's repository topics for sequelize/sequelize-sscce: "sequelize", "sequelize-sscce", "sscce". TopGit's editorial category is open-source.
Where can I see sequelize/sequelize-sscce in action?
The project maintains a homepage at https://sequelize.org/. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about sequelize/sequelize-sscce?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/sequelize/sequelize-sscce is the definitive source.
Read full README in the tab above.
Is sequelize-sscce worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of sequelize-sscce.