@azimutt/models
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

@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
  • serde: defines the interface to parse and generate database schema

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 (npm run update + manual) & run npm install
  • test with npm run dry-publish and check azimutt-models-x.y.z.tgz content
  • launch npm publish --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: npm install <path>, ex: npm install ../utils
  • "Publish" lib locally by building it: npm run build

Readme

Keywords

none

Package Sidebar

Install

npm i @azimutt/models

Homepage

azimutt.app

Weekly Downloads

128

Version

0.1.5

License

MIT

Unpacked Size

1.7 MB

Total Files

345

Last publish

Collaborators

  • sbouaked
  • loicknuchel