Skip to content

Commit a725a25

Browse files
committed
Install header ... document it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@19254 72102866-910b-0410-8b05-ffd578937521
1 parent ced08a4 commit a725a25

File tree

4 files changed

+128
-48
lines changed

4 files changed

+128
-48
lines changed

Diff for: ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Fri May 07 09:15:00 2004 Richard Frith-Macdonald <[email protected]>
33
Add methods to log duration of any statements over a certain
44
limit.
55
Tidy instance variables ... prefix mprivate ones with underscore.
6+
Install header!
67

78
Thu Apr 29 15:20:00 2004 Richard Frith-Macdonald <[email protected]>
89

Diff for: GNUmakefile

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ include $(GNUSTEP_MAKEFILES)/common.make
22

33
-include config.make
44

5+
PACKAGE_NAME = SQLClient
6+
57
TEST_TOOL_NAME = testPostgres testMySQL testECPG
68
testPostgres_OBJC_FILES = testPostgres.m
79
testPostgres_LIB_DIRS += -L./obj
@@ -17,8 +19,14 @@ testECPG_LIB_DIRS += -L./obj
1719

1820

1921
LIBRARY_NAME=SQLClient
22+
2023
SQLClient_OBJC_FILES = SQLClient.m
2124

25+
SQLClient_HEADER_FILES = SQLClient.h
26+
27+
28+
SQLClient_HEADER_FILES_INSTALL_DIR = SQLClient
29+
2230

2331
DOCUMENT_NAME=SQLClient
2432
SQLClient_AGSDOC_FILES = SQLClient.h

Diff for: SQLClient.h

