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: about 2 years ago
Linked from 2 awesome lists

databasegogolangmocksqlsql-drivertddtesting

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
go-sql-driver/mysqlA MySQL driver library for Go's database/sql package14,580
volatiletech/sqlboilerAn ORM generator that creates a Go-based data access layer from an existing database schema.6,776
jmoiron/sqlxAn extension to Go's standard database/sql library, adding features like parameterized queries and row marshaling.16,405
data-dog/go-txdbA single transaction-based SQL driver package that provides an isolated testing environment for databases.676
mattn/go-sqlite3A C-based driver that provides an interface to SQLite databases using the Go language.8,093
godror/godrorA Go driver for connecting to Oracle Database using the OCI wrapper538
apache/cassandra-gocql-driverA fast and robust Cassandra client for the Go programming language2,595
doug-martin/goquAn expressive SQL builder and executor for Go2,424
clickhouse/clickhouse-goA Golang driver for the ClickHouse database system2,931
masterminds/squirrelA fluent SQL generator for Go that builds queries from composable parts and executes them directly.7,053
vektra/mockeryAutomated code generation tool for creating mock interfaces in Go6,215
xujiajun/godbalA Go library for building and executing SQL queries with a focus on simplicity and ease of use.59
xxjwxc/gormtAutomates conversion of MySQL database to Go structs using GORM2,372
minus5/gofreetdsA Go driver for interacting with Microsoft SQL Server databases113
ydb-platform/ydb-go-sdkA pure Go native and database/sql driver for YDB145