diesel-derive-enum icon indicating copy to clipboard operation
diesel-derive-enum copied to clipboard

Use enums with Diesel ORM

Results 13 diesel-derive-enum issues
Sort by recently updated
recently updated
newest added

I added your crate and did the config in: https://github.com/air-balloon/api/commit/b5ec7ce8d7c514d62b6bef97dee9034fbede4acb Summary of the problems: - It does generate a schema with `account_status -> Enum,` that does not work - I...

I've come up with a clever design pattern that simplifies the dilemma of making accessible types within schema.rs Instead of listing all `import_types` within diesel.toml as mapping to individual crates,...

The following code: ```rust #[derive(Debug, diesel_derive_enum::DbEnum, diesel::SqlType)] pub enum A {} ``` will lead to compiler warning: ``` warning: unreachable expression --> src/lib.rs:1:17 | 1 | #[derive(Debug, diesel_derive_enum::DbEnum, diesel::SqlType)] |...

Hi! In my code I think I have an issue with renaming of nullable enum values, so I figured I try running your tests and maybe extending them. However I...

I think compiletest can be used to check e.g. that the derive will fail if the enum is not fieldless

Every time DBEnum is used, an error "could not find `sql_types` in `schema`" appears. **My config:** - `diesel = { version = "2.0.0", features = ["postgres", "r2d2", "chrono", "uuid", "serde_json"]...

Since the release of diesel 2.0.0, I've been anxious to see this lib getting updated. I've tried master against diesel 2 with a big project I have and everything seems...

`#[derive(QueryId)]` will be provided as a default config parameter in the diesel.toml config, so we should not manage it on our end anymore. This is a breaking change, so we...

Add `DontImplCloneOnSqlType` attribute. Because, if schema definitions are separated into other crate, implementing Clone for ExistingType will happen compile error. cf. https://github.com/adwhit/diesel-derive-enum/issues/93

I have the following table: ```rust pub mod sql_types { #[derive(diesel::query_builder::QueryId, diesel::sql_types::SqlType)] #[diesel(postgres_type(name = "result_t"))] pub struct ResultT; } diesel::table! { use diesel::sql_types::*; use super::sql_types::ResultT; jobs (id) { id ->...