Giter Site home page Giter Site logo

meant-ion / dynamicsql Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

An interpretation of the semantic, syntactic, and typing rules for a dynamically typed, delcarative database language and its implementation in OCaml.

License: The Unlicense

OCaml 100.00%

dynamicsql's Introduction

DynamicSQL

An interpretation of the semantic, syntactic, and typing rules for a dynamically typed, delcarative database language and its implementation in OCaml

Specifically, this is meant to be more of a shallow dive into these rules. This was made as a project for a programming language design course, and is not really a "complete" language. For it to be "complete", bare minimum it would need to have a parser for the statements typed into the DynamicSQL console as well as I/O for the database. We were instructed to not implement these features, as it was out of scope for the course and would eat up time for actually implementing the rules for the language.

For now, the main functions implemented within the code (and their semantics) are:

  • CREATE TABLE tblnm (column_names_list);
  • DROP TABLE tblnm; (deletes like Windows "deletes" a file)
  • INSERT INTO tblnm VALUES (values_list);
  • SELECT * FROM tblnm WHERE condition = wanted_value;

In regards to the SELECT statement, this is a very, VERY narrow dive into what it would do in a SQL dialect like SQLite.

Feel free to add any features or improvements to the code.

CURRENT TO DO LIST: * Implement a stronger "typing" system; i.e. The first value of a column decides the type - First name in name col -> name col type is string - Whole number in age col -> age col type is int

* Implement a parser with C
    - Takes input from console and translates statements into code workable with OCaml functions

dynamicsql's People

Contributors

tennisplaya20 avatar

Watchers

 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.