Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
/ sql2rest Public archive

The main scope of this library is process SQL statements and create Restful queries based on it

Notifications You must be signed in to change notification settings

vepo/sql2rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL2Rest

Build Status Build Status

A simple SQL Parser that produces Rest queries using Antlr4

Examples

Input Output
SELECT * FROM Device /device
SELECT * FROM Device WHERE id = 2 /device?search=id:2
SELECT * FROM Device WHERE id=2 OR id = 3 /device?search=id:2 OR id:3
SELECT * FROM Device WHERE name = 'John' AND (id=2 OR id=3) /device?search=name:'John' AND ( id:2 OR id:3 )
SELECT * FROM Device WHERE name = 'John' AND ((id=2 OR id=3) AND (age > 30 or age < 10)) /device?search=name:'John' AND ( ( id:2 OR id:3 ) AND ( age>30 OR age<10 ) )

About

The main scope of this library is process SQL statements and create Restful queries based on it

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published