sqlx is a Go library that extends the standard database/sql package without replacing its underlying interfaces or programming model. Its database, transaction, statement, connection, and related types remain supersets of their standard-library equivalents. This allows existing database/sql applications to adopt additional functionality with relatively little restructuring. Query results can be mapped directly into structs, embedded structs, maps, and slices. Named parameters and named prepared statements simplify queries that would otherwise rely entirely on positional bind variables. Convenience methods such as Get and Select reduce boilerplate when retrieving single records or collections, while additional helpers support expanded queries and driver-specific binding behavior.

Features

  • Struct, map, and slice query-result mapping
  • Embedded struct scanning support
  • Named SQL parameters
  • Named prepared statements
  • Get and Select query convenience methods
  • Driver-aware bind variable and query helpers

Project Samples

Project Activity

See All Activity >

Categories

Database

License

MIT License

Follow sqlx

sqlx Web Site

Other Useful Business Software
One Monitoring Tool for IT, OT and Cloud | Free Trial Icon
One Monitoring Tool for IT, OT and Cloud | Free Trial

Vendor-agnostic monitoring across on-prem servers, cloud platforms and OT devices, all in one dashboard. No more tool sprawl.

Modern infrastructure spans data centers, cloud platforms and factory floors, and every blind spot between them is a risk. PRTG supports SNMP, WMI, SSH and other standard protocols to monitor IT, OT and hybrid environments through one customizable dashboard. Build the views your team needs, from network health to application performance, without switching tools. Try PRTG free for 30 days now.
Try PRTG Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of sqlx!

Additional Project Details

Programming Language

Go

Related Categories

Go Database Software

Registered

2026-09-03