
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@zenorm/generate
Advanced tools
ZenORM Table Structure Code Generation Tool
表结构代码生成工具
配置项 | 类型 | 默认值 | 说明 |
---|---|---|---|
host | string | 无 | 目标数据库地址 |
port | number | 无 | 数据库端口 |
user | string | 无 | 数据库用户名 |
password | string | 无 | 数据库密码 |
database | string | 无 | 数据库名 |
outputDir | string | './src/model' | 代码输出目录 |
tablesFilename | string | '_tables' | 生成数据库表结构文件名 |
repositoriesFilename | string | '_repositories' | 生成 repositories 文件名 |
globalFilename | string | 无 | 全局文件名 - 如果设置所有表将继承于此 - 例如设置为:'_global' - 如果文件不存在则自动创建 |
bindQuery | boolean | false | repositories 文件生成 bindQuery(query: QueryParam) 方法用于设置模型的 Query 源 - 并生成模型的静态 Repository 方法 |
generateRepositories | boolean | false | 是否生成 Repositories 类 - 通常用于多租户模式做数据库前置绑定 Query 对象 |
declareRepositoriesToModules | string[] | 无 | 是否需将 Repositories 实例定义到目标模块中 - 例如: ["@zenweb/core.Core.repositories"] |
filter | string | 无 | 表过滤规则正则 |
include | string | 无 | 表包含规则正则 |
FAQs
Easy ORM, easy query. easy typing! Auto generate typescript declaration.
The npm package @zenorm/generate receives a total of 1 weekly downloads. As such, @zenorm/generate popularity was classified as not popular.
We found that @zenorm/generate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.