This commit is contained in:
@@ -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"
|
||||
];
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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('_'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user