UNPKG

@trap_stevo/liveql

Version:

Supercharge your database workflow with a visually clean, ultra-intuitive SQL layer. Chain elegant queries, trigger instant real-time events, and manage schemas effortlessly — all without ORM overhead while blending raw SQL power with modern developer erg

13 lines (12 loc) 399 B
"use strict"; const LiveQL = require("./LiveQL"); function createLiveQL({ client }) { if (!client || typeof client.query !== "function") { throw new Error("[LiveQL] ~ Missing or invalid SQL client. You must pass a connected SQL driver (e.g. pg.Pool or mysql2) with a .query() method."); } return new LiveQL(client); } module.exports = LiveQL; module.exports.createLiveQL = createLiveQL;