@db-auto/dal
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -6,4 +6,5 @@ import { DalResult, DalRow } from "./dal"; | ||
onelinejson?: boolean; | ||
notitles?: boolean; | ||
} | ||
export declare function columnDefnFor(res: DalResult): NameAnd<ColumnDefn<DalRow>>; | ||
export declare function prettyPrintDalResult(options: DalResultDisplayOptions, res: DalResult, showTitles?: false): string[]; | ||
export declare function prettyPrintDalResult(options: DalResultDisplayOptions, res: DalResult): string[]; |
@@ -12,3 +12,3 @@ "use strict"; | ||
exports.columnDefnFor = columnDefnFor; | ||
function prettyPrintDalResult(options, res, showTitles) { | ||
function prettyPrintDalResult(options, res) { | ||
if (options.json) | ||
@@ -18,4 +18,4 @@ return [JSON.stringify(res.rows, null, 2)]; | ||
return res.rows.map(row => JSON.stringify(row)); | ||
return (0, utils_1.toColumns)(columnDefnFor(res), showTitles)(res.rows); | ||
return (0, utils_1.toColumns)(columnDefnFor(res), !options.notitles)(res.rows); | ||
} | ||
exports.prettyPrintDalResult = prettyPrintDalResult; |
{ | ||
"name": "@db-auto/dal", | ||
"description": "", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"main": "dist/index", | ||
@@ -6,0 +6,0 @@ "types": "dist/index", |
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
80