Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-repository-fluent

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-repository-fluent - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc