# sqlite-conn

> connection to sqlite database

Latest version **1.0.1** (published 2018-08-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install sqlite-conn
pnpm add sqlite-conn
yarn add sqlite-conn
bun add sqlite-conn
```

## 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.0.1 |
| Published | 2018-08-06 |
| First published | 2018-08-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stanislaw Olejnik |
| Maintainers | ztach |
| Keywords | sqlite, connections |

## Links

- npm: https://www.npmjs.com/package/sqlite-conn
- npm.io page: https://npm.io/package/sqlite-conn

## Dependencies (1)

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

## Recent versions

- 1.0.1 (latest) — 2018-08-06
- 1.0.0 — 2018-08-06

## README

# sqlite-conn

Connect to sqlite3 database and save select queries to JSON format.

### Installation

sqlite-conn requires sqlite3 to run.

Install the dependencies and devDependencies and start the server.

```sh
$ npm install -sqlite-conn
```
#### Example
For production environments...
database is exampl from sqlite3 page.
```sh
const sqlite3 = require('sqlite3').verbose();
const fs = require('fs');
const dr = require('sqlite-conn');

//file .json to save the result of the sql query
const file = "OneValue.json";

//database file
const mdb = '../../baza/chinook.db';

//sql queries
var sql = 'SELECT distinct FirstName,LastName,InvoiceDate,Total,invoiceId,CustomerId FROM InvoicesTrackCustomerVw WHERE CustomerId = 25';

dr.saveDataToJson(mdb,sql,file);
```
###### the end

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