datasquirel/engine/index.js

43 lines
908 B
JavaScript
Raw Normal View History

2023-07-02 06:06:48 +00:00
/**
* Imports
2023-07-07 14:01:09 +00:00
* ===================================
2023-07-02 06:06:48 +00:00
*/
2023-07-07 19:13:13 +00:00
const addDb = require("./db/addDb");
2023-07-07 14:08:38 +00:00
const query = require("./db/query");
2023-07-07 14:43:33 +00:00
const update = require("./db/updateDb");
const deleteDb = require("./db/deleteDb");
2023-07-02 06:06:48 +00:00
2023-07-07 14:01:09 +00:00
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
2023-07-02 06:06:48 +00:00
/**
* Media Functions Object
2023-07-07 14:01:09 +00:00
* ===================================
2023-07-02 06:06:48 +00:00
*/
2023-07-07 13:58:14 +00:00
const db = {
2023-07-07 19:13:13 +00:00
add: addDb,
2023-07-07 14:01:09 +00:00
update: update,
2023-07-07 14:43:33 +00:00
delete: deleteDb,
2023-07-07 14:08:38 +00:00
query: query,
2023-07-02 06:06:48 +00:00
};
/**
* Main Export
2023-07-07 14:01:09 +00:00
* ===================================
2023-07-02 06:06:48 +00:00
*/
const dsqlEngine = {
2023-07-07 14:01:09 +00:00
db: db,
2023-07-02 06:06:48 +00:00
};
module.exports = dsqlEngine;
2023-07-07 14:01:09 +00:00
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
2023-07-08 05:47:57 +00:00
exports.add = dsqlEngine.db.add;
exports.update = dsqlEngine.db.update;
exports.delete = dsqlEngine.db.delete;
exports.query = dsqlEngine.db.query;