If there are multiple databases at the same time,
Any Query must specify database,
Cannot use Datebase.dafault directly.
// if not using Datebase.dafault
struct Amodel: Model { }
// every time using find / findAll / save / update .... need put using parameter
// even always same property
Amodel.find(id: 1, using: Database.abc) { model, error in
// do somrthing
}
But
Model is mean the record struct in the specific table and specific database.
We allow Model specify table,
Why not let Model specify Database?
Description
If there are multiple databases at the same time, Any Query must specify database, Cannot use
Datebase.dafault
directly.But Model is mean the record struct in the specific table and specific database. We allow Model specify table, Why not let Model specify Database?