2.0.1 • Published 9 months ago

send-tables-to-db-lib v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

send-tables-to-db-lib

Lib for send needed tables with his columns from one to another db and check userPermissions with Authorisation.

Table of contents

One file with all the functionality of the plugin

/index.js

Installation

npm i send-tables-to-db-lib

Start Plugin

npm run dev or node index.js

Functions

  1. Function that starts will send a few tables with his columns to another db
 You have to write destionation db config in the function
 createTable('userName', 'Host', 'DataBase', 'Password', 'port');
  1. When written true userName and password in that function will response user Permissions
    You have to write userName and password in the function
    CheckUserPermissions("userName", "password");

The result of the plugin

Console

Start

1. Send tables response

Success response (Table created successfully in the destination database.)
Bad response (Error)

2. Check User Permissions

Succes request:
    data: {
        message: 'Succes Request',
        permissions: [
            ...
        ]
    }


Bad Request: 

Message: 400 Bad Request
2.0.1

9 months ago

2.0.0

9 months ago

1.1.2

9 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.5

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago