nodeboot-starter-persistence-sql
Installation
SKILL.md
@nodeboot/starter-persistence — SQL/relational flavour
Load ../nodeboot-starter-persistence/SKILL.md first
for the shared basics (@EnableRepositories(), @DataRepository, transactions). This skill covers
what's specific to a relational persistence.type (any TypeORM SQL dialect).
Fresh start or existing app?
Read ../_shared/fresh-vs-existing.md first, then apply it
here:
- Fresh start:
npx degit nodejs-boot/node-boot/samples/sample-express my-app— this is the canonical SQL reference sample (usesbetter-sqlite3, but the entity/repository/migration code is dialect-agnostic; onlypersistence.<dialect>config changes for Postgres/MySQL/etc). - Existing app: check
persistence.typeinapp-config.yaml— if it's any value other thanmongodb(e.g.postgres,mysql,better-sqlite3,sqlite,mssql, ...) and/or the app has asrc/persistence/migrations/folder, it's already on the SQL flavour.