Skip to content

This is a node.js extension which parses through SQL query to check the validation

License

Notifications You must be signed in to change notification settings

Ensighten/SQLParser-node.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an extended project of the repository SQLParser. 

Based on the article http://syskall.com/how-to-write-your-own-native-nodejs-extension, I wrapped SQLParser class by V8 to make it 
executable in node.js projects to check the validation of SQL query. 

Bulding:
In the top directory, run the following command:
node-gyp configure && node-gyp build

Then we should have our compiled extension in ./build/Release/SQLParser.node. 

Test it in node console:

$ node
> var parser = require('./build/default/SQLParser.node');
> var sqlParser = new parser.SQLParser();
> var query = 'SELECT * FROM Users';    	
> sqlParser.parse(query);
true

About

This is a node.js extension which parses through SQL query to check the validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.8%
  • Python 3.2%