You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i ran into an issue with sqlite.
the generated struct needs #[diesel(check_for_backend(diesel::sqlite::Sqlite))] attribute to compile and it seems there is no way to set it right now
i figured it would be pretty awesome to have the possibility to add any attribute we want to our generated structs
inside my fork its already implemented and works like the following:
i ran into an issue with sqlite.
the generated struct needs
#[diesel(check_for_backend(diesel::sqlite::Sqlite))]
attribute to compile and it seems there is no way to set it right nowi figured it would be pretty awesome to have the possibility to add any attribute we want to our generated structs
inside my fork its already implemented and works like the following:
diesel_ext.exe --import-types "crate::schema::*" --derive "AsChangeset, Insertable, Queryable, Selectable, Debug" --struct-attribute "#[diesel(check_for_backend(diesel::sqlite::Sqlite))]" --add-table-name --model > src/database/src/models.rs
The text was updated successfully, but these errors were encountered: