0.1.0 Aug 5, 2022

#6 in #compilers

Apache-2.0

49MB
650K SLoC

JavaScript 639K SLoC // 0.0% comments AsciiDoc 5K SLoC // 0.0% comments Rust 3K SLoC // 0.0% comments TypeScript 1.5K SLoC // 0.0% comments LiveScript 198 SLoC // 0.0% comments Kotlin 94 SLoC // 0.2% comments PHP 93 SLoC Objective-C 73 SLoC // 0.1% comments Liquid 72 SLoC Cabal 71 SLoC Haml 70 SLoC // 0.0% comments HCL 65 SLoC // 0.1% comments Raku 62 SLoC // 0.1% comments Scala 61 SLoC GraphQL 49 SLoC // 0.2% comments Elixir 38 SLoC // 0.1% comments Stylus 36 SLoC // 0.2% comments Forth 36 SLoC C++ 34 SLoC // 0.1% comments Apache Velocity 33 SLoC // 0.2% comments COBOL 33 SLoC // 0.1% comments TCL 32 SLoC // 0.1% comments Ruby HTML 31 SLoC // 0.2% comments FreeMarker 31 SLoC // 0.1% comments Pascal 29 SLoC // 0.3% comments Groovy 29 SLoC Ruby 29 SLoC // 0.1% comments ActionScript 28 SLoC // 0.3% comments Shell 28 SLoC // 0.2% comments VHDL 25 SLoC Twig 24 SLoC Crystal 23 SLoC Gherkin (Cucumber) 22 SLoC Go 22 SLoC // 0.3% comments ABAP 21 SLoC // 0.3% comments FORTRAN Modern 21 SLoC // 0.2% comments Lua 21 SLoC // 0.3% comments Specman e 20 SLoC // 0.1% comments Common Lisp 20 SLoC Logtalk 19 SLoC Scheme 19 SLoC QML 19 SLoC PowerShell 18 SLoC VBScript 17 SLoC // 0.2% comments R 16 SLoC Vala 16 SLoC CoffeeScript 15 SLoC // 0.2% comments Haxe 15 SLoC Clojure 14 SLoC // 0.2% comments Perl 14 SLoC // 0.4% comments Erlang 14 SLoC // 0.2% comments Assembly 13 SLoC Swift 13 SLoC GLSL 13 SLoC // 0.2% comments Julia 13 SLoC D 12 SLoC Nim 12 SLoC Python 11 SLoC // 0.3% comments Coq 11 SLoC Dart 10 SLoC // 0.3% comments OCaml 10 SLoC // 0.3% comments Haskell 10 SLoC // 0.4% comments Elm 9 SLoC Java 8 SLoC // 0.5% comments Batch 8 SLoC // 0.3% comments SQL 6 SLoC Razor 6 SLoC Handlebars 6 SLoC JSX 5 SLoC // 0.4% comments Ada 5 SLoC INI 4 SLoC TSX 3 SLoC C# 3 SLoC ColdFusion 2 SLoC F# 2 SLoC // 0.9% comments jq 1 SLoC

PartiQL Playground (Proof of Concept)

PartiQL Playground is intended to provide the required code for enabling execution of PartiQL queries on web.

Please note, at this stage the code within this package is considered experimental and should not be used for production.

Local Usage

For local usage follow the below steps.

  1. Pull down the partiql-rust package from GitHub:
git clone --recursive https://github.com/partiql/partiql-lang-rust.git
  1. Enter the partiql-playground root directory:
cd partiql-lang-rust/partiql-playground
  1. Build the WASM package:
wasm-pack build --target web
  1. Start a webserver from the root directory, as an example, you can use Python's SimpleHTTPServer:
python3 -m http.server
  1. On your browser go to http://localhost:8000/

Development

PartiQL Playground uses WebAssembly (Wasm) for integrating the front-end with PartiQL Rust back-end. Considering this, please install the wasm-pack by following the instructions here.

Upon any changes to the package's Rust dependencies (E.g. partiql-parser) or the wasm code under ./src/lib of this package, you need to rebuild the Wasm package using the following command from the root of this package:

wasm-pack build --target web

Please note, as the package is experimental at this stage, all HTML code and assets reside in this package, but this doesn't necessarily mean that it'll be the case in the future.

Dependencies

Package License
ace Editor BSD License
bootstrap MIT License
D3.js ISC License
jquery MIT License
jquery.json-viewer MIT License
wasm-bindgen Apache License Version 2.0
wasm-pack Apache License Version 2.0

Dependencies

~13MB
~228K SLoC