Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/materya/quartz

Set of tools to manage a PostgreSQL database for nodejs
https://github.com/materya/quartz

Last synced: 23 days ago
JSON representation

Set of tools to manage a PostgreSQL database for nodejs

Awesome Lists containing this project

README

        

# @materya/quartz

[![NPM version][npm-image]][npm-url]
[![Dependency Status][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![codecov][codecov-image]][codecov-url]
[![License][license-image]][license-url]

A set of tools to manipulate a PosgreSQL Database for your projects,
based on [Slonik](https://github.com/gajus/slonik).

*This is an alpha project, work is still in progress.*

> **DO NOT USE IN PRODUCTION**

## Install

```
npm i -D @materya/quartz
```

## Tools

### Migrate

A simple migrations command manager

#### Usage

* Run all migrations from last applied one
```
npm run migrate -- up
```

* Reverse all migrations
```
npm run migrate -- down
```

### Seed

A simple seeds command manager

#### Usage

* Run all seeds from last applied one
```
npm run seed -- up
```

* Reverse all seeds
```
npm run seed -- down
```

## License

[GPL-3.0](LICENSE)

[npm-image]: https://img.shields.io/npm/v/@materya/quartz/latest?style=flat-square
[npm-url]: https://npmjs.org/package/@materya/quartz
[david-image]: https://img.shields.io/david/materya/quartz?style=flat-square
[david-url]: https://david-dm.org/materya/quartz
[snyk-image]: https://snyk.io/test/github/materya/quartz/badge.svg?style=flat-square
[snyk-url]: https://app.snyk.io/test/github/materya/quartz?targetFile=package.json
[codecov-image]: https://img.shields.io/codecov/c/github/materya/quartz/master.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/materya/quartz
[license-image]: https://img.shields.io/npm/l/@materya/quartz?style=flat-square
[license-url]: LICENSE