13 lines
518 B
TypeScript
13 lines
518 B
TypeScript
|
|
import { nocoApi } from './common.ts';
|
|
import util from 'node:util';
|
|
import { writeFileSync } from 'node:fs';
|
|
|
|
// const res =await nocoApi.record.getTableMeta()
|
|
// // console.log(util.inspect(res, { depth: null, colors: true }))
|
|
// const keys = Object.keys(res.data || {})
|
|
// console.log('表字段列表:', keys, res.data.schema);
|
|
// writeFileSync('table-metadata.json', JSON.stringify(res, null, 2));
|
|
|
|
const res2 = await nocoApi.record.getTableSchema()
|
|
console.log(util.inspect(res2, { depth: null, colors: true })) |