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

lambdadb-cli

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambdadb-cli

![LambdaDB](assets/headerFull.png)

latest
npmnpm
Version
1.1.3
Version published
Weekly downloads
23
Maintainers
1
Weekly downloads
 
Created
Source

LambdaDB

Install

$ npm install -g lambdadb-cli

Getting started

First, you need to sign up to LambdaDB:

$ lambdadb signup

Or, if you already have an account, sign in using:

$ lambdadb login

Creating a database

You can create a database using:

$ lambdadb new <database name>

Then you can desctroy it whenever you want with

$ lambdadb delete <database name>

Listing database

See all your database using:

$ lambdadb list

Accessing your database through a SQL client

To get your SQL credentials just type:

$ lambdadb info

Deploying a lambdadb.json project

Just do:

$ lambdadb deploy

Example

Demo

Using a LambdaDB in your code

var lambdaDB = require('lambdadb')({
    host: 'https://lambdadb.herokuapp.com',
    secretToken: 'my secret token',
    database: 'microservice'
})

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

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

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

Visit the LambdaDB client repository to get started.

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