@@ -12,8 +12,8 @@ <h3>Authors</h3>
12
12
< dd >
13
13
</ dd >
14
14
</ 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 >
17
17
< p > < b > Copyright:</ b > (C) 2004 Free Software Foundation, Inc.</ p >
18
18
19
19
< div >
@@ -217,6 +217,15 @@ <h2><a name="001003000000">
217
217
supply na patch.
218
218
219
219
</ li >
220
+ < li >
221
+
222
+ Once the library is installed, you can include the
223
+ header file
224
+ < code > <SQLClient/SQLClient.h%gt;</ code > and link
225
+ your programs with the < code > SQLClient</ code > library
226
+ to use it.
227
+
228
+ </ li >
220
229
</ ul >
221
230
< p >
222
231
@@ -268,60 +277,40 @@ <h2><a name="class$SQLClient">SQLClient</a> : <a rel="gsdoc" href="/usr/home/bra
268
277
</ p >
269
278
< br /> < hr width ="50% " align ="left " />
270
279
< 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 />
273
282
< p >
274
283
275
284
Identifier within backend
276
285
277
286
</ p >
278
287
< 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 />
301
290
< p >
302
291
303
292
The configured database name/host
304
293
305
294
</ p >
306
295
< 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 />
309
298
< p >
310
299
311
300
The current debugging level
312
301
313
302
</ p >
314
303
< 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 />
317
306
< p >
318
307
319
- For subclass specific data
308
+ < em > Description forthcoming. </ em >
320
309
321
310
</ p >
322
311
< 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 />
325
314
< p >
326
315
327
316
A flag indicating whether this instance is currently
@@ -341,8 +330,8 @@ <h3><a name="ivariable$SQLClient*inTransaction">inTransaction</a></h3>
341
330
342
331
</ p >
343
332
< 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 />
346
335
< p >
347
336
348
337
Timestamp of last operation. < br /> Maintained by
@@ -360,35 +349,63 @@ <h3><a name="ivariable$SQLClient*lastOperation">lastOperation</a></h3>
360
349
361
350
</ p >
362
351
< 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 />
365
354
< p >
366
355
367
- Maintain thread-safety
356
+ Unique identifier for instance
368
357
369
358
</ p >
370
359
< 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 />
373
362
< p >
374
363
375
- Unique identifier for instance
364
+ The configured password
376
365
377
366
</ p >
378
367
< 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 />
381
370
< p >
382
371
383
- The configured password
372
+ The configured user
384
373
385
374
</ p >
386
375
< 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 />
389
378
< p >
390
379
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
392
409
393
410
</ p >
394
411
< hr width ="25% " align ="left " />
@@ -399,10 +416,14 @@ <h3><a name="ivariable$SQLClient*user">user</a></h3>
399
416
< li > < a rel ="gsdoc " href ="SQLClient.html#method$SQLClient(Convenience)-queryString:,... "> -queryString:,...</ a > </ li >
400
417
< li > < a rel ="gsdoc " href ="SQLClient.html#method$SQLClient(Convenience)-singletons: "> -singletons:</ a > </ li >
401
418
< 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 >
402
420
< 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 >
403
422
< li > < a rel ="gsdoc " href ="SQLClient.html#method$SQLClient(Logging)-debug:,... "> -debug:,...</ a > </ li >
404
423
< 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 >
405
425
< 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 >
406
427
< li > < a rel ="gsdoc " href ="SQLClient.html#method$SQLClient(Subclass)-backendConnect "> -backendConnect</ a > </ li >
407
428
< li > < a rel ="gsdoc " href ="SQLClient.html#method$SQLClient(Subclass)-backendDisconnect "> -backendDisconnect</ a > </ li >
408
429
< 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
1371
1392
< b > Method summary</ b >
1372
1393
< ul >
1373
1394
< 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 >
1374
1396
< 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 >
1375
1398
< li > < a rel ="gsdoc " href ="SQLClient.html#method$SQLClient-debug:,... "> -debug:,...</ a > </ li >
1376
1399
< 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 >
1377
1401
< 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 >
1378
1403
</ ul >
1379
1404
< hr width ="50% " align ="left " />
1380
1405
< h3 > < a name ="method$SQLClient(Logging)+debugging "> debugging </ a > </ h3 >
1381
1406
+ (unsigned int) < b > debugging</ b > ;< br />
1382
1407
< p >
1383
1408
1384
1409
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 </ 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.
1386
1420
1387
1421
</ p >
1388
1422
< hr width ="25% " align ="left " />
@@ -1393,6 +1427,15 @@ <h3><a name="method$SQLClient(Logging)+setDebugging:">setDebugging: </a></h
1393
1427
Set the debugging < var > level</ var > to be inherited by
1394
1428
all new instances.
1395
1429
1430
+ </ p >
1431
+ < hr width ="25% " align ="left " />
1432
+ < h3 > < a name ="method$SQLClient(Logging)+setDurationLogging: "> setDurationLogging: </ 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
+
1396
1439
</ p >
1397
1440
< hr width ="25% " align ="left " />
1398
1441
< h3 > < a name ="method$SQLClient(Logging)-debug:,... "> debug: ,...</ a > </ h3 >
@@ -1411,6 +1454,18 @@ <h3><a name="method$SQLClient(Logging)-debugging">debugging </a></h3>
1411
1454
1412
1455
Return the current debugging level.
1413
1456
1457
+ </ p >
1458
+ < hr width ="25% " align ="left " />
1459
+ < h3 > < a name ="method$SQLClient(Logging)-durationLogging "> durationLogging </ 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
+
1414
1469
</ p >
1415
1470
< hr width ="25% " align ="left " />
1416
1471
< h3 > < a name ="method$SQLClient(Logging)-setDebugging: "> setDebugging: </ a > </ h3 >
@@ -1421,6 +1476,17 @@ <h3><a name="method$SQLClient(Logging)-setDebugging:">setDebugging: </a></h
1421
1476
overrides the default < var > level</ var > inherited
1422
1477
from the class.
1423
1478
1479
+ </ p >
1480
+ < hr width ="25% " align ="left " />
1481
+ < h3 > < a name ="method$SQLClient(Logging)-setDurationLogging: "> setDurationLogging: </ 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
+
1424
1490
</ p >
1425
1491
< hr width ="25% " align ="left " />
1426
1492
0 commit comments