Tag

sqlx

0 views collected around this technical thread.

Go Programming World
Go Programming World
May 21, 2024 · Backend Development

Comprehensive Guide to Using sqlx with Go for Database Operations

This article provides an in‑depth tutorial on the sqlx package for Go, covering installation, type design, database connection methods, query execution, named parameters, transaction handling, prepared statements, unsafe scanning, field‑mapping customization, and practical code examples to simplify working with relational databases.

DatabaseGoSQL
0 likes · 23 min read
Comprehensive Guide to Using sqlx with Go for Database Operations
360 Tech Engineering
360 Tech Engineering
Aug 2, 2019 · Backend Development

Idiomatic Query Building in Go: From GORM to a Custom Builder

The article explores the challenges of using GORM for layered query complexity in Go, compares it with sqlx, and proposes an idiomatic, extensible query‑builder design using functional options, complete with example implementations for SELECT, WHERE, and helper functions.

GoGormSQL
0 likes · 11 min read
Idiomatic Query Building in Go: From GORM to a Custom Builder