An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# SQL-Snap

[![Build Status](https://travis-ci.org/ImOverlord/sql-snap.svg?branch=master)](https://travis-ci.org/ImOverlord/sql-snap) [![npm version](https://badge.fury.io/js/sql-snap.svg)](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 ...)