This repository holds the architecture decision records of drizzle-orm. A record says what the team decided, why, and which options it did not take. Coding agents read the records before they change the code, and people can read them to learn why the code works the way it does.
Each folder holds the records of one part of the drizzle-orm repository:
drizzle-orm/: thedrizzle-ormpackage and decisions that affect the whole repository.drizzle-kit/: thedrizzle-kitpackage.postgres/: the Drizzle Postgres driver.
A record is one Markdown file named NNNN-short-title.md. Each folder has its own numbers. A record names another record of the same folder as ADR NNNN. A record in another folder is named by its folder and number, for example drizzle-kit/0005.
- Take the next free number in the folder.
- Start with a
# Titlethat states the decision as a sentence. The first paragraphs say what was decided and why. - Add
## Considered optionswith the options that the team did not take and the reason for each. - Add
## Consequenceswith what changes because of the decision. - Use plain Markdown links. Obsidian also understands them.
- Open a pull request.
Two branches can take the same number. The check workflow fails when two records of one folder share a number. If it fails after you update your branch, give your record the next free number.
Do not change the decision of an existing record. When a new decision replaces a record, the new record says which record it replaces, and the old record gets this front matter:
---
status: superseded by ADR-NNNN
---