# halifier-sequelize

> sequelize adapters for halifier library

Latest version **0.0.6** (published 2017-04-21) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install halifier-sequelize
pnpm add halifier-sequelize
yarn add halifier-sequelize
bun add halifier-sequelize
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-04-21 |
| First published | 2017-03-02 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | The Experimentalist |
| Maintainers | disjunction |

## Links

- npm: https://www.npmjs.com/package/halifier-sequelize
- Repository: https://github.com/disjunction/halifier-sequelize
- Homepage: https://github.com/disjunction/halifier-sequelize#readme
- Issues: https://github.com/disjunction/halifier-sequelize/issues
- npm.io page: https://npm.io/package/halifier-sequelize

## Dependencies (1)

- [ramda](https://npm.io/package/ramda.md) ^0.23.0

## Recent versions

- 0.0.6 (latest) — 2017-04-21
- 0.0.4 — 2017-03-27
- 0.0.3 — 2017-03-24
- 0.0.2 — 2017-03-09
- 0.0.1 — 2017-03-02

## README

# halifier-sequelize

extension of halifier containing extra functionality
and helpers for integration with sequelize

## Features

* generation of HAL responses based on sequelize models
* building SQL queries based on `_listMeta` object
* a ready-to-go controller bound with sequelize model and providing basic HAL interface for fetching single or a list of entities

## Install

```
npm install --save halifier-sequelize
```

## Usage

```javascript
const sequelize = someFunction(/* setup connection, define models */)

const app = require('express')()

// halifier expects app dependencies to be injected into app.context
// as if it were koa
app.context = {sequelzie}

const {SequelizeHalController} = require('halifier-sequelize')

const peopleController = new SequelizeHalController(app, {
  model: sequilize.model('Human')
})
app.use('/people', peopleController.expressRouter())
```

---
_Source: https://npm.io/package/halifier-sequelize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
