Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了 go bun 的问题。我正在开发一个具有现有 PostgreSQL 数据库的项目。在一个表中有一个字段名称是isDriver,我定义这样的架构
isDriver
IsDriver bool `bun:"isDriver"`
但我收到一个错误:
ERROR #42703 column "isdriver" does not exist
我认为面包使这个领域变得更小。有没有办法解决这个问题?
注意:其他微服务也使用相同的数据库。所以我无法更改数据库字段名称。