@erdoai/cli 0.159.0 → 0.161.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7927,7 +7927,7 @@ Read one with: erdo datasets fetch ${res.dataset_slug} --revision <id> --sql "SE
|
|
|
7927
7927
|
});
|
|
7928
7928
|
datasetsCmd.command("schema <slug>").alias("describe").description(
|
|
7929
7929
|
"Show physical columns by default, or the declared write contract with --declared. File datasets read the stored `data` table; integration datasets show their discovered resource tables and columns. For an integration dataset, choose a resource/table explicitly when fetching: `datasets fetch <slug> --sql 'SELECT * FROM <table>'`."
|
|
7930
|
-
).option("--json", "print the raw JSON result instead of a table").option("--declared", "read the declared write contract (column names, type hints, required flags, semantic roles) instead of the physical columns").action(async (slug, opts) => {
|
|
7930
|
+
).option("--json", "print the raw JSON result instead of a table").option("--declared", "read the declared write contract (column names, type hints, required flags, semantic roles, currency) instead of the physical columns").action(async (slug, opts) => {
|
|
7931
7931
|
try {
|
|
7932
7932
|
const client = new ErdoClient();
|
|
7933
7933
|
if (opts.declared) {
|
|
@@ -7950,8 +7950,8 @@ datasetsCmd.command("schema <slug>").alias("describe").description(
|
|
|
7950
7950
|
return;
|
|
7951
7951
|
}
|
|
7952
7952
|
printAlignedTable(
|
|
7953
|
-
["column", "type", "required", "semantic role", "description"],
|
|
7954
|
-
schema.columns.map((column) => [column.name, column.type || "", column.required ? "yes" : "no", column.semantic_role || "", column.description || ""])
|
|
7953
|
+
["column", "type", "required", "semantic role", "currency", "description"],
|
|
7954
|
+
schema.columns.map((column) => [column.name, column.type || "", column.required ? "yes" : "no", column.semantic_role || "", column.currency || "", column.description || ""])
|
|
7955
7955
|
);
|
|
7956
7956
|
return;
|
|
7957
7957
|
}
|