Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonShin committed Sep 1, 2024
1 parent 270d92c commit 50041bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ts_generator/information_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ impl DBSchema {
let table_name: String = row.get(3);
let enum_values: Option<Vec<String>> = row.try_get(4)
.ok()
.map(|val: String| {
let parts = val.split(",");
let parts = parts.map(|x| x.to_string()).collect::<Vec<String>>();
return parts
});
println!("checking enum values {:?} {:?} {:?}", field_name, field_type, enum_values);
.map(|val: String| val
.split(",")
.map(|x| x.to_string())
.collect()
);

let field = Field {
field_type: TsFieldType::get_ts_field_type_from_postgres_field_type(field_type.to_owned(), field_name.to_owned(), table_name, enum_values),
is_nullable: is_nullable == "YES",
Expand Down

0 comments on commit 50041bc

Please sign in to comment.