Skip to content

Alviner/drillerfy

Repository files navigation

Drillerfy: Go Database Testing Simplified

CI Go Reference Go Report Card

Overview

Drillerfy is a Go package designed to simplify database testing. It provides a streamlined approach for setting up and tearing down databases, making it easier to test Go applications that interact with databases.

Features

  • Easy setup and teardown of databases.
  • Easy migrations stairway tests.
  • Support for multiple database engines.

Installation

go get github.com/Alviner/drillerfy

Usage

Database Module

Provides functionality to easily create and drop databases. This is particularly useful in testing environments where you need to set up a fresh database instance for each test run and clean it up afterward.

Inspired by sqlalchemy-utils

Example

Migrations Module

Provides functionality to easily run stairway tests for migrations via goose Provider. This module simplifies the process of applying and reverting database schema changes, which is essential in maintaining consistent database states for testing.

Example

Contributing

Contributions to Drillerfy are welcome. Please read the contributing guidelines in the repository for instructions on how to submit pull requests, report issues, and suggest enhancements.

License

Drillerfy is released under the MIT License. See the LICENSE file in the repository for full license text.

Authors

Drillerfy was created and is maintained by Alviner. Contributions from the community are appreciated.

Repo activity

Alt