Skip to main content

Forge pivot — tables pivot enrichies (many_to_many avec attributs) et generateur make:pivot-crud.

Project description

forge-mvc-pivot

Opt-in Forge pour les tables pivot enrichies : associations many_to_many portant des attributs (par exemple position, note) sur la ligne de jointure.

Extrait du core de Forge (ADR-021) : le core ne contient que les primitives générales ; le pivot avancé est une brique spécialisée, optionnelle.

Contenu

  • PivotAdvancedService : lecture et écriture d'associations pivot avec attributs, contraintes déclaratives (required, nullable, unique_pair), accès base injectables (fetch_one, fetch_all, execute, insert_fn).
  • PivotFieldConstraint, PivotRow, PivotFormError, PivotConstraintError, pivot_error_to_form_error : contraintes, résultats et erreurs structurées.
  • Générateur forge make:pivot-crud <EntitéSource> <nomRelation> : échafaude un sous-CRUD pivot à partir d'une relation many_to_many déclarée dans relations.json.

Installation

pip install --pre forge-mvc-pivot

Le code généré importe forge_mvc_pivot : installez le paquet avant de lancer une application qui s'appuie sur un sous-CRUD pivot.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forge_mvc_pivot-1.0.0b16.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forge_mvc_pivot-1.0.0b16-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file forge_mvc_pivot-1.0.0b16.tar.gz.

File metadata

  • Download URL: forge_mvc_pivot-1.0.0b16.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for forge_mvc_pivot-1.0.0b16.tar.gz
Algorithm Hash digest
SHA256 41a49a0d18d992fb952eea7bafe09761df9a887bd41b28584b6c0cb7d1f3cad0
MD5 6a9827357ac8feb1958f15e33c6c4e28
BLAKE2b-256 5f72e1c0d637df0b9caba3889462c1cdf00a016f1cd06ffb0c8565c543ffa0f2

See more details on using hashes here.

File details

Details for the file forge_mvc_pivot-1.0.0b16-py3-none-any.whl.

File metadata

File hashes

Hashes for forge_mvc_pivot-1.0.0b16-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f5936cb7abc6d53a2bb1ff64239fcdd4754ba4764533069b038d062f87774b
MD5 a63f85c8b0f62b8b86437770e4c86494
BLAKE2b-256 200840a956458416af59493a81c6718148da89456ef76fed18c80da037978951

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page