How to use the pg-query-parser.deparse function in pg-query-parser

To help you get started, we’ve selected a few pg-query-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nothingisdead / pg-live-query / pguids.js View on Github external
return this.ensureObjects(tree).then(() => {
			// Add the uid and rev columns to the parse tree
			this._addMetaColumns(tree);

			// Deparse the parse tree back into a query
			return {
				sql    : parser.deparse(tree),
				tables : this.getTables(tree)
			};
		});
	}

pg-query-parser

The real PostgreSQL query parser

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

39 / 100
Full package analysis

Popular pg-query-parser functions