# @z1/preset-feathers-server-sql

> Documentation under construction.

Latest version **0.5.35** (published 2024-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @z1/preset-feathers-server-sql
pnpm add @z1/preset-feathers-server-sql
yarn add @z1/preset-feathers-server-sql
bun add @z1/preset-feathers-server-sql
```

## 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.5.35 |
| Published | 2024-04-23 |
| First published | 2019-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | nubuck |

## Links

- npm: https://www.npmjs.com/package/@z1/preset-feathers-server-sql
- Repository: https://github.com/Nubuck/z1-core/tree/master/presets/feathers-server-sql
- npm.io page: https://npm.io/package/@z1/preset-feathers-server-sql

## Dependencies (13)

- [pg](https://npm.io/package/pg.md) ^8.7.1
- [knex](https://npm.io/package/knex.md) ^2.4.2
- [mysql2](https://npm.io/package/mysql2.md) ^3.3.3
- [core-js](https://npm.io/package/core-js.md) ^3.6.3
- [sqlite3](https://npm.io/package/sqlite3.md) ^5.1.6
- [tedious](https://npm.io/package/tedious.md) ^16.1.0
- [pg-hstore](https://npm.io/package/pg-hstore.md) ^2.3.4
- [sequelize](https://npm.io/package/sequelize.md) ^5.21.2
- [feathers-knex](https://npm.io/package/feathers-knex.md) ^8.0.1
- [better-sqlite3](https://npm.io/package/better-sqlite3.md) ^9.4.3
- [feathers-sequelize](https://npm.io/package/feathers-sequelize.md) ^6.1.0
- [source-map-support](https://npm.io/package/source-map-support.md) 0.4.3
- [regenerator-runtime](https://npm.io/package/regenerator-runtime.md) ^0.13.3

## Recent versions

- 0.5.35 (latest) — 2024-04-23
- 0.5.14 — 2023-06-01
- 0.5.8 — 2023-04-25
- 0.5.7 — 2021-12-27
- 0.5.1 — 2021-10-21
- 0.5.0 — 2021-06-06
- 0.4.46 — 2021-01-28
- 0.4.5 — 2020-02-03
- 0.4.0 — 2020-01-28
- 0.3.0 — 2019-12-11
- 0.2.5 — 2019-05-29
- 0.2.2 — 2019-05-28
- 0.2.1 — 2019-05-28
- 0.2.0 — 2019-05-28

## README

# Z1 Preset Feathers Server SQL

Documentation under construction.

## Dependencies
 - [sequelize](https://sequelize.org/)
 - [sqlite3](https://github.com/mapbox/node-sqlite3)
 - [feathers-knex](https://github.com/feathersjs-ecosystem/feathers-knex)
 - [feathers-sequelize](https://github.com/feathersjs-ecosystem/feathers-sequelize)
 - [knex](https://knexjs.org/)
 - [mysql](https://github.com/mysqljs/mysql#readme)
 - [mysql2](https://github.com/sidorares/node-mysql2#readme)
 - [pg](https://github.com/brianc/node-postgres)
 - [pg-hstore](https://github.com/scarney81/pg-hstore)

## Usage

### Install

```
yarn add @z1/preset-feathers-server-sql
```

### Import
```JavaScript
import {  
  Knex,
  FeathersKnex,
  Sequelize,
  FeathersSequelize
} from '@z1/preset-feathers-server-sql'
```

### Example
```Javascript

var knex = Knex({
  client: 'mysql',
  connection: {
    host : '127.0.0.1',
    user : 'your_database_user',
    password : 'your_database_password',
    database : 'myapp_test'
  }
});

app.use(`/${path}`, FeathersKnex(
  { Model, name, id, events, paginate })
)

const sequelize = new Sequelize('sqlite::memory:');

app.use(`/${path}`, FeathersSequelize(
  { Model, id, events, paginate })
)




```

---
_Source: https://npm.io/package/@z1/preset-feathers-server-sql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
