UNPKG

puddysql

Version:

🍮 Powerful SQL toolkit for Node.js, built with flexibility and structure in mind. Easily manage SQLite3/PostgreSQL, advanced queries, smart tag systems, and full JSON-friendly filters.

38 lines (33 loc) 1.04 kB
'use strict'; var Modules = require('./Modules.cjs'); var Utils = require('./Utils.cjs'); var PuddySqlEvents = require('./PuddySqlEvents.cjs'); var PuddySqlInstance = require('./PuddySqlInstance.cjs'); var PuddySqlQuery = require('./PuddySqlQuery.cjs'); var PuddySqlTags = require('./PuddySqlTags.cjs'); class PuddySql { static Instance = PuddySqlInstance; static Query = PuddySqlQuery; static Tags = PuddySqlTags; static Events = PuddySqlEvents; static Utils = Utils; static pg = Modules.pg; static sqlite3 = Modules.sqlite3; /** * This constructor is intentionally blocked. * * ⚠️ You must NOT instantiate PuddySql directly. * To create a working instance, use {@link PuddySql.Instance}: * * ```js * const client = new PuddySql.Instance(); * ``` * * @constructor * @throws {Error} Always throws an error to prevent direct instantiation. */ constructor() { throw new Error('You must use new PuddySql.Instance() to create your new instance.'); } } module.exports = PuddySql;