3

go 每一个数据库库使用起来都不太方便,有木有

 1 year ago
source link: https://www.v2ex.com/t/905265
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Go 编程语言

go 每一个数据库库使用起来都不太方便,有木有

  fxjson · 11 小时 0 分钟前 via Android · 2082 次点击

感觉没有一个方便好用的库,每一个都有使用的痛点,gorm 查询返回 error 中记录不存在也会返回 error,导致每处的查询的 error 都要做是不是记录不存在的特殊判断;sqlx 原生 sql,比较喜欢,又没有单表增删改查的封装,也很通。不知道大家有木有这样的感觉,有没有推荐的库


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK