MiniM Overview |
MiniM Getting Started Guide
How to Export and Import Routines MiniM Database Server stores all routines inside of databases in globals. To use routines on different computers - for developers, for testers, for production or other purposes, MiniM Database Server implements exporting and importing of routines. This actions can be done by default in two applications - in MiniM Control Center and in MiniM Routine Editor. To run them in Windows, right click on the tray icon of MiniM Controller of select from main menu. Ro run them in Linux run MiniM Launcher and click application's buttons. MiniM Control Center do exporting and importing after selecting need database and Routine's node: ![]() Or after selection of routine in list of available routines and right click and selection of export command: ![]() To select more than one routine to export, press Ctrl key and while pressed click by left mouse to routine's names. After selection routines export operation will be applyed to all selected routines. After selection of routines and choosing export command MiniM Control Center offers about file name and format need to be used: ![]() Now by default MiniM Database Server tools support formats of ANSI, Cache and MSM. If you are using only intermediate routines, you can use any of this formats. If you are using macro routines (.MAC and .INC), need to be used Cache format. In details differents from theese formats was described in Routine export file formats After export MiniM Control Center produces one file with routines source code inside. Note that this file is produced on local computer where MiniM Control Center runs (or in network shares accessible from local computer), not on the server. MiniM Routine Editor contains export command in the File menu: ![]() On this command MiniM Routine Editor offers to select routines to export: ![]() And, after selection of routines, offers to select file name and format to export: ![]() This dialogs may vary from version to version and can looks in depends of used operating system and can contain additional steps to choose format. Import operations can be done by the same way and this commands are near of exporting commands. Routine exporting also can be done by terminal utilities on the server side: ![]() To view all definitions of this utilities, see MiniM Advanced Guide. Main difference of exporting from MiniM Control Center (and MiniM Routine Editor) and from the CHUI utilities are in the directories - first applications use client's file system and server utilities use server's file system. In first case developer can view all available file system and directories, and in second case must understand what directories and what slash conventions are in use on the server. On using server-side export after exporting routines developers may require additional file transfer. One more way to export and import of routines are special utility set: MiniM CommandLine Tools. This tools are command-line oriented tools and runs on the client computer. In addition to default MiniM formats this tools supports GT.M file format (.m files). This tools was developed to connect MiniM Database Server with version control systems. This utilities contains not only export and import facility, and contains auto-synchronization tools to update changed routines only. MiniM CommandLine Tools are very usable to run from batsh files or shell script files to automate frequent operations. Export and import commands differs by the sequence of use: on export must be selected routines and than file name, and on import must be selected file name and routines inside of this file. Additionally, import commands offers to choose compile routines after import or not.
|
|
Info Support |