awesome-go-sql

module
v0.0.0-...-78dbd8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: MIT

README

awesome-go-sql

Actual example use cases for a curated list of golang sql builder/generator/scanner/helper libraries

Summary

For static queries, try sqlc.

For dynamic queries, try go-sqlbuilder, squirrel, or jet to craft the SQL string and args slice, then use scany or ksql to run the query and scan to a struct/slice.

Completed Examples

No libraries besides database drivers
Model/SQL/Function Generators
SQL Builders
Struct Scanners

Ran Into Problems

Directories

Path Synopsis
cmd
goqu
Build and run some queries using the goqu library.
Build and run some queries using the goqu library.
goqu/pgx
Build and run some queries using the goqu library.
Build and run some queries using the goqu library.
jet
Build and run some queries using the Jet generator library.
Build and run some queries using the Jet generator library.
jet/pgx
Build and run some queries using the Jet generator library.
Build and run some queries using the Jet generator library.
ksql
Build and run some queries using the KSQL library.
Build and run some queries using the KSQL library.
pgx
Build and run some queries using the pgx package (the latest and most popular golang postgres driver).
Build and run some queries using the pgx package (the latest and most popular golang postgres driver).
scan
Build and run some queries using the scan library.
Build and run some queries using the scan library.
scany
Build and run some queries using the Scany library.
Build and run some queries using the Scany library.
sq
Build and run some queries using the sq and sqddl libraries.
Build and run some queries using the sq and sqddl libraries.
sqlbuilder
Build and run some queries using the sqlbuilder library.
Build and run some queries using the sqlbuilder library.
sqlc
Build and run some queries using the SQLC generator library.
Build and run some queries using the SQLC generator library.
sqlx
Build and run some queries using the SQLX library.
Build and run some queries using the SQLX library.
squirrel
Build and run some queries using the Squirrel library.
Build and run some queries using the Squirrel library.
stdlib
Build and run some queries using the standard library database/sql package, using the latest postgres driver.
Build and run some queries using the standard library database/sql package, using the latest postgres driver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL