# asmund-db

> Asmund - Database Module

Latest version **1.1.0** (published 2017-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install asmund-db
pnpm add asmund-db
yarn add asmund-db
bun add asmund-db
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-11-19 |
| First published | 2017-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Guillermo Lopez |
| Maintainers | glopezep |

## Links

- npm: https://www.npmjs.com/package/asmund-db
- Repository: https://www.github.com/glopezep/asmund
- npm.io page: https://npm.io/package/asmund-db

## Dependencies (8)

- [pg](https://npm.io/package/pg.md) ^7.3.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [has-flag](https://npm.io/package/has-flag.md) ^2.0.0
- [inquirer](https://npm.io/package/inquirer.md) ^3.3.0
- [pg-hstore](https://npm.io/package/pg-hstore.md) ^2.3.2
- [sequelize](https://npm.io/package/sequelize.md) ^4.10.0
- [asmund-utils](https://npm.io/package/asmund-utils.md) ^1.0.0
- [sequelize-import](https://npm.io/package/sequelize-import.md) ^1.2.1

## Recent versions

- 1.1.0 (latest) — 2017-11-19
- 1.0.0 — 2017-09-23

## README

# asmund-db

Asmund Database Module

## Usage

```js
const Db = require('asmund-db')

const options = {
  database: 'asmunddb',
  username: 'root',
  password: 'mypass',
  host: 'localhost',
  dialect: 'postgres',
  pool: {
    max: 10,
    min: 0,
    idle: 10000
  }
}

const db = new Db(options)

db.getUsers().then(users => {
  // do something with users
}).catch(err => {
  // do something with err
})
```

Or using callback

```js
db.getUsers((err, users) => {
  if (err) {
    // do something with err
  }
  // do something with users
})
```

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