feat(database/gdb): add `time` field type for value converting for/from field
Convert Time based on fieldType
@gqcn 移除gtime的driver.Valuer 接口实现,使用ConvertValueForField中的类型匹配规则进行序列化
@gqcn 移除的 接口实现,使用中的类型匹配规则进行序列化
gtime``driver.Valuer``ConvertValueForField
我觉得没啥必要加这个接口,用Scan和Value和标准库一样,就可以
@gqcn 移除的 接口实现,使用中的类型匹配规则进行序列化
gtimedriver.ValuerConvertValueForField我觉得没啥必要加这个接口,用Scan和Value和标准库一样,就可以
没加接口了啊,新加的接口移除掉了
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@gqcn removed the interface implementation, use the type matching rules in serialization
gtimedriver.ValuerConvertValueForFieldI don’t think there is any need to add this interface. Just use Scan and Value the same as the standard library.
No interfaces are added. The newly added interfaces have been removed.
我觉得不应该移除 gtime.Time 的 driver.Valuer 接口实现,
如果项目使用的是其他 orm,如 gorm,而字段类型又是 gtime.Time,可能会导致无法序列化为数据库中对应的类型。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I think the driver.Valuer interface implementation of gtime.Time should not be removed,
If the project uses other ORM, such as gorm, and the field type is gtime.Time, it may not be serialized to the corresponding type in the database.
@gqcn 这个ci失败看着不像我这边的问题,我没改gview
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@gqcn This CI failure doesn’t look like a problem on my side. I didn’t change gview.
@gqcn 这个ci失败看着不像我这边的问题,我没改gview
可能是github服务故障导致的:
https://www.githubstatus.com/incidents/kz4khcgdsfdv
试试重新运行一下 action
@niluan304 怎么重新Action
Quality Gate passed
Issues
5 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
2.5% Duplication on New Code
@gqcn 不看看了吗
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@gqcn Don’t you want to take a look?