Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alviner/drillerfy
Go Database Testing Simplified
https://github.com/alviner/drillerfy
database database-migrations go golang migrations postgresql testing toolkit
Last synced: 27 days ago
JSON representation
Go Database Testing Simplified
- Host: GitHub
- URL: https://github.com/alviner/drillerfy
- Owner: Alviner
- License: mit
- Created: 2024-01-24T10:02:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-10T05:10:14.000Z (4 months ago)
- Last Synced: 2024-07-10T07:18:10.826Z (4 months ago)
- Topics: database, database-migrations, go, golang, migrations, postgresql, testing, toolkit
- Language: Go
- Homepage: https://pkg.go.dev/github.com/Alviner/drillerfy
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Drillerfy: Go Database Testing Simplified
[![CI](https://github.com/Alviner/drillerfy/actions/workflows/ci.yml/badge.svg)](https://github.com/Alviner/drillerfy/actions/workflows/ci.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/Alviner/drillerfy.svg)](https://pkg.go.dev/github.com/Alviner/drillerfy)
[![Go Report Card](https://goreportcard.com/badge/github.com/Alviner/drillerfy)](https://goreportcard.com/report/github.com/Alviner/drillerfy)## 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
```(bash)
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](https://github.com/kvesteri/sqlalchemy-utils)
[Example](examples/tempdb/main.go)
### 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](examples/migoose/main.go)
## 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](https://github.com/Alviner).
Contributions from the community are appreciated.## Repo activity
![Alt](https://repobeats.axiom.co/api/embed/480a84c4a38844d8a0a6524f1a5665d3706d96d2.svg "Repobeats analytics image")