Golang equivalent of MyBatis/iBatis

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • GoMybatis

    Go ORM Library.Have Powerful Features like transaction nesting, Optimistic Lock,Logical deletion and more. like mybatis for go golang

  • In Java world there's a thing which is called MyBatis/iBatis. It's not ORM, but much lighter weight solution. It allows you to map SQL results on structures and back without complicated logic, thus reducing a lot of boilerplate. Is there anything similar for GoLang? The closest I found is sqlx. There's also Go port of MyBatis: https://github.com/zhuxiujia/GoMybatis, however, it doesn't have many stars.

  • structable

    Golang struct-to-table database mapper

  • Check this out https://github.com/Masterminds/structable

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • sqlc

    Generate type-safe code from SQL

  • I guess not the same, but have you looked at sqlc for an SQL-first alternative?

  • sqlx

    general purpose extensions to golang's database/sql

  • You can use this https://github.com/jmoiron/sqlx

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