https://github.com/imoverlord/sql-snap
Tool for Running SQL Statements in Test Suites
https://github.com/imoverlord/sql-snap
functional-testing jest sql sql-snap
Last synced: about 1 month ago
JSON representation
Tool for Running SQL Statements in Test Suites
- Host: GitHub
- URL: https://github.com/imoverlord/sql-snap
- Owner: ImOverlord
- Created: 2020-02-07T16:04:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T07:49:33.000Z (over 3 years ago)
- Last Synced: 2024-04-24T04:29:25.995Z (about 2 years ago)
- Topics: functional-testing, jest, sql, sql-snap
- Language: JavaScript
- Homepage:
- Size: 597 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL-Snap
[](https://travis-ci.org/ImOverlord/sql-snap) [](https://badge.fury.io/js/sql-snap)
## Install
SQL-Snap is available on [NPM](https://www.npmjs.com/package/sql-snap).
```bash
$ npm i -D sql-snap
```
## Concept
Sql-Snap is a simple tool to excute SQL Statement. What makes it usefull is that you can use for Functional Testing an API that neeks to mock database information.
With Snap you can set a test sql file, and the run statement before each Tests.
Currently Sql-Snap only supports *pgSQL*, and *sqlite*, but you can easily create a new dialect for any sql provider you want.
## RoadMap
* Add more dialect (mysql, mssql ...)