New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rx-sql

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rx-sql

RxJS Implementation of MySQL

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
29
31.82%
Maintainers
1
Weekly downloads
 
Created
Source

rx-sql

Build Status

RxJS Implementation of MySQL

import { RxSQL } from "rx-sql";
import { createConnection } from "mysql";
import { flatMap } from "rxjs/operators";

let db = createConnection({
  host: "localhost",
  database: "database",
  user: "root",
  password: "password"
});

let rxsql$ = new RxSQL(db);

rxsql$
  .query("SELECT * FROM table")
  .pipe(flatMap(result => result))
  .subscribe(
      result => console.log(result),
      error => console.error(error)
      () => console.info("Completed!")
      );

Keywords

mysql

FAQs

Package last updated on 18 Jun 2018

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