Skip to main content
Archery database drivers back the shared Model API with four storage strategies; you will choose a disk, migrate models, and supply each driver’s dependencies.

Register migrations

The repository provides provider classes that migrate its bundled models during application boot.
example/main.dart
For your own model, call the matching driver migration with its constructor. SQL drivers also accept column definitions.

Select a driver

lib/src/http/routes/users.dart
SQLite and Postgres connections are registered during application boot from db.sqlite and db.pgsql configuration. S3 requires a registered S3Client and reads its storage configuration through AppConfig.
Use the correct identifier type for the selected driver. File and S3 lookups use UUID strings, while SQLite and Postgres lookups use integer IDs.