Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pgsql array #37

Merged
merged 14 commits into from
Sep 18, 2024
Merged

Pgsql array #37

merged 14 commits into from
Sep 18, 2024

Conversation

Soar360
Copy link
Member

@Soar360 Soar360 commented Sep 18, 2024

#33

Soar360 and others added 14 commits September 11, 2024 12:07
[fet]新增 ValidHelper 用于类型转换
重构并扩展 ValidHelper 类的方法

重构了 `ToStringArray` 方法为通用的 `ToArray<T>` 方法,并添加了 `converter` 参数用于类型转换。删除了原有的 `ToStringArray` 方法,改为调用新的 `ToArray<T>` 方法。新增了多个类型转换方法,如 `ToInt32Array`、`ToInt64Array`、`ToDoubleArray` 等,这些方法都调用了 `ToArray<T>` 方法。此外,新增了 `ToEnum<T>` 和 `ToObject<T>` 方法,用于将对象转换为枚举类型和指定的引用类型。
空数组时,使用 '{}' 代替 ARRAY[] 。用于抑制以下报错
42P18: cannot determine type of empty array
[fix]pgsql在拼接 Upsert 语句时多输出了逗号。
@Soar360 Soar360 merged commit c1a9c59 into master Sep 18, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant