# lambdadb

> This package is a client for the [LambdaDB](https://github.com/Theo-/lambdaDB) server.

Latest version **1.0.9** (published 2017-05-23) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install lambdadb
pnpm add lambdadb
yarn add lambdadb
bun add lambdadb
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2017-05-23 |
| First published | 2017-05-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Théo Szymkowiak |
| Maintainers | theo- |

## Links

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

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [request](https://npm.io/package/request.md) ^2.81.0
- [underscore](https://npm.io/package/underscore.md) ^1.8.3

## Recent versions

- 1.0.9 (latest) — 2017-05-23
- 1.0.8 — 2017-05-19
- 1.0.7 — 2017-05-19
- 1.0.6 — 2017-05-19
- 1.0.5 — 2017-05-18
- 1.0.4 — 2017-05-17
- 1.0.3 — 2017-05-17
- 1.0.2 — 2017-05-17
- 1.0.1 — 2017-05-17
- 1.0.0 — 2017-05-16

## README

# LambdaDB Client

This package is a client for the [LambdaDB](https://github.com/Theo-/lambdaDB) server.

## Secret Token

Get your secret token by running `lambdadb info` in your terminal:

![secretToken](assets/secretToken.png)

## Examples

### Insert into a table

```js
var lambdaDB = require('lambdadb')({
    host: 'localhost',
    secretToken: 'my secret token',
    database: 'databasename'
})

lambdaDB.table('users').insert({
    username: 'user',
    password: 'pass'
}).then(function(response) {
    console.log(response.data) // => logging the trace of the SQL query 
})
```

### Raw SQL queries

```js
var lambdaDB = require('lambdadb')({
    host: 'localhost',
    secretToken: 'my secret token',
    database: 'databasename'
})

lambdaDB.raw('SELECT * FROM users').then(function(response) {
    console.log(response.data) // => logging the rows
})
```

### Describe a table

```js
var lambdaDB = require('lambdadb')({
    host: 'localhost',
    secretToken: 'my secret token',
    database: 'databasename'
})

lambdaDB.table('users').describe().then(function(response) {
    console.log(response.data) // => logging the structure of the database
})
```

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