go-sqlmock

Mock

A tool to simulate SQL driver behavior in Go tests without needing a real database connection.

Sql mock driver for golang to test database interactions

GitHub

6k stars
48 watching
407 forks
Language: Go
last commit: 3 months ago
Linked from 2 awesome lists

databasegogolangmocksqlsql-drivertddtesting

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
go-sql-driver/mysql A MySQL driver library for Go's database/sql package 14,580
volatiletech/sqlboiler An ORM generator that creates a Go-based data access layer from an existing database schema. 6,776
jmoiron/sqlx An extension to Go's standard database/sql library, adding features like parameterized queries and row marshaling. 16,405
data-dog/go-txdb A single transaction-based SQL driver package that provides an isolated testing environment for databases. 676
mattn/go-sqlite3 A C-based driver that provides an interface to SQLite databases using the Go language. 8,093
godror/godror A Go driver for connecting to Oracle Database using the OCI wrapper 538
apache/cassandra-gocql-driver A fast and robust Cassandra client for the Go programming language 2,595
doug-martin/goqu An expressive SQL builder and executor for Go 2,424
clickhouse/clickhouse-go A Golang driver for the ClickHouse database system 2,931
masterminds/squirrel A fluent SQL generator for Go that builds queries from composable parts and executes them directly. 7,053
vektra/mockery Automated code generation tool for creating mock interfaces in Go 6,215
xujiajun/godbal A Go library for building and executing SQL queries with a focus on simplicity and ease of use. 59
xxjwxc/gormt Automates conversion of MySQL database to Go structs using GORM 2,372
minus5/gofreetds A Go driver for interacting with Microsoft SQL Server databases 113
ydb-platform/ydb-go-sdk A pure Go native and database/sql driver for YDB 145