diesel_cli_ext
diesel_cli_ext copied to clipboard
It contains different code generation (not rust codegen) cli tools that may help your life with Diesel easier.
Aims to fix #61
Working with the following schema: ```rust // @generated automatically by Diesel CLI. diesel::table! { customers (id) { id -> Int4, #[max_length = 50] name -> Varchar, } } ``` #...
Replacing the default `assert_eq` with the one from [pretty assertions](https://crates.io/crates/pretty_assertions) makes it easier to analyze test case errors. Before:  After: 
I had some problems with the `propercase` function converting my table `series` to a struct with the name `Sery`. This PR makes it possible to bypass the `propercase` function by...
I run `diesel_ext -m > src/models.rs`, and print errror: ``` thread 'main' panicked at 'index not found', /Users/intfish/.cargo/registry/src/index.crates.io-6f17d22bba15001f/diesel_cli_ext-0.3.10/src/main.rs:187:33 ```
I am using diesel 2.0.2. Considering I have a table named `article`, the outputted `table_name` when used with `--add-table-name` option is string, eg. `#[diesel(table_name = "article")]`. But it should actually...
Run the command to generate `schema.rs` ``` diesel print-schema --database-url=mysql://root:root@localhost/test > src/schema.rs ``` In the generated `src/schema.rs` file, type alias `Bigint` used as `BigInt` in `diesel::sql_types::*`, then in the .proto...
``` warning: #[table_name] attribute form is deprecated = help: use `#[diesel(table_name = coin_transaction)]` instead ``` I'm getting this all over my project, I guess the macro has changed, but I'm...
Thanks for this great crate! Currently this generates: ``` #[derive(Queryable, Debug, Identifiable)] #[primary_key(key)] pub struct Setting { pub key: String, pub value: Jsonb, } ``` for: ``` table! { settings...
Please make it work with this: ```rust pub mod foo { table! { ... } } ``` Currently, it panics: > thread 'main' panicked at 'index out of bounds: the...