@dkaframework/database
v1.2.7
Published
[![GitHub last commit](https://img.shields.io/github/last-commit/YovanggaAnandhika/DKAFramework-Typescript)]() [![GitHub contributors](https://img.shields.io/github/contributors/YovanggaAnandhika/DKAFramework-Typescript)]() [![GitHub pull requests](https:
Downloads
87
Readme
@dkaframework/database
Features
@dkaframework/database combines other frameworks into a framework and can be used practically to create your project. It consists of:
- a MariaDB - SQL dbms from mariadb engine
- a MongoDB - NoSQL dbms Connector
- a Firebase Firestore - a dbms from Google firebase SDK
Simple and convenient API
Sample code:
import {MariaDB} from "@dkaframework/database";
(async() => {
let db = await new MariaDB({
host : "127.0.0.1", // Options.HOST.WILDCARD
port: 3306,
... // Optional Config if you change engine type
});
db.Read(tableName, {
search : [],
limit : 1
}).then(async (resultData) => {
// the result Read Database
}).catch(async (error) => {
// the result if error read data or not exist
})
})()