UNPKG

@onurege3467/zerohelper

Version:

ZeroHelper is a versatile JavaScript library offering helper functions and database utilities for developers. It supports MongoDB, MySQL, SQLite, Redis, and PostgreSQL.

9 lines (6 loc) 220 B
"use strict"; const errors = require('../errors/strings.js'); module.exports = async function(query){ if(!query) throw new TypeError(errors.query.replace("{received}", typeof query)); return this.db.query(query); }