This commit is contained in:
@@ -44,7 +44,11 @@
|
|||||||
craneLib = (crane.mkLib pkgs).overrideToolchain (
|
craneLib = (crane.mkLib pkgs).overrideToolchain (
|
||||||
p:
|
p:
|
||||||
p.rust-bin.nightly.latest.default.override {
|
p.rust-bin.nightly.latest.default.override {
|
||||||
extensions = [ "llvm-tools-preview" ];
|
extensions = [
|
||||||
|
"llvm-tools-preview"
|
||||||
|
"rust-analyzer"
|
||||||
|
"rust-src"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ impl DiscoveryFilterConfig {
|
|||||||
&& !table.starts_with("seaql_migrations")
|
&& !table.starts_with("seaql_migrations")
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Box::new(move |table: &String| (include_hidden || !table.starts_with('_')))
|
Box::new(move |table: &String| include_hidden || !table.starts_with('_'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ pub enum EntityFormat {
|
|||||||
Compact,
|
Compact,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
// #[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "snake_case")]
|
// #[serde(rename_all = "snake_case")]
|
||||||
#[serde(untagged)]
|
// #[serde(untagged)]
|
||||||
pub enum TableConfig {
|
// pub enum TableConfig {
|
||||||
Specific { specific: Vec<String> },
|
// Specific { specific: Vec<String> },
|
||||||
Exclude { exclude: Vec<String> },
|
// Exclude { exclude: Vec<String> },
|
||||||
}
|
// }
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum SerdeEnable {
|
pub enum SerdeEnable {
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ impl Module for SeaOrmModule {
|
|||||||
) {
|
) {
|
||||||
let writer_context = EntityWriterContext::new(
|
let writer_context = EntityWriterContext::new(
|
||||||
config.entity.format.is_expanded(),
|
config.entity.format.is_expanded(),
|
||||||
|
true,
|
||||||
config.prelude.clone().into(),
|
config.prelude.clone().into(),
|
||||||
config.serde.enable.clone().into(),
|
config.serde.enable.clone().into(),
|
||||||
false,
|
false,
|
||||||
|
|||||||
Reference in New Issue
Block a user