Git Product home page Git Product logo

parendb's Introduction

juxt

I determined that most people who were given this task would probably opt for some kind of web backend using some sort of SQL database. I decided that I wanted to do something different. This conception of the problem writes and reads from json (for persistent storage) and uses the data as an environment inside of a REPL interpreter that takes simple commands, and then writes to the json file at the end. Obviously this has major disadvantages when it comes to scalability but I decided this was the most interesting way to solve the problem in-memory for a small-scale application that won't really be taking any asynchronous requests. This application could be expanded into a miniature database language, but the parsing is currently obviously very primitive.

Installation

Utilises only standard library, so no install is needed.

Usage

$ lein run

Starts the REPL.

Commands:

INSERT (takes flight data, and inserts into the environment) UPDATE (takes flight data, updates the environment. Actually - it just calls insert!) RETRIEVE (takes an even number of arguments, including 0. Filters the environment by the conditions and prints the result E.G., RETRIEVE ID F222 will return all flights with that ID.) REMOVE (takes one argument - ID, and removes it from the environment) DONE (writes the new environment to json and closes the REPL)

parendb's People

Contributors

jamiewaymark avatar

Watchers

James Cloos avatar Jamie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.