postgres-schema-ts::elephant:将PostgreSQL模式转换为TypeScript

时间:2021-04-15 11:13:01
【文件属性】:
文件名称:postgres-schema-ts::elephant:将PostgreSQL模式转换为TypeScript
文件大小:102KB
文件格式:ZIP
更新时间:2021-04-15 11:13:01
typescript postgres-schema TypeScript 后计划 将Postgres模式转换为TypeScript接口 MySQL实现: : 用法 # to infer an entire schema $ npx postgres-schema-ts postgresql://postgres@localhost:5433/db ? currentSchema=public # to infer a specific table $ npx postgres-schema-ts postgresql://postgres@localhost:5433/db ? currentSchema=public table_name 提示:您可以使用npx postgres-schema-ts > schema.ts将postgres-schema-ts的输出通过管道传输到文件中 演示版 对于以下SQL模式: CREATE TABL
【文件预览】:
postgres-schema-ts-master
----.gitignore(901B)
----.eslintrc(862B)
----package.json(2KB)
----src()
--------column-map.ts(2KB)
--------index.ts(1KB)
--------typescript.ts(707B)
--------pg-client.ts(3KB)
----bin()
--------index.ts(413B)
----jest.config.js(265B)
----tsconfig.json(518B)
----docker-compose.yml(206B)
----__tests__()
--------index.test.ts(3KB)
----README.md(3KB)
----jest-setup.ts(126B)
----yarn.lock(233KB)

网友评论