sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

general purpose extensions to golang's database/sql

Results 155 sqlx issues
Sort by recently updated
recently updated
newest added

Hi, I'm not a prolific contributor, but I found this method to be missing on the transaction struct. I could just use a prepare query yes, but for consistency i...

Similar to db.lastsql ,THK SQLX 如何打印输出最终执行的SQL语句用于调试,类似 db.lastsql,谢谢

How can i mock below. ` stmt, err := Service.PrepareNamed(`INSERT INTO sample (right_id,created_by) VALUES (:right_id,:created_by) returning id`) if err != nil { return err, 0 } var id int64 err...

This PR is to improve the error message returned by sqlx when a named bind parameter name is empty. Example: `SELECT * FROM person WHERE id=:id -- TODO: Improve stuff`...

It looks like the unit tests for this project require installing host level db instances. That's reasonable given the projects inception date. However, I think there are better alternatives available....

Based on https://github.com/jmoiron/sqlx/pull/847, but fixed an issue that optional pointer fields are not handled correctly. > Nested structs are now only instantiated when one of the database columns in that...

requires attention

Following usual go idioms, it would be helpful in the documentation to mark objects that can safely be used concurrently from multiple goroutines. As far as I know, only `sqlx.DB`...

Tools: |-----| | go 1.21 | | github.com/gorilla/schema v1.2.1 | | github.com/jmoiron/sqlx v1.3.5 | I'm currently getting an error when using named parameters for my Azure SQL Database. Contrived, but...