fix errors
All checks were successful
checks / checks (push) Successful in 3m58s

This commit is contained in:
2025-10-01 14:03:16 +04:00
parent 67b0033158
commit b9dd0399ed
4 changed files with 14 additions and 9 deletions

View File

@@ -44,7 +44,11 @@
craneLib = (crane.mkLib pkgs).overrideToolchain (
p:
p.rust-bin.nightly.latest.default.override {
extensions = [ "llvm-tools-preview" ];
extensions = [
"llvm-tools-preview"
"rust-analyzer"
"rust-src"
];
}
);

View File

@@ -82,7 +82,7 @@ impl DiscoveryFilterConfig {
&& !table.starts_with("seaql_migrations")
})
} else {
Box::new(move |table: &String| (include_hidden || !table.starts_with('_')))
Box::new(move |table: &String| include_hidden || !table.starts_with('_'))
}
}
}

View File

@@ -10,13 +10,13 @@ pub enum EntityFormat {
Compact,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
#[serde(untagged)]
pub enum TableConfig {
Specific { specific: Vec<String> },
Exclude { exclude: Vec<String> },
}
// #[derive(Debug, Clone, Serialize, Deserialize)]
// #[serde(rename_all = "snake_case")]
// #[serde(untagged)]
// pub enum TableConfig {
// Specific { specific: Vec<String> },
// Exclude { exclude: Vec<String> },
// }
#[derive(Debug, Clone)]
pub enum SerdeEnable {

View File

@@ -74,6 +74,7 @@ impl Module for SeaOrmModule {
) {
let writer_context = EntityWriterContext::new(
config.entity.format.is_expanded(),
true,
config.prelude.clone().into(),
config.serde.enable.clone().into(),
false,