GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - siggemannen/payloadbuilder: SQL query engine

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
documentation
documentation
 
 
org.kuse.payloadbuilder.catalog
org.kuse.payloadbuilder.catalog
 
 
org.kuse.payloadbuilder.core
org.kuse.payloadbuilder.core
 
 
org.kuse.payloadbuilder.editor
org.kuse.payloadbuilder.editor
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
checkstyle-test.xml
checkstyle-test.xml
 
 
checkstyle.xml
checkstyle.xml
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Actions Status

Payloadbuilder

SQL query engine with plugable catalogs (data sources)

Table of Contents

  • About the Project
    • Catalogs
    • Built With
  • Usage
  • Getting Started
    • Editor
  • Roadmap
  • Contributing
  • License

About the project

Query engine with SQL support, easy to extend with catalogs to allow for joining data sets from completely different data sources. A simple analyzer that builds an operator tree from provided query for data retrieval.

Supports:

  • JOIN (INNER, LEFT)
  • APPLY (CROSS, OUTER)
  • TVF's
  • Scalar functions
  • Key lookup Index
  • Multiple statements
  • Control-flow statements

Grammar

Catalogs

Catalogs is the extension point where external data is provided. A catalog implementation can provide scalar functions, table valued functions, data operators for tables.

Provided catalogs

Built With

  • JDK 8
  • Maven

Usage

  • mvn install
  • Add Reference
    • org.kuse.payloadbuilder.core/target/org.kuse.payloadbuilder.core-{version}.jar
    • org.kuse.payloadbuilder.catalog/target/org.kuse.payloadbuilder.catalog-{version}.jar
      • Contains bundled Catalog implementations
    • Release to Central is coming soon

Getting Started

Simple query using multiple catalogs:

        QuerySession session = new QuerySession(new CatalogRegistry());
        session.setPrintStream(System.out);
        session.getCatalogRegistry().registerCatalog("es", new ESCatalog());
        session.getCatalogRegistry().registerCatalog("fs", new FileSystemCatalog());

        session.setCatalogProperty("es", "endpoint", "http://localhost:9200");
        session.setCatalogProperty("es", "index", "myindex");

        String query = "select top 10 " +
            "        d.fileName " + 
            ",       f.size " + 
            ",       f.lastModifiedTime " + 
            "from es#_doc d " + 
            "cross apply fs#file(concat('/path/to/files/', d.fileName)) f " + 
            "where d._docType = 'pdfFiles'";

        QueryResult queryResult = Payloadbuilder.query(session, query);
        JsonStringWriter writer = new JsonStringWriter();
        while (queryResult.hasMoreResults())
        {
          queryResult.writeResult(writer);
          System.out.println(writer.getAndReset());
        }

Editor

Standalone Query Editor written in Swing

Editor Editor

Raodmap

Alot :)

  • Documentation
  • Insert/Update/Delete support
  • More operators (Merge join, union, except, anti-join, semi-join etc.)
  • More catalog implementations (Mongo, Redis etc.)

Contributing

Patches, discussions about features, changes etc. welcome.

License

Distributed under the Apache License Version 2.0. See LICENSE for more information.

About

SQL query engine

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.