【文件属性】:
文件名称:sql:GenJS - PostgreSQL 的 SQL 生成器
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-29 19:53:42
JavaScript
GenJS - SQL 文件生成器
生成 SQL 文件的示例模型:
var entities = {
"book":{
"attributes":{
"id":{"type":"Long","isPK":true},
"title":{"type":"String"},
"sells":{"type":"Integer"}
}
}
};
module.exports=entities;
生成这些 SQL 文件:
mysql :
-- mysql
-- book
CREATE TABLE book (
id bigint,
title varchar(),
sells integer
);
PostgreSQL :
-- postgresql
-- book
CREATE TABLE book
【文件预览】:
sql-master
----package.json(33B)
----templates()
--------postgresql-create.sql(2KB)
--------mysql-create.sql(2KB)
----bundle.js(60B)
----README.md(536B)