SQLC 覆盖 Bool 类型 PostgreSQL

sqlc 覆盖 bool 类型 postgresql

php小编西瓜为您带来关于SQLC覆盖Bool类型PostgreSQL的介绍。SQLC是一个强大的SQL查询构建器,它可以方便地与各种数据库进行交互。在使用PostgreSQL时,SQLC提供了对Bool类型的覆盖支持,使得我们可以更灵活地处理和查询布尔值。通过SQLC,我们可以轻松地在PostgreSQL中进行布尔值的增删改查操作,提高开发效率并简化代码编写过程。无论是初学者还是有经验的开发者,都可以通过SQLC轻松地操作PostgreSQL中的布尔类型数据。

问题内容

我正在使用 sqlc,并且我的 yaml 配置文件包含 postgresql 的以下类型覆盖:

gen: go: emit_json_tags: true package: "hmdb" out: "hmdb" overrides: - db_type: "hstore" nullable: true go_type: "github.com/jackc/pgtype.hstore" - db_type: "text" nullable: true go_type: import: "gopkg.in/guregu/null.v4" package: "null" type: "string" - db_type: "timestamptz" nullable: true go_type: import: "gopkg.in/guregu/null.v4" package: "null" type: "time"登录后复制