Zymonic Toolkit Definition

From Zymonic

This page contains all of the options for:

sudo zymonic_toolkit.pl Definition

See the manual page for the definition toolkit for further details.


Build[edit]

Builds the cache for a system definition

sudo zymonic_toolkit.pl Definition build
  • System Definition[edit]

    The name of the sub-directory in which the definition is stored. This is required for the command to work.

    sudo zymonic_toolkit.pl Definition build --definition FOLDERPATH
    
  • Configuration Directory[edit]

    A direct to be used for retrieving/storing configuration for this application server - defaults to /etc/zymonic

    sudo zymonic_toolkit.pl Definition build --configdir FOLDERPATH
    
  • Full Update[edit]

    Runs the definition building from an empty cache, i.e., does not attempt an incremental build.

    sudo zymonic_toolkit.pl Definition build --full yes
    


Export Definition[edit]

Gets the definition of a Zymonic object or objects including defs for any fields, keys or permissions referenced by zname. Can be used for in conjunction with import_from_db, to create zymonic xml and tables, from normal database tables, click here to see a worked example of this.

sudo zymonic_toolkit.pl Definition export_def --definition [system] --zname [zname]
  • System Definition[edit]

    The name of the sub-directory in which the definition is stored. This is required for the command to work.

    sudo zymonic_toolkit.pl Definition export_def --definition FOLDERPATH
    
  • Configuration Directory[edit]

    A direct to be used for retrieving/storing configuration for this application server - defaults to /etc/zymonic

    sudo zymonic_toolkit.pl Definition export_def --configdir FOLDERPATH
    
  • Cache File[edit]

    Absolute path of specific cache file to use, if not set will use the most recent.

    sudo zymonic_toolkit.pl Definition export_def --cache_file FILEPATH
    
  • Zymonic Object Type[edit]

    The name of the object type, e.g., "Field".

    sudo zymonic_toolkit.pl Definition export_def --type TYPE
    
  • Zymonic Object ZName[edit]

    The ZName of the object.

    sudo zymonic_toolkit.pl Definition export_def --zname ZNAME
    
  • Export Type[edit]

    Used to specify the format of the export, defaults to XML.

    sudo zymonic_toolkit.pl Definition export_def --export_type FORMAT
    
  • User Definitions Only[edit]

    Set true to only export user definitions, as opposed to auto-added ones.

    sudo zymonic_toolkit.pl Definition export_def --user_definitions_only yes
    

Get Definition[edit]

Gets the definition of a Zymonic object or objects

sudo zymonic_toolkit.pl Definition get_def
  • System Definition[edit]

    The name of the sub-directory in which the definition is stored. This is required for the command to work.

    sudo zymonic_toolkit.pl Definition get_def --definition FOLDERPATH
    
  • Strip Metadata[edit]

    Removes the metadata from the output.

    sudo zymonic_toolkit.pl Definition get_def -stripmeta yes
    
  • Perl Mode[edit]

    This outputs the results as a Perl hash instead of XML - particularly useful when coding definitions.

    sudo zymonic_toolkit.pl Definition get_def --perlmode yes
    
  • Configuration Directory[edit]

    A direct to be used for retrieving/storing configuration for this application server - defaults to /etc/zymonic

    sudo zymonic_toolkit.pl Definition get_def --configdir FOLDERPATH
    
  • Cache File[edit]

    Absolute path of specific cache file to use, if not set will use the most recent.

    sudo zymonic_toolkit.pl Definition get_def --cache_file FILEPATH
    
  • Zymonic Object Type[edit]

    The name of the object type, e.g., "Field".

    sudo zymonic_toolkit.pl Definition get_def --type TYPE
    
  • Zymonic Object ZName[edit]

    The ZName of the object.

    sudo zymonic_toolkit.pl Definition get_def --zname ZNAME
    

Import from Database[edit]

Imports from the database as XML

sudo zymonic_toolkit.pl Definition import_from_db
  • Permissions[edit]

    List of permissions.

    sudo zymonic_toolkit.pl Definition import_from_db --permissions
    
  • Auto Create Maintenance Process[edit]

    Flag for if to autocreate maintenance process.

    sudo zymonic_toolkit.pl Definition import_from_db --AutoCreateMaintenanceProcess
    
  • Auto Create Form[edit]

    Flag for if to autocreate form.

    sudo zymonic_toolkit.pl Definition import_from_db --AutoCreateForm
    
  • Auto Create Filter[edit]

    Flag for if to autocreate filter.

    sudo zymonic_toolkit.pl Definition import_from_db --AutoCreateFilter
    
  • Add Missing Primary[edit]

    Flag so if there is no primary key on the table, add an autocreated one.

    sudo zymonic_toolkit.pl Definition import_from_db --addmissingprimary
    
  • DB Name[edit]

    Name of the database to import tables from.

    sudo zymonic_toolkit.pl Definition import_from_db --dbname NAME
    
  • ODBC Connect String[edit]

    Used by Zymonic::DB::odbc.

    sudo zymonic_toolkit.pl Definition import_from_db --odbcconnectstring STRING
    
  • DB Username[edit]

    Database username.

    sudo zymonic_toolkit.pl Definition import_from_db --dbusername USERNAME
    
  • DB Password[edit]

    Database password.

    sudo zymonic_toolkit.pl Definition import_from_db --dbpassword PASSWORD
    
  • System Definition[edit]

    The name of the sub-directory in which the definition is stored. This is required for the command to work.

    sudo zymonic_toolkit.pl Definition import_from_db --definition FOLDERPATH
    
  • Configuration Directory[edit]

    The name of the directory in which Zymonic definitions are stored; defaults to "/etc/zymonic".

    sudo zymonic_toolkit.pl Definition import_from_db --configdir FOLDERPATH
    
  • ZName Prefix[edit]

    User specified prefix to be added before znames, defaults to empty, automatically adds _

    sudo zymonic_toolkit.pl Definition import_from_db --znameprefix STRING
    
  • Field Zname Prefix[edit]

    User specified prefix to be added to field znames. Defaults to f_, automatically adds _ .

    sudo zymonic_toolkit.pl Definition import_from_db --fieldznameprefix STRING
    
  • Table ZName Prefix[edit]

    User specified prefix to be added to table znames. Defaults to t_, automatically adds _ .

    sudo zymonic_toolkit.pl Definition import_from_db --tableznameprefix STRING
    
  • Table Name[edit]

    Used to specify a table to import from the DB, rather that importing the entire DB.

    sudo zymonic_toolkit.pl Definition import_from_db --tablename TABLE
    

Help[edit]

When using a terminal to run zymonic_toolkit.pl the user will see prompts that contain the same information that is found within this manual.

sudo zymonic_toolkit.pl Definition help
  • Command[edit]

    The specific command to show help for. If not set then shows help for all commands.

    sudo zymonic_toolkit.pl Definition help --command COMMAND