1.0.0 • Published 4 years ago

doctosql v1.0.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

doctosql

Javascript Document to Relational Database Integration

Release

1.0.0 Only support for SQL Server. Added unit tests using AVA

Configuration

Environment Variables

DOCTOSQL_LOG_LEVEL=a bunyan log level: trace | debug | info | warn | error | fatal

DOCTOSQL_RDBMS='a tedious connection document'

For example:

  {
    "userName":"myUsername",
    "password":"myPassword",
    "server":"myServer.database.windows.net",
    "database":"myDatabase"
  }

Installation

Using npm:

$ npm i --save doctosql

In Node.js:

var doctosql = require('doctosql');
var entityName = 'TABLE_NAME';
var docs = [
  <one or more similar documents...>,
]

// To insert, or update, all
doctosql.load(tablePrefix, docs);
// or
// To insert, or update, skipping those with same revision
doctosql.incr(tablePrefix, docs);

NOTE: Each document must have an id or _id, and a rev or _rev attributes.

Support

Supports Node versions 8 - 12. Node version 14 breaks one of the dependent packages.

Feel free to email don@donaldbales.com with and complaints and questions.

Look at the todo.txt docu,ment for what I'm working on next.

1.0.0

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago