SQL example Updated 2025-07-16
We have some runnable SQL examples with assertion under the sequelize/raw directory.
These examples are written in the Sequelize library using raw queries.
Sequelize is used minimally, just to feed raw queries in transparently to any underlying database, and get minimally parsed results out for us, which we then assert with standard JavaScript. The queries themselves are all written by hand.
By default the examples run on SQLite. Just like the examples from sequelize example, you can set the database at runtime as:
Here we list only examples which we believe are standard SQL, and should therefore work across different SQL implementations:
SQL function Updated 2025-07-16
SQL keyword Updated 2025-07-16
SQL standard Updated 2025-07-16
A quick look at PostgreSQL's compliance notes: www.postgresql.org/docs/13/features.html shows the complete utter mess that this standard is. Multiple compliance levels that no one fully implements and optional features everywhere.
SQL feature Updated 2025-07-16