mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 02:48:38 +00:00
remove the need to list individual queries in database_storage
This commit is contained in:
parent
8ad5051a74
commit
c0978fede8
14 changed files with 48 additions and 160 deletions
|
@ -37,12 +37,8 @@ impl salsa::Database for DatabaseImpl {
|
|||
/// storage and also generate impls for those traits, so that you
|
||||
/// `DatabaseImpl` type implements them.
|
||||
salsa::database_storage! {
|
||||
pub struct DatabaseImplStorage for DatabaseImpl {
|
||||
impl class_table::ClassTableDatabase {
|
||||
fn all_classes() for class_table::AllClassesQuery;
|
||||
fn all_fields() for class_table::AllFieldsQuery;
|
||||
fn fields() for class_table::FieldsQuery;
|
||||
}
|
||||
pub DatabaseImpl {
|
||||
impl class_table::ClassTableDatabase;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue