/[clarity]/doc/html/dictionary/connect.html
ViewVC logotype

Contents of /doc/html/dictionary/connect.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Wed Aug 16 20:18:39 2006 UTC (7 years, 8 months ago) by skleinberg
File MIME type: text/html
File size: 3344 byte(s)
Initial import
1 <html>
2 <head>
3 <title>CLARITY: Standard Generic Function CONNECT</title>
4 <link rel="stylesheet" href="../style.css">
5 <!--[if IE]>
6 <style>
7 .header {
8 border: 0px;
9 width: 100%;
10 }
11
12 #main #menu {
13 margin:10px 0px 0px 0px;
14 }
15
16 .content
17 {
18 background: #ffffff;
19 margin-top: 0px;
20 padding: 0px 0px 10px 155px;
21 }
22
23 .navigation
24 {
25 width: 90%;
26 top: -1px;
27 word-spacing: 5px;
28 position: relative;
29 text-align: right;
30 }
31
32 </style>
33 <![endif]-->
34
35 </head>
36
37 <body><div id="main">
38
39
40
41
42 <div class="header"
43 style="font-family:=Verdana,Arial,Helvetica; font-size: 18px; color: #003300;">
44 <strong><i>CLARITY: Standard Generic Function CONNECT</title></i></strong>
45 <div class="navigation">
46 <a href="../index.html" class="navigation-link">Home</a>
47 | <a href="clarity-package.html" class="navigation-link">Previous</a>
48 | <a href="insert.html" class="navigation-link">Next</a>
49 | <a href="../downloads.html" class="navigation-link">Downloads</a>
50 | <a href="../links.html" class="navigation-link">Links</a>
51 </div>
52
53 <div class="black-line"><img src="../images/shim.gif" height="1" width="1"></div>
54 <div class="middle-bar"><img src="../images/shim.gif" height="5" width="1"></div>
55 <div class="black-line"><img src="../images/shim.gif" height="1" width="1"></div>
56 </div>
57
58
59
60
61
62
63 <div class="content">
64 <div class="text">
65
66 <h1><i>Generic function</i> <strong>CONNECT</strong></h1>
67
68 <h2>Package:</h2>
69
70 <p><code>CLARITY</code></p>
71
72 <h2>Syntax:</h2>
73
74 <p>
75 <pre>
76 <b>connect</b> <i>db-spec</i>
77 => <i>database-connection</i>
78 </pre>
79 </p>
80
81 <h3>Arguments and Values:</h3>
82
83 <p><i><code>db spec</code></i>---a <i>string</i>
84 <p><i><code>(optional) connection</code></i>--- a <i>string</i>
85
86
87 <h2>Description:</h2>
88
89 <p>The generic function connect sets up a connection to an underlying CLARITY database for the handle.
90 It takes two parameter, <i>clarity handle</i>, to preserve one's session, and <i>db-spec</i>
91 a database connection string. </p>
92
93
94 <h3><a name="known_methods">Known Methods</a>:</h3>
95
96 <p>
97 <ul>
98 <li>
99 <p>
100 <pre>
101 <b>connect</b> (<i>clarity-handle-object</i> clarity-handle) (<i>dp-spec</i> string)
102 => <i>database-connection</i>
103 </pre>
104 </p>
105
106 <p></p>
107 </li>
108
109 <li>
110 <p>
111 <pre>
112 <b>connect</b> (<i>clarity-handle-object</i> clarity-handle) (<i>dp-spec</i> string))
113 => <i>database-connection</i>
114 </pre>
115 </p>
116
117 <p>This uses the method sqlcon in place of a connection string.&nbsp In this case, db spec would be the null
118 string, "".</p>
119 </li>
120
121 </ul>
122 </p>
123
124 <h2>Examples:</h2>
125
126 <p><pre>cl-prompt: (clarity:<b>connect</b> myclarityhandle "data source name/user/password")
127 #&lt;CLARITY:CLARITY-HANDLE 2061155C&gt; connecting as "data source name/user"
128 #&lt;SQL::ODBC-DATABASE "data source name/user" 205F450C&gt;</pre></p>
129
130 <h2>Affected By:</h2>
131
132 <p>None.</p>
133
134 <h2>Exceptional Situations:</h2>
135
136 <p>None.</p>
137
138 <h2>See Also:</h2>
139
140 <p>None</p>
141
142 <h2>Notes:</h2>
143
144 <p>None.</p>
145
146
147
148 <hr>
149
150
151 <h1>News</h1>
152
153 <p>News in chronological order, most recent on top.
154 </p>
155
156 <ul>
157 <li><strong>2006-07-24 </strong><br>
158 Completed description.
159 </li>
160
161 </ul>
162
163
164
165 <div class="copyright">
166 &copy; 2006, Samantha Kleinberg, all rights reserved.
167 </div>
168
169
170
171
172 </div></body>
173 </html>

  ViewVC Help
Powered by ViewVC 1.1.5