sebastiendaniel / relational-json Goto Github PK
View Code? Open in Web Editor NEWJSON with conscience
Home Page: http://sebastiendaniel.github.io/relational-json
License: MIT License
JSON with conscience
Home Page: http://sebastiendaniel.github.io/relational-json
License: MIT License
A pre-compiled, browser-based example, allowing users to play with relational-json directly, on an existing schema.
both properties theoretically only need the tableName of the relation, since the relation is always PK to PK.
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 undefinedget(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.put() breaks the inheritance structure by deleting and not re-creating children.
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.
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.
Extends and ExtendedBy and Aggregates need to use the same property names (foreignTable, foreignField, localTable, localField)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.