{"id":43452,"library":"node-query","title":"nquery","description":"General SQL query interface for hybrid data sources, version 0.3.3. Provides a unified SQL-like query engine that abstracts over multiple backends (MySQL, OTS, HBase, PostgreSQL, HTTP, etc.). Designed for Node.js environments (>=0.8.0). Release cadence is unclear; last update appears to be early. Key differentiator: it allows querying diverse data sources with a single SQL interface, but is early-stage and not actively maintained.","status":"maintenance","version":"0.3.3","language":"javascript","source_language":"en","source_url":"git://github.com/alibaba/nquery","tags":["javascript","SQL","Engine","Hybird","Data","Source"],"install":[{"cmd":"npm install node-query","lang":"bash","label":"npm"},{"cmd":"yarn add node-query","lang":"bash","label":"yarn"},{"cmd":"pnpm add node-query","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM default import","wrong":"const nquery = require('nquery')","symbol":"default","correct":"import nquery from 'nquery'"},{"note":"Named export for the main class","wrong":"const MQuery = require('nquery').MQuery","symbol":"MQuery","correct":"import { MQuery } from 'nquery'"},{"note":"Factory function to create queries","wrong":null,"symbol":"createQuery","correct":"import { createQuery } from 'nquery'"}],"quickstart":{"code":"import nquery from 'nquery';\n\nconst db = nquery({\n  mysql: {\n    host: process.env.MYSQL_HOST ?? 'localhost',\n    user: process.env.MYSQL_USER ?? 'root',\n    password: process.env.MYSQL_PASSWORD ?? '',\n    database: 'test'\n  },\n  http: {\n    baseURL: 'https://api.example.com'\n  }\n});\n\nconst result = await db.query('SELECT * FROM mysql.users WHERE id = ?', [1]);\nconsole.log(result);","lang":"typescript","description":"Shows how to initialize nquery with multiple data sources (MySQL and HTTP) and execute a parameterized SQL query."},"warnings":[{"fix":"Use Node.js 10.x or older, or find an alternative library.","message":"Requires Node.js >=0.8.0; may not work on modern Node versions (12+) due to deprecated APIs.","severity":"breaking","affected_versions":">=12.0.0"},{"fix":"Consider using a modern query builder like Knex or Sequelize for SQL databases.","message":"Package is not actively maintained; last update was years ago. No official ESM support.","severity":"deprecated","affected_versions":">=0.3.3"},{"fix":"Install @types/nquery if available, or declare module manually.","message":"No TypeScript definitions; types are not included.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Install required database drivers manually (e.g., npm install mysql).","message":"Backend drivers (e.g., mysql, pg) must be installed separately but are not listed as peer dependencies.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.3.3':11 '0.8.0':35 'abstract':21 'activ':66 'allow':49 'appear':42 'backend':24 'cadenc':37 'data':8,52,72 'design':31 'differenti':47 'divers':51 'earli':45,62 'early-stag':61 'engin':19,70 'environ':34 'etc':30 'general':2 'hbase':27 'http':29 'hybird':71 'hybrid':7 'interfac':5,58 'javascript':68 'key':46 'last':40 'like':17 'maintain':67 'multipl':23 'mysql':25 'node.js':33 'nqueri':1 'ot':26 'postgresql':28 'provid':12 'queri':4,18,50 'releas':36 'singl':56 'sourc':9,53,73 'sql':3,16,57,69 'sql-like':15 'stage':63 'unclear':39 'unifi':14 'updat':41 'version':10","created_at":"2026-06-05T16:59:52.464905+00:00","updated_at":"2026-06-05T16:59:52.464905+00:00","problems":[{"fix":"Run 'npm install nquery'.","cause":"Package not installed or npm registry issues.","error":"Cannot find module 'nquery'"},{"fix":"Use 'const nquery = require('nquery').default' or switch to ESM import.","cause":"Using require with default export incorrectly.","error":"nquery is not a function"},{"fix":"Ensure you pass a configuration object with at least one backend connection settings.","cause":"Initialization object missing required fields for backend.","error":"Cannot read property 'query' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"git://github.com/alibaba/nquery","github":"git://github.com/alibaba/nquery","docs":null,"changelog":null,"pypi":null,"npm":"node-query","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-05","next_check":"2026-09-03","install_tag":null}}