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

amyJin/SQLParser-node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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-waf configure && node-waf build

Then we should have our compiled extension in ./build/default/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