Giter Site home page Giter Site logo

databases-assignment1's Introduction

Simple_DB

Made by Chris Rosendorf

Information

This implementation of Simple_DB includes a HashMap in the form of a JavaScript object.
Any overwritten data stays in the database, but upon generating the HashMap, it will only index the latest change.
Any deleted data is indexed in a specific way, to ensure that it is not read into the HashMap.

Any valid JavaScript data type can be used as a key, and as the associated value in the database.
These include arrays, nested objects and primitive data types, such as numbers, strings and more.

Installation

  • Clone Repository
  • Ensure NodeJS is installed and working on system
  • Ensure TypeScript is globally installed through npm: npm i -g typescript
  • Open 1 terminal in root directory of the project, then run tsc -w (Leave it open the whole time)
  • Open another terminal, first run npm i, and then run the command: npm start

Usage

Inside App.ts you can change the code to play around with the functions and functionality of the database.
There are 3 functions that can be used:

Function Parameter
addToDB DatabaseObject
deleteFromDB Key: any
getFromDB Key: any

The DatabaseObject is based on the interface:

interface DatabaseObject { key: any; value: any; }

databases-assignment1's People

Contributors

exomemphiz avatar

Watchers

James Cloos avatar  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.