Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Mathias Rangel Wulff edited this pageJul 11, 2015 ·1 revision

SQL to JavaScript parser and compiler

You can use AlaSQL to parse to AST and compile SQL statements:

// Parse to ASTvarast=alasql.parse("SELECT * FROM one");console.log(ast.toString());// Print restored SQL statement// Compile to JavaScript function with or without parametersvarstatement=alasql.compile("SELECT * FROM one WHERE a > ? AND b < ?");statement([1,5]);

AlaSQL uses wonderfulJison parser to produce AST-tree.

© 2014-2026,Andrey Gershun &Mathias Rangel Wulff

Please help improve the documentation by opening a PR on thewiki repo

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp