Comparing version
@@ -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", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
399630
0.07%10164
0.09%