mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 23:32:42 +01:00
Author:Peter Gummer
Date:2011-02-20T23:20:17.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@766 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -4,13 +4,20 @@
|
||||
[[Property:uuid|a6b6a676-8660-ce2d-6f37-03de7f23a78e]]
|
||||
==Compiling and viewing==
|
||||
|
||||
You may start ec through a command of the following form:
|
||||
You may start ec through a command in one of the following forms:
|
||||
:'''ec''' ''option'' ... [''class_name''][''feature_name'']
|
||||
:'''ec''' ''option'' ... [''class_file_name'' [-library ''library_name'']]
|
||||
|
||||
In the first form:
|
||||
|
||||
''class_name'', if present, must be the name of a class of the system to which '''ec''' is applied. This system is identified by its configuration file; by default this is the file called Ace.ecf in the working directory, but you can select any other one through the -config ''file_name'' option. Similarly, the default project directory is the working directory, but you can select another through the -project_path ''directory_name'' option.
|
||||
|
||||
''feature_name'', if present, must be the final name of a feature of the class called ''class_name''. <br/>
|
||||
|
||||
In the second form:
|
||||
|
||||
''class_file_name'', is the name of a file in the working directory which is assumed to contain the root class of a system to be compiled. The presence of a configuration file is not assumed, so this form can be used to compile a system from a root class and no configuration file. A configuration file will be built with default system and root cluster names based on the name of the root class. Other class files in the working directory will be used if necessary, as will EiffelBase, plus any library specified with the ''-library'' option.
|
||||
|
||||
The table below lists the available ''options'', the arguments they require, and their effect:
|
||||
|
||||
|
||||
@@ -117,7 +124,11 @@ The table below lists the available ''options'', the arguments they require, and
|
||||
| -keep
|
||||
|
|
||||
| Keep assertions in final mode. Useful with -finalize only.
|
||||
|-
|
||||
|-
|
||||
| -library
|
||||
| library_name
|
||||
| Library is included in the compile when a ''class_file_name'' is given.
|
||||
|-
|
||||
| -loop
|
||||
|
|
||||
| Enter interactive mode. See below.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[[Property:title|Database Connection]]
|
||||
[[Property:weight|0]]
|
||||
[[Property:uuid|2cf2cb7c-e28d-5d06-b03e-e2b17c1f6879]]
|
||||
* To connect to your database, you have to create a '''handle''': this handle actually links the interface classes with corresponding implementation classes mapped to your DBMS. This handle is implemented by the DATABASE_APPL class:
|
||||
* To connect to your database, you have to create a '''handle''': this handle actually links the interface classes with the corresponding implementation classes mapped to your DBMS. This handle is implemented by the DATABASE_APPL class:
|
||||
<code>
|
||||
database_appl: DATABASE_APPL [ODBC]
|
||||
-- Database handle.
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
{{note|The generic parameter of <eiffel>DATABASE_APPL</eiffel> specifies the actual DBMS used. }}
|
||||
|
||||
* Once your handle is created, you have to create a session manager which will allow you to manage your database, specifically to establish connection, disconnect and also handle errors. The class <eiffel>DB_CONTROL</eiffel> enables your application to plainly control the functioning and status of your database and to request any information about it.
|
||||
* Once your handle is created, you have to create a session manager which will allow you to manage your database; specifically, to establish a connection, disconnect and also handle errors. The class <eiffel>DB_CONTROL</eiffel> enables your application to control the functioning and status of your database and to request any information about it.
|
||||
<code>
|
||||
session_control: DB_CONTROL
|
||||
-- Session control.
|
||||
|
||||
Reference in New Issue
Block a user