Back to Yugabyte Db

Go drivers and ORMs

docs/content/stable/develop/drivers-orms/go/_index.md

2026.1.0.0-b252.2 KB
Original Source

Supported projects

The following projects can be used to implement Golang applications using the YugabyteDB YSQL and YCQL APIs.

ProjectDocumentation and GuidesLatest Driver VersionSupported YugabyteDB Version
YugabyteDB PGX Driver [Recommended]Documentation
Referencev42.8 and above
PGX DriverDocumentation
Referencev42.8 and above
PQ DriverDocumentation
Referencev1.10.22.6 and above
YugabyteDB Go Driver for YCQLDocumentation3.16.3
ProjectDocumentation and GuidesExample Apps
GORM [Recommended]Documentation
Hello WorldGORM App
GO-PGDocumentation

Learn how to establish a connection to a YugabyteDB database and begin basic CRUD operations by referring to Connect an app or Use an ORM.

Prerequisites

To develop Golang applications for YugabyteDB, you need the following:

  • Go

    Install the latest Go (1.16 or later) on your system.

    Run go --version in a terminal to check your version of Go. To install Go, visit Go Downloads.

  • Create a Go project

    For ease-of-use, use an integrated development environment (IDE) such as Visual Studio. To download and install Visual Studio, visit the Visual Studio Downloads page.

  • YugabyteDB cluster

    • Create a free cluster on YugabyteDB Aeon. Refer to Use a cloud cluster. Note that YugabyteDB Aeon requires SSL.
    • Alternatively, set up a standalone YugabyteDB cluster by following the steps in Install YugabyteDB.

Next step

Connect an app