【文件属性】:
文件名称:entity-object-mapper
文件大小:18KB
文件格式:ZIP
更新时间:2021-04-12 01:01:15
TypeScript
实体对象映射器
实体对象映射器从数据库中收集表信息,然后使用ejs模板生成代码。
支持Postgres和mysql作为数据源。
安装
用法
示例文件夹下的示例用法
const entityMapper = require ( "entity-object-mapper" )
const objectReverser = new entityMapper . DataSourceReverser ( "postgres" , {
host : "localhost" ,
port : "5432" ,
user : "postgres" ,
password : "password" ,
database : "db" ,
} ) ;
objectReve
【文件预览】:
entity-object-mapper-master
----bin()
--------default-templates()
--------cli.ts(6KB)
----package.json(826B)
----readme.md(737B)
----LICENSE(1KB)
----package-lock.json(19KB)
----src()
--------database-engine.ts(7KB)
--------utility.ts(2KB)
--------template-engine.ts(3KB)
--------index.ts(2KB)
----tsconfig.json(372B)
----.gitignore(3KB)