Quiz — Database trait
Question
Confirm: 4 read methods + 3 companions + optimisations + 3 real impls.
Principle (minimum model)
- Database trait + DatabaseRef + DatabaseCommit + DatabaseAsync + CacheDB + AlloyDB + EmptyDB + StateProviderDatabase.
Worked example + steps
Quiz: did the Database trait shape stick?
Four questions covering the trait's design decisions and the read/write split. Same rule: you can't nod past a quiz.
If you miss two or more, scroll back to Building the Database trait before going on to the drill.
Summary (3 lines)
- Quiz confirms Database trait understanding.
- Get two+ wrong → re-read buildup + companions.
- Pass → drill: implement ZeroDb and watch revm read state.