@tanstack/db
Version:
A reactive client store for building super fast apps on sync
58 lines (57 loc) • 1.05 kB
JavaScript
class BaseExpression {
}
class CollectionRef extends BaseExpression {
constructor(collection, alias) {
super();
this.collection = collection;
this.alias = alias;
this.type = `collectionRef`;
}
}
class QueryRef extends BaseExpression {
constructor(query, alias) {
super();
this.query = query;
this.alias = alias;
this.type = `queryRef`;
}
}
class PropRef extends BaseExpression {
constructor(path) {
super();
this.path = path;
this.type = `ref`;
}
}
class Value extends BaseExpression {
constructor(value) {
super();
this.value = value;
this.type = `val`;
}
}
class Func extends BaseExpression {
constructor(name, args) {
super();
this.name = name;
this.args = args;
this.type = `func`;
}
}
class Aggregate extends BaseExpression {
constructor(name, args) {
super();
this.name = name;
this.args = args;
this.type = `agg`;
}
}
export {
Aggregate,
CollectionRef,
Func,
PropRef,
QueryRef,
Value
};
//# sourceMappingURL=ir.js.map