ts-repository-fluent
Advanced tools
Comparing version
| { | ||
| "name": "ts-repository-fluent", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "description": "A basic data repository framework for Typescript. Includes a fluent-style query interface.", | ||
@@ -9,3 +9,6 @@ "main": "source/index.ts", | ||
| "orm", | ||
| "ts-repository" | ||
| "ts-repository", | ||
| "repository", | ||
| "fluent", | ||
| "query" | ||
| ], | ||
@@ -12,0 +15,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
| # ts-repository | ||
| # ts-repository-fluent | ||
| A basic data repository framework for Typescript. Includes a fluent-style query interface. |
@@ -39,41 +39,38 @@ 'use strict' | ||
| declare global | ||
| /** SimpleQuery: SQL operation definition | ||
| * @enum | ||
| */ | ||
| export const enum Operator | ||
| { | ||
| /** SimpleQuery: SQL operation definition | ||
| * @enum | ||
| */ | ||
| const enum Operator | ||
| { | ||
| Equals = "=", | ||
| GreaterThan = ">", | ||
| GreaterThanOrEqual = ">=", | ||
| LessThan = "<", | ||
| LessThanOrEqual = "<=", | ||
| IN = "IN", | ||
| NOT_Equals = "!=", | ||
| NOT_IN = "NOT IN", | ||
| Like = "LIKE", | ||
| NOT_Like = "NOT LIKE" | ||
| } | ||
| Equals = "=", | ||
| GreaterThan = ">", | ||
| GreaterThanOrEqual = ">=", | ||
| LessThan = "<", | ||
| LessThanOrEqual = "<=", | ||
| IN = "IN", | ||
| NOT_Equals = "!=", | ||
| NOT_IN = "NOT IN", | ||
| Like = "LIKE", | ||
| NOT_Like = "NOT LIKE" | ||
| } | ||
| /** SimpleQuery: SQL join definition | ||
| * @class | ||
| */ | ||
| class Join | ||
| { | ||
| tableName: string; | ||
| from: string; | ||
| to: string; | ||
| type?: JoinType; | ||
| } | ||
| /** SimpleQuery: SQL join definition | ||
| * @class | ||
| */ | ||
| export class Join | ||
| { | ||
| tableName: string; | ||
| from: string; | ||
| to: string; | ||
| type?: JoinType; | ||
| } | ||
| /** SimpleQuery: SQL join type definition | ||
| * @enum | ||
| */ | ||
| const enum JoinType | ||
| { | ||
| INNER = "INNER JOIN", | ||
| LEFT_OUTER = "LEFT OUTER JOIN", | ||
| RIGHT_OUTER = "RIGHT OUTER JOIN" | ||
| } | ||
| /** SimpleQuery: SQL join type definition | ||
| * @enum | ||
| */ | ||
| export const enum JoinType | ||
| { | ||
| INNER = "INNER JOIN", | ||
| LEFT_OUTER = "LEFT OUTER JOIN", | ||
| RIGHT_OUTER = "RIGHT OUTER JOIN" | ||
| } |
| 'use strict' | ||
| import {IRepository} from './IRepository' | ||
| import {IRepository,Operator,Join,JoinType} from './IRepository' | ||
@@ -4,0 +4,0 @@ type constructor<Z> = new()=>Z; |
@@ -1,3 +0,2 @@ | ||
| import {BaseRepository} from '../source/BaseRepository' | ||
| import {SimpleQuery} from '../source/SimpleQuery'; | ||
| import {SimpleQuery,BaseRepository} from '../source/index' | ||
@@ -4,0 +3,0 @@ //An example ORM object |
20276
-0.53%562
-0.71%