@wdis/db
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

wdis-db npm version NPM Downloads

Supported features

DB\Feature Select Insert Delete Update Create Drop Meta Model
SQlite
MySql 🔜 🔜 🔜 🔜 🔜 🔜 🔜
MariaDB 🔜 🔜 🔜 🔜 🔜 🔜 🔜
PostegreSql 🔜 🔜 🔜 🔜 🔜 🔜 🔜
Oracle ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
MS SQL ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
CSV ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
JSON ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
XML ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
Property ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️

Install

npm install @wdis/db

Or

yarn install @wdis/db

Example

// const { WdisDb } = require('@wdis/db');
import { ConfResource, WdisDb } from "@wdis/db";

const confResource: ConfResource = {
    resource: 'sqlite3',
    url: 'C:\\enviroment\\tmp\\wdis\\db\\sqlite3.db'
};

const wdisDb = new WdisDb(confResource);

let promiseList = wdisDb
    .model('user')
    .select('id','name','email')
    .list();

promiseList.then((userLst:any[]/*OR Type User[]*/)=>{
    console.log(JSON.stringify(userLst));
});

Contributing

Pull requests are welcome! If you see something you'd like to add, please do. For drastic changes, please open an issue first.

Package Sidebar

Install

npm i @wdis/db

Weekly Downloads

8

Version

1.0.3

License

AGPL-3.0-or-later

Unpacked Size

143 kB

Total Files

105

Last publish

Collaborators

  • wdison