Comparing version 1.0.70 to 1.0.71
@@ -124,2 +124,5 @@ "use strict"; | ||
$sum: args => `SUM(${args})`, | ||
$min: args => `MIN(${args})`, | ||
$max: args => `MAX(${args})`, | ||
$coalesce: args => `COALESCE(${args.join(', ')})`, | ||
// mutations | ||
@@ -126,0 +129,0 @@ $insert_into: ([table_name, [...columns]]) => `INSERT INTO ${table_name} (${columns.join(', ')})`, |
@@ -26,4 +26,10 @@ import { Pluck } from '../helper_types'; | ||
export declare type Expression<Schema extends OrmaSchema, Entity extends GetAllEntities<Schema>> = { | ||
$sum: GetFields<Schema, Entity>; | ||
}; | ||
$sum: Expression<Schema, Entity>; | ||
} | { | ||
$min: Expression<Schema, Entity>; | ||
} | { | ||
$max: Expression<Schema, Entity>; | ||
} | { | ||
$coalesce: Expression<Schema, Entity>; | ||
} | GetFields<Schema, Entity>; | ||
export declare type PaginationObj = { | ||
@@ -30,0 +36,0 @@ $limit?: number; |
{ | ||
"name": "orma", | ||
"version": "1.0.70", | ||
"version": "1.0.71", | ||
"description": "A declarative relational syncronous orm", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
399630
10164