EOUTIL(1) | General Commands Manual | EOUTIL(1) |
eoutil - Command line utility to perform database and EOF oriented tasks.
eoutil command [command\-options]
This manual page describes briefly the eoutil command.
eoutil is a command line utility that performs database and Enterprise Objects Framework-related tasks. It allows one to connect to data sources, dump data from them or modify model features.
eoutil supports the following commands, with the corresponding command-options:
This command reads data from <source> and dumps it to <dest>. The dump may include bits of DML that create bits of database schema. The \-source flag is optional if only schema is to be created (i.e. no data is being dumped). The following is a list of possible values for each of the arguments in the command:
This command converts the type mapping in a model for the data source specified by the connection dictionary URL. The connection dictionary in the new model is set to connectionDictionary.
This command attempts to connect to a data source using the adaptor named adaptorName with connectionDictionary, or using the connection dictionary in model. It returns an exit status of 0 if successful and 1 otherwise. This is primarily useful for scripts.
# eoutil dump Movies.eomodeld \-source plist \-dest database \-schemaCreate tables primaryKeySupport foreignKeyConstraints < MovieData.plist
Creates the tables in the database, reads data in plist format from,stdin stores the data in the database listed in the connection dictionary of model, creates primary key support in the database, and creates foreign key constraints corresponding to the relationship definitions.
# eoutil convert Movies.eomodeld PostgreSQL '{ databaseName = test; hostName = localhost; userName = postgres; password = postgres; }' M.eomodeld
Converts types in Movies.eomodeld file to PostgreSQL types and writes the converted model to ./M.eomodel
# eoutil connect PostgreSQL '{ databaseName = test; hostName = localhost; userName = postgres; password = postgres; }'
Attempts to connect to a PostgreSQL database on host localhost.
eoutil was written by Stephane Corthesy <stephane@sente.ch>.
This manual page was written by Federico Giménez Nieto <fgimenez@coit.es> for the Debian project (but may be used by others).
10 March 2010 |