Exhibition-MetaTool

Aus Info-Theke
Version vom 1. August 2021, 17:55 Uhr von Hamatoma (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „= Links = * Exhibition = Introduction = '''meta_tool''' is a command line tool for creating source code and data files of the dev-app. '''Note''': meta_…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Links[Bearbeiten]

Introduction[Bearbeiten]

meta_tool is a command line tool for creating source code and data files of the dev-app.

Note: meta_tool is not a static program: To avoid complicated parsing it uses dart source files with meta data. Therefore if the meta data are changed the tool must be recreated.

Another consequence is: each dev-app needs its own meta_tool, in other words: meta_tool is part of the dev-app.

Usage[Bearbeiten]

  • call it without arguments:
Usage: meta_tool MODE MODULE
  Generate code specified by MODE for the module MODULE.
MODE:
  all-modules
    Prints the module names.
  print-modules
    Prints the file lib/meta/modules.dart.
  print-table MODULE
    Prints the SQL table definition of MODULE.
  print-data MODULE
    Creates the data storage class of MODULE
  update-modules
    Generates all module files depending on the meta data.
MODULE: 
  The name of the module, e.g. "Users"
Example:
meta_tool print-table Users