@saltcorn/db-common
Advanced tools
Comparing version 0.6.2 to 0.6.3-beta.0
@@ -76,3 +76,38 @@ /** | ||
orderDesc?: boolean; | ||
cached?: boolean; | ||
versioned?: boolean; | ||
min_role_read?: number; | ||
min_role_write?: number; | ||
ownership_field_id?: string; | ||
ownership_formula?: string; | ||
description?: string; | ||
}; | ||
export declare const orderByIsObject: (object: any) => object is { | ||
distance: CoordOpts; | ||
}; | ||
export declare type JoinField = { | ||
ref: any; | ||
target: any; | ||
through: any; | ||
[key: string]: any; | ||
}; | ||
export declare type JoinOptions = { | ||
joinFields?: JoinField; | ||
aggregations?: AggregationOptions[]; | ||
where: any; | ||
} & SelectOptions; | ||
export declare type AggregationOptions = { | ||
table: string; | ||
ref: string; | ||
field: string; | ||
where?: string; | ||
aggregate: string; | ||
subselect?: SubselectOptions; | ||
}; | ||
export declare type SubselectOptions = { | ||
tableName: string; | ||
whereField: string; | ||
field: string; | ||
table: any; | ||
}; | ||
/** | ||
@@ -79,0 +114,0 @@ * @param {object} selopts |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mkSelectOptions = exports.mkWhere = exports.sqlsanitizeAllowDots = exports.sqlsanitize = void 0; | ||
exports.mkSelectOptions = exports.orderByIsObject = exports.mkWhere = exports.sqlsanitizeAllowDots = exports.sqlsanitize = void 0; | ||
//https://stackoverflow.com/questions/15300704/regex-with-my-jquery-function-for-sql-variable-name-validation | ||
@@ -230,2 +230,6 @@ /** | ||
}; | ||
const orderByIsObject = (object) => { | ||
return object && object.distance; | ||
}; | ||
exports.orderByIsObject = orderByIsObject; | ||
/** | ||
@@ -232,0 +236,0 @@ * @param {object} selopts |
{ | ||
"name": "@saltcorn/db-common", | ||
"version": "0.6.2", | ||
"version": "0.6.3-beta.0", | ||
"description": "Db common structures for Saltcorn, open-source no-code platform", | ||
@@ -5,0 +5,0 @@ "homepage": "https://saltcorn.com", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
143878
1518