Registry / database / node-sql-parser-tibero

node-sql-parser-tibero

JSON →
library0.0.18jsnpmunverified

Fork of node-sql-parser (v4.x based on version 0.0.18) modified for Tibero database SQL dialect parsing. Ships TypeScript types, supports Node >=8, produces AST trees. Current stable version 0.0.18. Release cadence: infrequent (last release unknown). Key differentiator: Tibero-specific SQL syntax support not available in the upstream node-sql-parser. Note: this is a test-oriented fork with limited maintenance and documentation.

npm install node-sql-parser-tibero
INSTALL
IMPORT
SIG · NODE-SQL-PARSER-TI
N
node-sql-parser-tibero
databasejavascriptv0.0.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Parser
import Parser from 'node-sql-parser-tibero'
const Parser = require('node-sql-parser-tibero').Parser
Default export is the Parser class. ESM-only in recent versions (but this fork may support CJS).
astify
import { astify } from 'node-sql-parser-tibero'
const astify = require('node-sql-parser-tibero').astify
Named export available; both CJS and ESM work but prefer named import for tree-shaking.
Parser (type)
import type { Parser } from 'node-sql-parser-tibero'
import { Parser } from 'node-sql-parser-tibero'
TypeScript: use type import to avoid bundling at runtime.

Parse an SQL statement into an AST, then generate SQL from an AST using the Parser class.

import Parser from 'node-sql-parser-tibero'; const parser = new Parser(); const sql = 'SELECT * FROM users WHERE id = 1'; const ast = parser.astify(sql); console.log(JSON.stringify(ast, null, 2)); // Generate SQL from AST const columns = ['name', 'age']; const table = 'users'; const insertSql = parser.sqlify({ type: 'insert', table: table, columns: columns, values: columns.map(col => col === 'name' ? "'John'" : 30) }); console.log(insertSql);
Debug
Known issues
breakingDefault export changed from class to function in upstream v4, but this fork may retain old API
fix
Use `import Parser from 'node-sql-parser-tibero'` as default export.
affects: 0.0.x
gotchaTibero-specific syntax may not be fully supported; only basic SQL constructs are tested
fix
Check the test suite (referenced in README) for supported syntax.
affects: >=0.0.0
deprecatedSome methods like `parse()` from upstream may be deprecated in favor of `astify()`
fix
Use `astify()` method for parsing SQL to AST.
affects: >=0.0.0
gotchaNode.js >=8 required; older versions will fail silently
fix
Ensure Node.js version >=8 (preferably LTS).
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'node-sql-parser-tibero'
Package not installed or typo in import path
fix
Run `npm install node-sql-parser-tibero` and ensure correct spelling.
SyntaxError: Unexpected token
SQL contains unsupported Tibero-specific syntax
fix
Simplify SQL to standard constructs or check if the fork handles your dialect.
TypeError: parser.astify is not a function
Using older API (e.g., parser.parse) or incorrect import
fix
Use default export: `import Parser from 'node-sql-parser-tibero'` and call `new Parser().astify(sql)`.
Upgrade
Version history
0.0.18latest on npm
Audit
Dependencies
node-sql-parseroptionalForked from upstream; may need peer dependency for compatibility
Agent activity
2 hits · last 30 days
node
2
Resources
node-sql-parser-tibero — npm install node-sql-parser-tibero · libregistry