Git Product home page Git Product logo

relational-json's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

relational-json's Issues

Add browser-based example

A pre-compiled, browser-based example, allowing users to play with relational-json directly, on an existing schema.

Multiple get arguments

Allow getting a defined list of objects instead one or all.

The get(); method of each table should accept an infinite amount of integer values against which to match PK values of it's objects, and return an array containing all those objects.

  • get(x) would return the object itself, or undefined
  • get(x1, x2, ..., xn) would return [ obj1, obj2, ..., objn ] or an array of the found items, or undefined if none are found.
  • get() would return the current array of data.

fullModel is superfluous

Passing "fullModel" around gives too much information for each method.
Ideally, each table will have its own "model", and each model is a node in a graph, with relations to other nodes (models).

That way, all methods can always work on a model, and jump to the next model without having to know about the fullModel.

preprocessor adds ~30% overhead

profiling of data modification showed roughly a 30% increase in processing time when a DB has a preprocessor function. This excess excludes additional processing done by the function itself. The function we used was:

var preprocessor = function(tableName, field, value) {
  return value;
}

Not sure how this can be optimized, yet.

Naming consistency

Extends and ExtendedBy and Aggregates need to use the same property names (foreignTable, foreignField, localTable, localField)

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.