Author:bmeyer

Date:2008-12-07T14:11:46.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@126 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
bmeyer
2008-12-07 14:11:46 +00:00
parent 6bf5091758
commit ee8b3324fc
2 changed files with 15 additions and 11 deletions

View File

@@ -3,11 +3,13 @@
[[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:
<code>
database_appl: DATABASE_APPL [ODBC]
-- Database handle.
...
create database_appl.login (a_name, a_psswd)
database_appl.set_base
database_appl: DATABASE_APPL [ODBC]
-- Database handle.
...
create database_appl.login (a_name, a_psswd)
database_appl.set_base
</code>
<br/>
@@ -20,11 +22,13 @@
* 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.
<code>
session_control: DB_CONTROL
-- Session control.
...
create session_control.make
session_control.connect
session_control: DB_CONTROL
-- Session control.
...
create session_control.make
session_control.connect
</code>
{{note|Take a look at the [[Database control|database control]] part to see how to use <eiffel>DB_CONTROL</eiffel> capabilities. }}

View File

@@ -1,7 +1,7 @@
[[Property:title|Why Eiffel?]]
[[Property:weight|-1]]
[[Property:uuid|df007537-c0dd-2ea6-233b-764ad483eb65]]
This book contains some of the arguments for using Eiffel.
This book collects arguments for using Eiffel.
Even though we in the Eiffel community know that Eiffel is the most advanced object-oriented software development framework on this planet, that fact may not be so obvious to everyone else. Consequently, we felt that it would be helpful to provide some brief documents that spell out the reasons why the people who have chosen Eiffel have been so successful.