diff --git a/Project.toml b/Project.toml index a0197f1..d58a55f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PostgresORM" uuid = "748b5efa-ed57-4836-b183-a38105a77fdd" authors = ["Vincent Laugier "] -version = "0.7.0" +version = "0.7.1" [deps] DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" diff --git a/src/Tool/Tool.jl b/src/Tool/Tool.jl index 5e387df..7701a91 100644 --- a/src/Tool/Tool.jl +++ b/src/Tool/Tool.jl @@ -79,10 +79,12 @@ function build_field_name(str_arr::Vector{String}, return field_name end -function is_vector_of_enum(coltype::String, - elttype::String, - customtypes_names::Vector{String}) - if (coltype == "ARRAY") +function is_vector_of_enum( + coltype::String, + elttype::String, + customtypes_names::Vector{<:AbstractString} +) + if (coltype == "ARRAY") if elttype[2:end] in customtypes_names # remove the leading underscore return true end @@ -107,10 +109,6 @@ function get_fieldtype_from_coltype( colname::String = "" ) - if (colname == "duration") - @info "duration coltype[$coltype]" - end - attrtype = missing customtypes_names = keys(customtypes) |> collect |> n -> string.(n)