{"repo":"go-sqlex/sqlex","free":true,"listed":false,"github":"https://github.com/go-sqlex/sqlex","clone":"git clone https://github.com/go-sqlex/sqlex.git","description":"A drop-in modernization of jmoiron/sqlx that fixes lexer bugs, automates IN expansion, and adds pluggable hooks — built for Go 1.21+.","language":"Go","stars":55,"topics":["mysql","postgresql","sqlx","databases","sql","sqlserver"],"license":"MIT","category":"databases-storage","readme_excerpt":"English 中文 sqlex A drop-in replacement for jmoiron/sqlx — 100% API-compatible, with added Hook aspects, generic JSON types, bug fixes, and more. sqlex is fully API-compatible with sqlx. All sqlx methods ( Get , Select , Exec , NamedQuery , Preparex , etc.) work identically. Migrating takes 30 seconds — just change the import path. New features are purely additive and optional. What you get for free after migrating: - 🚀 Auto-Rebind — write ? everywhere, works on PostgreSQL ( $1 ), MySQL ( ? ), SQLite ( ? ), SQL Server ( @p1 ). No more manual db.Rebind() . Including Preparex . - 🐛 SQL parsing fixes — colons in strings, :: type casts, ? in comments are correctly handled. Silent bugs from sqlx are gone. - 🎯 Unified interfaces — Ext / ExtContext / NamedExt / BindExt / Preparer / PreparerContext with compile-time checks. Write func f(ext NamedExt) and pass DB, Tx, or Conn. - 🔀 Auto IN expansion — slices in IN (?) detected and expanded automatically on all methods. - 🪝 Hook system — pluggable SQL interceptors for logging, tracing, metrics (onion model), with both global and per-call granularity. - 📦 JSONValue[T] — generic JSON column type with auto serialize/deserialize. - 🛡️ StrictMode — lenient by default (matching sqlx Unsafe() ), optionally strict for debugging. - 🛠️ 20+ bug fixes — data corruption, panics, silent data loss, and cross-database failures from jmoiron/sqlx, all fixed. See Critical Bug Fixes. → Migration Guide Installation Requires Go 1.21 or later. Migratio","default_branch":null,"files":null,"tree":[],"storefront":"/r/go-sqlex","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/go-sqlex/sqlex/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}