@azimutt/models

中文文档
0.1.20发布于 2025/02/19MITTypeScriptCommonJS近 30 天下载 2383

Define a standard database models for Azimutt.

原始使用文档

@azimutt/models

A library defining common models and utilities for Azimutt.

Main models:

  • database: defines a generic database infos (structure & stats), used for every connector and serde
  • project: defines an Azimutt project, holding everything
  • connector: defines the interface to connect to any database

Here are the main utilities:

  • infer schema: infer a schema from a list of JSON objects
  • infer relations: infer relations between tables based on column names and values

Publish

  • update package.json version
  • update lib versions (pnpm -w run update + manual)
  • test with pnpm run dry-publish and check azimutt-models-x.y.z.tgz content
  • launch pnpm publish --no-git-checks --access public

View it on npm.

Dev

If you need to develop on multiple libs at the same time (ex: want to update a connector and try it through the CLI), depend on local libs but publish & revert before commit.

  • Depend on a local lib: pnpm add <lib>, ex: pnpm add @azimutt/utils
  • "Publish" lib locally by building it: pnpm run build

版本与发布记录

@azimutt/models 共发布 21 个版本,首次发布于 2024/04/25;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.1.20latest2025/02/191.7 年前
0.1.192025/01/211.8 年前
0.1.182025/01/151.8 年前
0.1.172024/11/301.9 年前
0.1.162024/11/112 年前
0.1.152024/09/302 年前

关于 @azimutt/models 的常见问题

@azimutt/models 是什么?

Define a standard database models for Azimutt.

如何安装 @azimutt/models?

在项目目录运行 npm install @azimutt/models,或使用 pnpm add / yarn add / bun add。

@azimutt/models 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@azimutt/models 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@azimutt/models 可以商用吗?

@azimutt/models 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@azimutt/models 的下载量有多少?

根据 npm 官方下载统计,@azimutt/models 在 2026/10/08 – 2026/11/06 这 30 天内被下载 2,383 次,日均约 79 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@azimutt/models 还在维护吗?

最新版本 0.1.20 发布于 2025/02/19(1.7 年前);至今共发布 21 个版本,其中过去 12 个月发布了 0 个;首次发布于 2024/04/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。