leoc11 / elcy Goto Github PK
View Code? Open in Web Editor NEWORM for Typescript and Javascript with Linq-like query syntax.
License: MIT License
ORM for Typescript and Javascript with Linq-like query syntax.
License: MIT License
Useful for accumulative sum. example:
let total = 0;
const accumulateResult = await db.table1Set.setParameters({ total }).select(o => ({
column1: o.column1,
accumulativeSum: total += o.column1
})).toArray();
Note: total variable will not be affected.
IIncludeRelation should support RelationData.
note: Include via join that result in many-many relation should be consider too
Take/skip query always pass unneeded parameter.
example below will pass (1) and (2) to query parameter
const take = db.orders.skip(1).take(2);
const results = await take.toArray();
note: fixed at schema-builder branch
support virtual and persisted computed column for supported db (ex: mssql)
Refactor expresison builder to follow operator precedence as describe in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence
Though some embedded column code has been merged to master. but it still not working yet.
This issue only intended to track pending task.
currently the following code does not work.
await db.table1Set.select(o => ({
prop1: o.condition ? o.string : o.number
})).toArray();
await db.table1Set.select(o => ({
prop1: o.anycondition ? o.column : o.relation
})).toArray();
Support 3 types of inheritance.
Single Table
@Entity()
abstract class ClassA { }
@AbstractEntity()
class ClassA1 extends ClassA{}
Table per Concrete Class
@AbstractEntity()
abstract class ClassA { }
@Entity()
class ClassA1 extends ClassA{}
Table per Class
@Entity()
abstract class ClassA { }
@Entity()
class ClassA1 extends ClassA{}
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.