diesel_cli_ext icon indicating copy to clipboard operation
diesel_cli_ext copied to clipboard

It contains different code generation (not rust codegen) cli tools that may help your life with Diesel easier.

Results 18 diesel_cli_ext issues
Sort by recently updated
recently updated
newest added

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: ![image](https://github.com/abbychau/diesel_cli_ext/assets/125314669/8b84b0e2-c6ed-49c5-8336-2876b6a34451) After: ![image](https://github.com/abbychau/diesel_cli_ext/assets/125314669/7c4fd746-5dae-4836-b3cd-51982e6726e4)

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...

Published

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...

Published

Please make it work with this: ```rust pub mod foo { table! { ... } } ``` Currently, it panics: > thread 'main' panicked at 'index out of bounds: the...

Published