Comparing version 14.1.0 to 14.2.0
@@ -120,2 +120,15 @@ (function() { | ||
//--------------------------------------------------------------------------------------------------------- | ||
as_object(key, sql, ...P) { | ||
var R, d, ref; | ||
this.types.validate.nonempty_text(key); | ||
R = {}; | ||
ref = this.query(sql); | ||
for (d of ref) { | ||
R[d[key]] = d; | ||
delete d[key]; | ||
} | ||
return R; | ||
} | ||
//--------------------------------------------------------------------------------------------------------- | ||
first_row(sql, ...P) { | ||
@@ -122,0 +135,0 @@ var ref; |
{ | ||
"name": "dbay", | ||
"version": "14.1.0", | ||
"version": "14.2.0", | ||
"description": "In-Process, In-Memory & File-Based Relational Data Processing with SQLite, BetterSQLite3", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -779,2 +779,3 @@ | ||
of multi-schema connections. | ||
* **[+]** implement `as_object: ( key, sql, P... ) ->` | ||
@@ -781,0 +782,0 @@ |
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
10158548
2008
794