# fast-database

> A small SQLite wrapper

Latest version **2.0.5** (published 2021-09-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install fast-database
pnpm add fast-database
yarn add fast-database
bun add fast-database
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2021-09-19 |
| First published | 2021-01-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aleks1123 |
| Maintainers | aleks1123 |
| Keywords | db, discord-bot-db |

## Links

- npm: https://www.npmjs.com/package/fast-database
- Repository: https://github.com/Aleks-1123/fast-database
- Homepage: https://github.com/Aleks-1123/fast-database#readme
- Issues: https://github.com/Aleks-1123/fast-database/issues
- npm.io page: https://npm.io/package/fast-database

## Dependencies (1)

- [better-sqlite3](https://npm.io/package/better-sqlite3.md) ^7.1.2

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 2.0.5 (latest) — 2021-09-19
- 2.0.4 — 2021-09-19
- 2.0.3 — 2021-09-19
- 2.0.2 — 2021-09-19
- 2.0.1 — 2021-09-19
- 1.0.2 — 2021-06-24
- 1.0.1 — 2021-05-25
- 1.0.0 — 2021-01-06

## README

<h1 align="center">Welcome to fast-database 👋</h1>
<p>
  <img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
  <a href="https://github.com/Aleks-1123/fast-database#readme" target="_blank">
    <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
  </a>
  <a href="https://github.com/Aleks-1123/fast-database/graphs/commit-activity" target="_blank">
    <img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" />
  </a>
  <a href="https://github.com/Aleks-1123/fast-database/blob/master/LICENSE" target="_blank">
    <img alt="License: ISC" src="https://img.shields.io/github/license/Aleks-1123/fast-database" />
  </a>
</p>

> A small SQLite wrapper

### 🏠 [Homepage](https://github.com/Aleks-1123/fast-database#readme)

## Install

### Windows

```sh
$ npm install windows-build-tools -g 

$ npm i node-gyp -g

$ npm install fast-database --save
```

### Linux

```sh
$ npm i node-gyp -g

$ npm install fast-database --save
```

## Using

```js
const Database = require("fast-database");

const db = new Database({
    path: "./db.sqlite", // path to database file (optional, default ./database.sqlite)
    table: "testing" // default table (optional, default master)
});

/* Basic usage */
const foo = db.get("foo");
console.log(foo) // null
const operation = db.set("foo", "bar");
console.log(operation) // true
const newFoo = db.get("foo");
console.log(newFoo) // bar

/* Using tables */

db.table("foo");

const operation = db.set("foo", "bar");
console.log(operation) // true
const newFoo = db.get("foo");
console.log(newFoo) // bar

const newFooFromOtherTable = db.table('bar').get('foo');
console.log(newFooFromOtherTable); // null !
```

## Author

👤 **Aleks1123**

* Website: http://aleks.ovh
* Github: [@Aleks-1123](https://github.com/Aleks-1123)

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2021 [Aleks1123](https://github.com/Aleks-1123).<br />
This project is [ISC](https://github.com/Aleks-1123/fast-database/blob/master/LICENSE) licensed.

***

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