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
20082026
-
…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 -
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.
comment by pdyc · 2023-09-02 · in Open-sourcing SQX, a way to build flexible database models in Go -
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!
comment by matthewmueller · 2022-07-02 · in Show HN: Copper – A Go framework for your projects -
…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 -
…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
comment by ethanpailes · 2021-09-09 · in How We Went All In on sqlc/pgx for Postgres and Go -
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…
comment by robmccoll · 2021-09-08 · in How We Went All In on sqlc/pgx for Postgres and Go -
…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
comment by eatonphil · 2020-05-27 · in Supabase (YC S20) – An open source Firebase alternative -
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.
comment by shrumm · 2020-05-25 · in Show HN: PgTyped – Typesafe SQL in TypeScript and Postgres -
…which is definitely a plus if you're a gopher 1: https://www.cockroachlabs.com/tags/acid/ 2: https://github.com/xo/xo
comment by smnscu · 2017-11-14 · in ACID transactions in a globally distributed database -
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 -
…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!
comment by jalfresi · 2017-06-20 · in Macaron: a high productive and modular web framework in Go -
…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
comment by kenshaw · 2016-06-26 · in What ORMs have taught me: just learn SQL (2014) -
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 -
…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