Hacker GitHub

← All repos

xo/dbtpl

View on GitHub ↗ ★ 3,899 Go

Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server

16 mentions on Hacker News by 13 people: 2 stories, 14 comments · first 2016-02-10 · latest 2024-09-09

Mentions per year 16 mentions · busiest year 2016 (5)
20082026
  1. …I added support for a bunch of postgres fancy stuff in a previous app, it wasn’t too difficult https://github.com/xo/xo
    comment by llimllib · 2024-09-09 · in Sqlc: Compile SQL to type-safe code
  2. i like xo's approach https://github.com/xo/xo but it is as is. I would love if something similar comes along that is used by db practititoners that is actively used and supported.
  3. I think an ORM like https://github.com/xo/xo with https://sqlc.dev/ as a fallback for complex queries will be a killer combo!
  4. …models and persistence? I haven't worked out all the details, but it's going to be some blend of https://github.com/xo/xo and https://sqlc.dev/ . Design goals: 1. High-level, type-safe "ORM" that's generated from your database schema. 2.…
    comment by matthewmueller · 2022-05-14 · in Show HN: A Full-Stack Web Framework for Go
  5. …I could definitely have missed one). Also the article is missing a few more tools in this space. https://github.com/xo/xo . https://github.com/gnormal/gnorm . [1]: https://github.com/opendoor/pggen [2]: https://github.com/jschaf/pggen
  6. I've used https://github.com/xo/xo , extended it with some custom functions for templating, extended the templates themselves, and can now generate CRUD for anything in the database, functions for common select queries based on the indices…
  7. …as a long-term base for rapidly building any sort of db-based applications in the future. [0] https://github.com/xo/xo [1] https://github.com/volatiletech/sqlboiler
  8. Looks a little like the Typescript equivalent of Xo ( https://github.com/xo/xo ) for Go. Especially with Go, getting help with some initial scaffolding can be a huge timesaver. I'm assuming it's a similar gain for Typescript.
  9. …which is definitely a plus if you're a gopher 1: https://www.cockroachlabs.com/tags/acid/ 2: https://github.com/xo/xo
  10. We use XO ( https://github.com/knq/xo ) and JSON-To-Go ( https://mholt.github.io/json-to-go/ )
    comment by brownmenace · 2017-09-22 · in Go: Ten years and climbing
  11. …In the past I've had great success with XO, which will generate Go code from an existing DB Schema: https://github.com/knq/xo It's really very good!
  12. …had time to do that. That said, it is very easy and very straightforward to do so. Check it out: https://github.com/knq/xo
  13. ▲ 5
    XO: Generate Go types and funcs from a database schema
    story by vruiz · 2016-06-17 · 0 comments
  14. We released a tool for generating Go types/funcs for databases/queries that might help you with this: https://github.com/knq/xo (FWIW I completely agree the added mental overhead for ORMs are not necessary)
    comment by kenshaw · 2016-05-14 · in Qb: Database toolkit for Go
  15. ▲ 3
    Xo: command line tool to generate idiomatic Go code for SQL databases
    story by kenshaw · 2016-03-08 · 1 comment
  16. …sprung up: JSON: https://mholt.github.io/json-to-go/ CURL: https://mholt.github.io/curl-to-go/ SQL: https://github.com/knq/xo The JSON tool especially has saved me a lot of time.
    comment by lspears · 2016-02-10 · in Convert curl commands to Go code