Go Tool: (exploring) sqlc (Part 1)

This page summarizes the projects mentioned and recommended in the original post on dev.to

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. sqlx

    general purpose extensions to golang's database/sql

    This time it was related to speeding up our development (and testing!) workflow when using PostgreSQL as a persistent datastore. For context, we have been successfully using database/sql and jmoiron/sqlx, and both can get the work done but I'm always trying to find better tools to improve what we have. I've been doing this investigation for a few months already, and I did find some packages and tools, but because of the amount of options I haven't really had time to try them all. In the end what I'm looking for is tools/packages that:

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. pgx

    PostgreSQL driver and toolkit for Go

    jackc/pgx PostgreSQL driver and toolkit for Go

  4. pq

    Pure Go Postgres driver for database/sql

    This driver has been on my radar for months already, I actually used it for the blog series Implementing Complex Pipelines in Go, the cool thing about pgx is that it also implements the interface types defined in database/sql so replacing what we have (which uses lib/pq) should be, in theory, not that difficult.

  5. migrate

    Database migrations. CLI and Golang library.

    golang-migrate/migrate Database migrations. CLI and Golang library.

  6. sqlc

    Generate type-safe code from SQL

    kyleconroy/sqlc Generate type safe Go from SQL

  7. Squirrel

    Fluent SQL generation for golang

    Masterminds/squirrel Fluent SQL generation for golang

  8. dockertest

    Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

    ory/dockertest Write better integration tests! Dockertest helps you boot up ephemeral docker images for your Go tests with minimal work

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. factory_bot

    A library for setting up Ruby objects as test data.

    I will continue exploring sqlc as well as the other tools/packages mentioned above, another thing I'm also investigating is something similar to factory_bot for speeding up the default values required when testing PostgreSQL-related methods.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • [Question] Working with databases/storing data in Go applications.

    4 projects | /r/golang | 29 Jan 2022
  • Golang equivalent of MyBatis/iBatis

    4 projects | /r/golang | 3 Jul 2023
  • Does sqlc/sqlx support MS-SQLServer? All examples for sqlc with postgres and mysql

    2 projects | /r/golang | 23 Feb 2023
  • Question about inserting date into MySQL?

    1 project | /r/golang | 15 Nov 2022
  • Creating an API using Go and sqlc

    5 projects | dev.to | 24 Oct 2022