Merge pull request #32314 from pbgodwin/change-massive-query-signature

[massive] Allow named parameters to be passed to Database.query
This commit is contained in:
Benjamin Lichtman
2019-01-22 09:49:26 -08:00
committed by GitHub
+4 -1
View File
@@ -105,6 +105,9 @@ declare namespace massive {
term: string;
}
type QueryParamTypes = string | number | object;
type QueryParams = QueryParamTypes[] | QueryParamTypes;
interface EntitySpecification {
/** A Database. */
db: Database;
@@ -442,7 +445,7 @@ declare namespace massive {
/** Execute a query. */
query(
query: Select | Insert | Update | Delete | string,
params?: string[],
params?: QueryParams,
options?: ResultProcessingOptions
): Promise<any>;