Hacker GitHub

← All repos

jmoiron/sqlx

View on GitHub ↗ ★ 17,743 Go

general purpose extensions to golang's database/sql

37 mentions on Hacker News by 32 people: 0 stories, 37 comments · first 2014-01-26 · latest 2026-07-31

Mentions per year 37 mentions · busiest year 2014 (8)
20082026
  1. …add iterator API for database/sql results this decade too (something like my pull request for sqlx https://github.com/jmoiron/sqlx/pull/990 but maybe more polished)
  2. …ground is libraries that give you nicer ergonomics around SQL without hiding it (like Golangs sqlx https://github.com/jmoiron/sqlx ). Engineers should be writing SQL, period. The blog suggests that an ORM for OLAP would do exactly that
    comment by oatsandsugar · 2025-08-17 · in Does OLAP Need an ORM
  3. …ground is libraries that give you nicer ergonomics around SQL without hiding it (like Golangs sqlx https://github.com/jmoiron/sqlx ). Engineers should be writing SQL, period.
    comment by ram_rar · 2025-08-17 · in Does OLAP Need an ORM
  4. We've always used https://github.com/jmoiron/sqlx which is just the standard package + mapping to/from structs.
    comment by rowanseymour · 2023-08-14 · in Python: Just Write SQL
  5. …struct tags https://sqlc.dev/ for generated models based on SQL (skip the whole idea of an ORM) https://github.com/jmoiron/sqlx for more traditional object population from SQL https://pkg.go.dev/errors for an understanding of wrapping…
  6. …(it's archived, but it's easy code to write) to help with sql query generation, and use github.com/jmoiron/sqlx for easier scanning. I guess it's a little trickier when trying to use postgres specific commands, but we haven't run into man
  7. There is sqlx for that: https://github.com/jmoiron/sqlx
  8. sqlx (1) is probably the closest thing to a tradition ORM that operates this way ^1: https://github.com/jmoiron/sqlx
    comment by badrequest · 2019-11-08 · in Go Turns 10
  9. I wasn't happy with the current database access packages ( https://github.com/jmoiron/sqlx , https://gorm.io ), so I wrote my own for PostgreSQL. It takes existing queries and generates type-safe Go methods (…
    comment by conroy · 2019-11-08 · in Go Turns 10
  10. …also prevent SQL Injection. sqlx seems to be quite popular but sqlz could do with some love. [1] https://github.com/jmoiron/sqlx [2] https://github.com/ido50/sqlz
    comment by pritambarhate · 2019-11-08 · in Security assessment techniques for Go projects
  11. For me it doesn't get more seamless than github.com/jmoiron/sqlx No frills, just a little reflection to tie struct fields <=> SQL params.
  12. …Without going through everything in detail, why would I pick this over the very popular sqlx? https://github.com/jmoiron/sqlx
  13. …also come across squirrel[2] too, though I haven't used it, it does look rather interesting. [1] - https://github.com/jmoiron/sqlx [2] - https://github.com/masterminds/squirrel
    comment by bkq · 2019-05-07 · in To ORM or Not to ORM
  14. I believe that sqlx for go is amazing in bridging the gap between orm and plain SQL! https://github.com/jmoiron/sqlx
    comment by jakoblorz · 2018-09-01 · in I don't want to learn your query language
  15. …where you roll your own on top of tightly scoped libraries. [0]: https://echo.labstack.com/ [1]: https://github.com/jmoiron/sqlx
  16. …. I don't use ORM, I use https://github.com/Masterminds/squirrel for query building and https://github.com/jmoiron/sqlx which helps deals with row<=>struct conversion. For database migrations, I use https://github.com/rubenv/sql-migrate ,…
  17. …(see their README). For talking with my DB, I just use sqlx (and sqlmock in my unit tests). https://github.com/jmoiron/sqlx https://github.com/DATA-DOG/go-sqlmock
  18. …[1] http://www.gorillatoolkit.org/ [2] https://github.com/gobuffalo/buffalo [3] https://github.com/jmoiron/sqlx [4] https://github.com/jinzhu/gorm [5] https://github.com/golang/go/wiki/SQLDrivers
  19. …isn't the kind of answer you were hoping for.) [1] https://github.com/julienschmidt/httprouter [2] https://github.com/jmoiron/sqlx [3] https://github.com/gorilla/websocket
  20. …[3] https://github.com/flosch/pongo2 [4] https://github.com/CloudyKit/jet [5] https://github.com/jmoiron/sqlx [6] https://github.com/jinzhu/gorm [7] https://github.com/volatiletech/sqlboiler [8] https://github.com/gobuffalo/buffalo
  21. …Metrics - https://github.com/prometheus/client_golang/prometheus SQL helper - https://github.com/jmoiron/sqlx OpenTracing - https://github.com/opentracing/opentracing-go
  22. …use https://github.com/Masterminds/squirrel or https://github.com/elgris/sqrl with database/sql or https://github.com/jmoiron/sqlx
  23. …level structure, while go-kit helped me better understand good project structure. https://github.com/jmoiron/sqlx https://github.com/go-kit/kit
    comment by Stoids · 2017-06-01 · in Ask HN: Good Go codebases to read?
  24. Check out https://github.com/vattle/sqlboiler . I prefer the STD lib usually. Also, look at https://github.com/jmoiron/sqlx for easier struct mapping.
    comment by sethammons · 2017-02-17 · in Go 1.8 Release Notes
  25. …Go. The only other 3rd party package I routinely use is sqlx. http://www.gorillatoolkit.org/pkg/mux https://github.com/jmoiron/sqlx
  26. If you are doing plain SQL in your golang app, I highly encourage you to check out sqlx: https://github.com/jmoiron/sqlx It has features like directly unpacking the results of a query into a structure. Very handy.
    comment by ansible · 2016-11-10 · in Seven years of Go
  27. …having to buy into a complexity risk. It's worth a look. [1] https://github.com/markbates/pop [2] https://github.com/jmoiron/sqlx [3] https://github.com/markbates/pop/tree/master/fizz
  28. Have you looked at https://github.com/jmoiron/sqlx It's a nice little wrapper around database/sql that offers some of the things you talk about.
  29. sqlx ( https://github.com/jmoiron/sqlx ) is my go-to as well. mgutz/dat ( https://github.com/mgutz/dat ) and dbr ( https://github.com/gocraft/dbr ) are also more ORM-like alternatives if that's what you need—query builders with the option…
    comment by elithrar · 2015-09-03 · in Porting Flask to Go – Jinja2 to Pongo2
  30. …have been happily using this for a few months on a personal project. I really recommend looking at https://github.com/jmoiron/sqlx which is a library extending database/sql to simplify going from query->struct/slice and it also allows for…
  31. …CRUD operations / queries ( https://github.com/jinzhu/gorm ) * sqlx - for more complex queries ( https://github.com/jmoiron/sqlx ) * apns - push notifications ( https://github.com/anachronistic/apns ) * gingorelic - New Relic integration (…
    comment by nathan_f77 · 2014-11-19 · in Swift and Go: Building a Fast Future
  32. I've found that https://github.com/jmoiron/sqlx (mentioned in the slides) works very well for SQL and mapping values to structs in Go. It's not an ORM though. You still write plain parameterized SQL queries, but mapping results to structs…
  33. …(with a keen understanding of its current shortcomings). [0] http://gin-gonic.github.io/gin/ [1] https://github.com/jmoiron/sqlx [2] https://github.com/jmoiron/modl
    comment by themartorana · 2014-09-03 · in Django 1.7 Released
  34. …on the database driver set on parse--and leans on the stdlib. This would tie in nicely with https://github.com/jmoiron/sqlx and its struct tag/marshaling behaviour. Access could be handled by a map[string]string, with the key as the…
    comment by elithrar · 2014-08-04 · in What ORMs have taught me: just learn SQL
  35. …Writing a little SQL never hurt anyone, and Go's SQL package is pretty good. Personally, I like http://github.com/jmoiron/sqlx - you have to write SQL statements still (I consider that a good thing), but it removes the boilerplate of…
  36. …It should be MUCH easier to make basic queries to SQL and get out results. I can highly recommend https://github.com/jmoiron/sqlx which allows you to easily unpack results into structs/maps, or pass in a struct/map and insert it (using…
    comment by elithrar · 2014-01-27 · in A RESTful Micro-Framework in Go
  37. …but it's an extension to sql that removes some of the most annoying boilerplate nevertheless. 1 = https://github.com/jmoiron/sqlx
    comment by carbocation · 2014-01-26 · in A RESTful Micro-Framework in Go