Skip to content

SQL Processor for CSV in TypeScript. Work in browser also.

License

Notifications You must be signed in to change notification settings

inabajunmr/swrql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9902870 Β· May 12, 2022

History

55 Commits
May 12, 2022
May 4, 2022
Apr 24, 2022
Apr 24, 2022
May 4, 2022

Repository files navigation

swrql

🚧 It's just for my learning. NOT FOR PRODUCTION. 🚧

SQL Processor for CSV in TypeScript.

swrql is written in HOSTEL Co-EDO SAWARA.

Demo

https://inabajunmr.github.io/swrql/pages/public/

Features

Features
ORDER BY βœ…
GROUP BY(count,sum,avg,max,min) βœ…
INNER JOIN βœ…
OUTER JOIN βœ…
BETWEEN βœ…
IN βœ… except for subquery
NOT βœ…
ANY/ALL Unsupported
Subquery Unsupported
LIKE βœ… but can't use SQL wildcard. using only Regex.
LIMIT/OFFSET Unsupported
UNION Unsupported
EXCEPT Unsupported
INTERSECT Unsupported
DISTINCT Unsupported
all of functions except for aggregation Unsupported
INSERT Unsupported
UPDATE Unsupported
DELETE Unsupported

Example

var swrql = require("swrql")
const table = new swrql.CSVScan('abc',
`a,b,c
1,2,3
x,y,z
foo,bar,baz`);
const sqlExecution = new swrql.SQLExecution([table], 'select * from abc;');
const actual = sqlExecution.execute();
actual.records.forEach((r) => console.log(r));

try it on RunKit.

About

SQL Processor for CSV in TypeScript. Work in browser also.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published