+5
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@
130130
to modify <code>configure.ac</code> so that it will detect the
131131
required headers and libraries on your system, and supply na patch.
132132
</item>
133+
<item>
134+
Once the library is installed, you can include the header file
135+
<code>&lt;SQLClient/SQLClient.h%gt;</code> and link your programs
136+
with the <code>SQLClient</code> library to use it.
137+
</item>
133138
</list>
134139
<p>
135140
Bug reports, patches, and contributions (eg a backend bundle for a

Diff for: SQLClient.html

+114-48
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ <h3>Authors</h3>
1212
<dd>
1313
</dd>
1414
</dl>
15-
<p><b>Version:</b> 1.2</p>
16-
<p><b>Date:</b> 2004/04/27 08:23:15</p>
15+
<p><b>Version:</b> 1.4</p>
16+
<p><b>Date:</b> 2004/05/07 08:16:16</p>
1717
<p><b>Copyright:</b> (C) 2004 Free Software Foundation, Inc.</p>
1818

1919
<div>
@@ -217,6 +217,15 @@ <h2><a name="001003000000">
217217
supply na patch.
218218

219219
</li>
220+
<li>
221+
222+
Once the library is installed, you can include the
223+
header file
224+
<code>&lt;SQLClient/SQLClient.h%gt;</code> and link
225+
your programs with the <code>SQLClient</code> library
226+
to use it.
227+
228+
</li>
220229
</ul>
221230
<p>
222231

@@ -268,60 +277,40 @@ <h2><a name="class$SQLClient">SQLClient</a> : <a rel="gsdoc" href="/usr/home/bra
268277
</p>
269278
<br/><hr width="50%" align="left" />
270279
<h2>Instance Variables for SQLClient Class</h2>
271-
<h3><a name="ivariable$SQLClient*client">client</a></h3>
272-
@private NSString* <b>client</b>;<br />
280+
<h3><a name="ivariable$SQLClient*_client">_client</a></h3>
281+
@private NSString* <b>_client</b>;<br />
273282
<p>
274283

275284
Identifier within backend
276285

277286
</p>
278287
<hr width="25%" align="left" />
279-
<h3><a name="ivariable$SQLClient*connected">connected</a></h3>
280-
@private BOOL <b>connected</b>;<br />
281-
<p>
282-
283-
A flag indicating whether this instance is currently
284-
connected to the backend database server. This
285-
variable must <em>only</em> be set by the
286-
<a rel="gsdoc" href="#method$SQLClient-backendConnect">
287-
-backendConnect
288-
</a>
289-
290-
or
291-
<a rel="gsdoc" href="#method$SQLClient-backendDisconnect">
292-
-backendDisconnect
293-
</a>
294-
295-
methods.
296-
297-
</p>
298-
<hr width="25%" align="left" />
299-
<h3><a name="ivariable$SQLClient*database">database</a></h3>
300-
@private NSString* <b>database</b>;<br />
288+
<h3><a name="ivariable$SQLClient*_database">_database</a></h3>
289+
@private NSString* <b>_database</b>;<br />
301290
<p>
302291

303292
The configured database name/host
304293

305294
</p>
306295
<hr width="25%" align="left" />
307-
<h3><a name="ivariable$SQLClient*debugging">debugging</a></h3>
308-
@private unsigned int <b>debugging</b>;<br />
296+
<h3><a name="ivariable$SQLClient*_debugging">_debugging</a></h3>
297+
@private unsigned int <b>_debugging</b>;<br />
309298
<p>
310299

311300
The current debugging level
312301

313302
</p>
314303
<hr width="25%" align="left" />
315-
<h3><a name="ivariable$SQLClient*extra">extra</a></h3>
316-
@private void* <b>extra</b>;<br />
304+
<h3><a name="ivariable$SQLClient*_duration">_duration</a></h3>
305+
@private NSTimeInterval <b>_duration</b>;<br />
317306
<p>
318307

319-
For subclass specific data
308+
<em>Description forthcoming.</em>
320309

321310
</p>
322311
<hr width="25%" align="left" />
323-
<h3><a name="ivariable$SQLClient*inTransaction">inTransaction</a></h3>
324-
@private BOOL <b>inTransaction</b>;<br />
312+
<h3><a name="ivariable$SQLClient*_inTransaction">_inTransaction</a></h3>
313+
@private BOOL <b>_inTransaction</b>;<br />
325314
<p>
326315

327316
A flag indicating whether this instance is currently
@@ -341,8 +330,8 @@ <h3><a name="ivariable$SQLClient*inTransaction">inTransaction</a></h3>
341330

342331
</p>
343332
<hr width="25%" align="left" />
344-
<h3><a name="ivariable$SQLClient*lastOperation">lastOperation</a></h3>
345-
@private NSDate* <b>lastOperation</b>;<br />
333+
<h3><a name="ivariable$SQLClient*_lastOperation">_lastOperation</a></h3>
334+
@private NSDate* <b>_lastOperation</b>;<br />
346335
<p>
347336

348337
Timestamp of last operation. <br /> Maintained by
@@ -360,35 +349,63 @@ <h3><a name="ivariable$SQLClient*lastOperation">lastOperation</a></h3>
360349

361350
</p>
362351
<hr width="25%" align="left" />
363-
<h3><a name="ivariable$SQLClient*lock">lock</a></h3>
364-
@private NSRecursiveLock* <b>lock</b>;<br />
352+
<h3><a name="ivariable$SQLClient*_name">_name</a></h3>
353+
@private NSString* <b>_name</b>;<br />
365354
<p>
366355

367-
Maintain thread-safety
356+
Unique identifier for instance
368357

369358
</p>
370359
<hr width="25%" align="left" />
371-
<h3><a name="ivariable$SQLClient*name">name</a></h3>
372-
@private NSString* <b>name</b>;<br />
360+
<h3><a name="ivariable$SQLClient*_password">_password</a></h3>
361+
@private NSString* <b>_password</b>;<br />
373362
<p>
374363

375-
Unique identifier for instance
364+
The configured password
376365

377366
</p>
378367
<hr width="25%" align="left" />
379-
<h3><a name="ivariable$SQLClient*password">password</a></h3>
380-
@private NSString* <b>password</b>;<br />
368+
<h3><a name="ivariable$SQLClient*_user">_user</a></h3>
369+
@private NSString* <b>_user</b>;<br />
381370
<p>
382371

383-
The configured password
372+
The configured user
384373

385374
</p>
386375
<hr width="25%" align="left" />
387-
<h3><a name="ivariable$SQLClient*user">user</a></h3>
388-
@private NSString* <b>user</b>;<br />
376+
<h3><a name="ivariable$SQLClient*connected">connected</a></h3>
377+
@private BOOL <b>connected</b>;<br />
389378
<p>
390379

391-
The configured user
380+
A flag indicating whether this instance is currently
381+
connected to the backend database server. This
382+
variable must <em>only</em> be set by the
383+
<a rel="gsdoc" href="#method$SQLClient-backendConnect">
384+
-backendConnect
385+
</a>
386+
387+
or
388+
<a rel="gsdoc" href="#method$SQLClient-backendDisconnect">
389+
-backendDisconnect
390+
</a>
391+
392+
methods.
393+
394+
</p>
395+
<hr width="25%" align="left" />
396+
<h3><a name="ivariable$SQLClient*extra">extra</a></h3>
397+
@private void* <b>extra</b>;<br />
398+
<p>
399+
400+
For subclass specific data
401+
402+
</p>
403+
<hr width="25%" align="left" />
404+
<h3><a name="ivariable$SQLClient*lock">lock</a></h3>
405+
@private NSRecursiveLock* <b>lock</b>;<br />
406+
<p>
407+
408+
Maintain thread-safety
392409

393410
</p>
394411
<hr width="25%" align="left" />
@@ -399,10 +416,14 @@ <h3><a name="ivariable$SQLClient*user">user</a></h3>
399416
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Convenience)-queryString:,...">-queryString:,...</a></li>
400417
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Convenience)-singletons:">-singletons:</a></li>
401418
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)+debugging">+debugging</a></li>
419+
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)+durationLogging">+durationLogging</a></li>
402420
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)+setDebugging:">+setDebugging:</a></li>
421+
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)+setDurationLogging:">+setDurationLogging:</a></li>
403422
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-debug:,...">-debug:,...</a></li>
404423
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-debugging">-debugging</a></li>
424+
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-durationLogging">-durationLogging</a></li>
405425
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-setDebugging:">-setDebugging:</a></li>
426+
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-setDurationLogging:">-setDurationLogging:</a></li>
406427
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-backendConnect">-backendConnect</a></li>
407428
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-backendDisconnect">-backendDisconnect</a></li>
408429
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-backendExecute:">-backendExecute:</a></li>
@@ -1371,18 +1392,31 @@ <h2><a rel="gsdoc" href="#class$SQLClient">SQLClient</a>(<a name="category$SQLCl
13711392
<b>Method summary</b>
13721393
<ul>
13731394
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+debugging">+debugging</a></li>
1395+
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+durationLogging">+durationLogging</a></li>
13741396
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+setDebugging:">+setDebugging:</a></li>
1397+
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+setDurationLogging:">+setDurationLogging:</a></li>
13751398
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-debug:,...">-debug:,...</a></li>
13761399
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-debugging">-debugging</a></li>
1400+
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-durationLogging">-durationLogging</a></li>
13771401
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-setDebugging:">-setDebugging:</a></li>
1402+
<li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-setDurationLogging:">-setDurationLogging:</a></li>
13781403
</ul>
13791404
<hr width="50%" align="left" />
13801405
<h3><a name="method$SQLClient(Logging)+debugging">debugging&nbsp;</a></h3>
13811406
+ (unsigned int) <b>debugging</b>;<br />
13821407
<p>
13831408

13841409
Return the class-wide debugging level, which is
1385-
inherited by all newly created minstances.
1410+
inherited by all newly created instances.
1411+
1412+
</p>
1413+
<hr width="25%" align="left" />
1414+
<h3><a name="method$SQLClient(Logging)+durationLogging">durationLogging&nbsp;</a></h3>
1415+
+ (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>durationLogging</b>;<br />
1416+
<p>
1417+
1418+
Return the class-wide duration logging threshold,
1419+
which is inherited by all newly created instances.
13861420

13871421
</p>
13881422
<hr width="25%" align="left" />
@@ -1393,6 +1427,15 @@ <h3><a name="method$SQLClient(Logging)+setDebugging:">setDebugging:&nbsp;</a></h
13931427
Set the debugging <var>level</var> to be inherited by
13941428
all new instances.
13951429

1430+
</p>
1431+
<hr width="25%" align="left" />
1432+
<h3><a name="method$SQLClient(Logging)+setDurationLogging:">setDurationLogging:&nbsp;</a></h3>
1433+
+ (void) <b>setDurationLogging:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)threshold;<br />
1434+
<p>
1435+
1436+
Set the duration logging <var>threshold</var> to be
1437+
inherited by all new instances.
1438+
13961439
</p>
13971440
<hr width="25%" align="left" />
13981441
<h3><a name="method$SQLClient(Logging)-debug:,...">debug:&nbsp;,...</a></h3>
@@ -1411,6 +1454,18 @@ <h3><a name="method$SQLClient(Logging)-debugging">debugging&nbsp;</a></h3>
14111454

14121455
Return the current debugging level.
14131456

1457+
</p>
1458+
<hr width="25%" align="left" />
1459+
<h3><a name="method$SQLClient(Logging)-durationLogging">durationLogging&nbsp;</a></h3>
1460+
- (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>durationLogging</b>;<br />
1461+
<p>
1462+
1463+
Returns the threshold above which queries and
1464+
statements taking a long time to execute are
1465+
logged. A negative value (default) indicates that
1466+
this logging is disabled. A value of zero means that
1467+
all statements are logged.
1468+
14141469
</p>
14151470
<hr width="25%" align="left" />
14161471
<h3><a name="method$SQLClient(Logging)-setDebugging:">setDebugging:&nbsp;</a></h3>
@@ -1421,6 +1476,17 @@ <h3><a name="method$SQLClient(Logging)-setDebugging:">setDebugging:&nbsp;</a></h
14211476
overrides the default <var>level</var> inherited
14221477
from the class.
14231478

1479+
</p>
1480+
<hr width="25%" align="left" />
1481+
<h3><a name="method$SQLClient(Logging)-setDurationLogging:">setDurationLogging:&nbsp;</a></h3>
1482+
- (void) <b>setDurationLogging:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)threshold;<br />
1483+
<p>
1484+
1485+
Set a <var>threshold</var> above which queries and
1486+
statements taking a long time to execute are
1487+
logged. A negative value (default) disables this
1488+
logging. A value of zero logs all statements.
1489+
14241490
</p>
14251491
<hr width="25%" align="left" />
14261492

0 commit comments

Comments
 (0)