# into_query_derive ### Disclaimer _This crate is intended to be used only via the `derive` feature on [into_query](https://crates.io/crates/into_query). This documentation is verbatim copied from into_query_ ## Usage ```rust #[derive(IntoQuery)] #[table_name = "whateverlol"] pub struct Filter { foo: Option, bar: Option>, baz: Option>, } ``` ## Features `mysql`, `postgres`, `sqlite`: Set the backend to be used by the query builder ## Attributes `table_name`: *required* ``` schema::::dsl:: ``` `schema_prefix`: *optional* (default: `crate`) ``` ::schema::::dsl ``` For example, if your project was structured as ``` src │ main.rs └───db └───schema.rs ``` and your table was "cats" ```rust #[derive(IntoQuery)] #[table_name = "cats"] #[schema_prefix = "crate::db"] struct CatOptions { .. }