🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

lambdadb

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambdadb

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

latest
npmnpm
Version
1.0.9
Version published
Weekly downloads
22
144.44%
Maintainers
1
Weekly downloads
 
Created
Source

LambdaDB Client

This package is a client for the LambdaDB server.

Secret Token

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

secretToken

Examples

Insert into a table

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

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

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
})

FAQs

Package last updated on 23 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts