@blueleader07/typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
25 lines (23 loc) • 736 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DynamoOrder = void 0;
class DynamoOrder {
constructor(property, direction) {
this.property = property;
this.direction = direction || DynamoOrder.DEFAULT_DIRECTION;
}
static by(property, direction) {
return new DynamoOrder(property, direction);
}
static asc(property) {
return new DynamoOrder(property, DynamoOrder.ASC);
}
static desc(property) {
return new DynamoOrder(property, DynamoOrder.DESC);
}
}
exports.DynamoOrder = DynamoOrder;
DynamoOrder.ASC = "ASC";
DynamoOrder.DESC = "DESC";
DynamoOrder.DEFAULT_DIRECTION = DynamoOrder.ASC;
//# sourceMappingURL=DynamoOrder.js.map