File: SQLClient.html

package info (click to toggle)
gnustep-sqlclient 1.8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,176 kB
  • sloc: objc: 14,275; perl: 965; makefile: 22; sh: 5
file content (1948 lines) | stat: -rw-r--r-- 77,151 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
<html>

    <head>
    <title>SQLClient documentation</title>
  </head>
  <body>
    <font face="palatino linotype">
    <h1><a name="title$SQLClient">SQLClient documentation</a></h1>
    <h3>Authors</h3>
    <dl>
      <dt>Richard Frith-Macdonald (<a href="mailto:rfm@gnu.org"><code>rfm@gnu.org</code></a>)</dt>
      <dd>
      </dd>
    </dl>
    <p><b>Version:</b> 1.4</p>
    <p><b>Date:</b> 2004/05/07 08:16:16</p>
    <p><b>Copyright:</b> (C) 2004 Free Software Foundation, Inc.</p>

        <div>
      <hr width="50%" align="left" />
      <h3>Contents -</h3>
      <ol>
        <li>
          <a href="#001000000000">The SQLClient library</a>
        </li>
        <li>
          <a href="#001001000000">What is the SQLClient library?</a>
        </li>
        <li>
          <a href="#001002000000">What backend bundles are available?</a>
        </li>
        <li>
          <a href="#001003000000">Where can you get it? How can you install it?</a>
        </li>
        <li>
          <a href="#002000000000">Software documentation for the SQLClient class</a>
        </li>
        <li>
          <a href="#003000000000">Software documentation for the SQLRecord class</a>
        </li>
        <li>
          <a href="#004000000000">Software documentation for the SQLClient(Convenience)
        category</a>
        </li>
        <li>
          <a href="#005000000000">Software documentation for the SQLClient(Logging)
        category</a>
        </li>
        <li>
          <a href="#006000000000">Software documentation for the SQLClient(Subclass)
        category</a>
        </li>
        <li>
          <a href="#007000000000">SQLClient variables</a>
        </li>
      </ol>
      <hr width="50%" align="left" />
    </div>

          <h1><a name="001000000000">The SQLClient library</a></h1>

            <h2><a name="001001000000">What is the SQLClient library?</a></h2>
    <p>

          The SQLClient library is designed to provide a simple
          interface to SQL databases for GNUstep
          applications. It does not attempt the sort of
          abstraction provided by the much more
          sophisticated GDL2 library, but rather allows
          applications to directly execute SQL queries and
          statements.
            </p>
    <p>
The major features of the SQLClient library are -    </p>
    <ul>
      <li>
        
            Simple API for executing queries and statements... a
            variable length sequence of comma separated
            strings and other objects (NSNumber, NSDate,
            NSData) are concatenated into a single SQL
            statement and executed.
          
      </li>
      <li>
        
            Support multiple sumultaneous named connections to
            a database server in a thread-safe manner. <br />
          
      </li>
      <li>
        
            Support multiple simultaneous connections to
            different database servers with backend driver
            bundles loaded for different database engines.
            Clear, simple subclassing of the abstract base class
            to enable easy implementation of new backend bundles.
          
      </li>
      <li>
        
            Configuration for all connections held in one
            place and referenced by connection name for ease of
            configuration control. Changes via
            NSUserDefaults can even allow
            reconfiguration of client instances within
            a running application.
          
      </li>
      <li>
        
            Thread safe operation... The base class supports
            locking such that a single instance can be shared
            between multiple threads.
          
      </li>
    </ul>

            <h2><a name="001002000000">
          What backend bundles are available?
        </a></h2>
    <p>
Current backend bundles are -    </p>
    <ul>
      <li>
        
            ECPG - a bundle using the embedded SQL interface for
            postgres. <br /> This is based on a similar code
            which has been in production use for over eighteen
            months, so it should be reliable.
          
      </li>
      <li>
        
            Postgres - a bundle using the libpq native
            interface for postgres. <br /> This is the
            preferred backend as it allows &apos;SELECT FOR
            UPDATE&apos;, which the ECPG backend cannot support due
            to limitations in the postgres implementation of
            cursors. The code is however not as well tested as
            the ECPG interface.
          
      </li>
      <li>
        
            MySQL - a bundle using the mysqlclient library for
            *recent* MySQL. <br /> I don&apos;t use MySQL... but
            the test program ran successfully with a vanilla
            install of the MySQL packages for recent Debian
            unstable.
          
      </li>
      <li>
        
            Oracle - a bundle using embedded SQL for Oracle.
            <br /> Completely untested... may even need some
            work to compile... but this *is* based on code which
            was working about a year ago. <br /> No support for
            BLOBs yet.
          
      </li>
    </ul>

            <h2><a name="001003000000">
          Where can you get it? How can you install it?
        </a></h2>
    <p>

          The SQLClient library is currently only available via CVS
          from the GNUstep CVS repository. <br /> See
          &lt;https://savannah.gnu.org/cvs/?group=gnustep&gt;
          <br /> You need to check out
          <code>gnustep/dev-libs/SQLClient</code>
            </p>
    <p>

          To build this library you must have a basic GNUstep
          environment set up...
            </p>
    <ul>
      <li>
        
            The gnustep-make package must have been built and
            installed.
          
      </li>
      <li>
        
            The gnustep-base package must have been built and
            installed.
          
      </li>
      <li>
        
            You must hace sourced the GNUstep.sh script (from
            gnustep-make) to set up environment variables
            needed for building this.
          
      </li>
      <li>
        
            If this environment is in place, all you should need to
            do is run &apos;make&apos; to configure and build the library,
            &apos;make install&apos; to install it.
          
      </li>
      <li>
        Then you can run the test programs.
      </li>
      <li>
        
            Your most likely problems are that the configure
            script may not detect the database libraries you
            want... Please figure out how to modify
            <code>configure.ac</code> so that it will detect the
            required headers and libraries on your system, and
            supply na patch.
          
      </li>
      <li>
        
            Once the library is installed, you can include the
            header file
            <code>&lt;SQLClient/SQLClient.h%gt;</code> and link
            your programs with the <code>SQLClient</code> library
            to use it.
          
      </li>
    </ul>
    <p>

          Bug reports, patches, and contributions (eg a backend
          bundle for a new database) should be entered on the
          GNUstep project page
          &lt;http://savannah.gnu.org/projects/gnustep&gt;
          and the bug reporting page
          &lt;http://savannah.gnu.org/bugs/?group=gnustep&gt;
            </p>

          <h1><a name="002000000000">
        Software documentation for the SQLClient class
      </a></h1>
    <h2><a name="class$SQLClient">SQLClient</a> : <a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSObject.html#class$NSObject">NSObject</a></h2>
    <blockquote>
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>SQLClient.h</dd>
      </dl>
    </blockquote>
    <p>
      
          
    </p>
    <p>

            The SQLClient class encapsulates dynamic SQL access to
            relational database systems. A shared instance
            of the class is used for each database (as identified by
            the name of the database), and the number of
            simultanous database connections is managed
            too.
              </p>
    <p>
      
          
    </p>
    <p>

            SQLClient is an abstract base class... when you
            create an instance of it, you are actually creating
            an instance of a concrete subclass whose implementation
            is loaded from a bundle.
              </p>
    <p>
      
        
    </p>
    <br/><hr width="50%" align="left" />
    <h2>Instance Variables for SQLClient Class</h2>
    <h3><a name="ivariable$SQLClient*_client">_client</a></h3>
    @private NSString* <b>_client</b>;<br />
    <p>
      
            Identifier within backend
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*_database">_database</a></h3>
    @private NSString* <b>_database</b>;<br />
    <p>
      
            The configured database name/host
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*_debugging">_debugging</a></h3>
    @private unsigned int <b>_debugging</b>;<br />
    <p>
      
            The current debugging level
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*_duration">_duration</a></h3>
    @private NSTimeInterval <b>_duration</b>;<br />
    <p>
      
            <em>Description forthcoming.</em>
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*_inTransaction">_inTransaction</a></h3>
    @private BOOL <b>_inTransaction</b>;<br />
    <p>
      
            A flag indicating whether this instance is currently
            within a transaction. This variable must
            <em>only</em> be set by the
            <a rel="gsdoc" href="#method$SQLClient-begin">
              -begin
            </a>

            , <a rel="gsdoc" href="#method$SQLClient-commit">-commit</a>
 or
            <a rel="gsdoc" href="#method$SQLClient-rollback">
              -rollback
            </a>

            methods. <br /> Are we inside a transaction?
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*_lastOperation">_lastOperation</a></h3>
    @private NSDate* <b>_lastOperation</b>;<br />
    <p>
      
            Timestamp of last operation. <br /> Maintained by
            the
            <a rel="gsdoc" href="#method$SQLClient-simpleExecute:">
              -simpleExecute:
            </a>

            and
            <a rel="gsdoc" href="#method$SQLClient-simpleQuery:">
              -simpleQuery:
            </a>

            methods.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*_name">_name</a></h3>
    @private NSString* <b>_name</b>;<br />
    <p>
      
            Unique identifier for instance
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*_password">_password</a></h3>
    @private NSString* <b>_password</b>;<br />
    <p>
      
            The configured password
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*_user">_user</a></h3>
    @private NSString* <b>_user</b>;<br />
    <p>
      
            The configured user
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*connected">connected</a></h3>
    @private BOOL <b>connected</b>;<br />
    <p>
      
            A flag indicating whether this instance is currently
            connected to the backend database server. This
            variable must <em>only</em> be set by the
            <a rel="gsdoc" href="#method$SQLClient-backendConnect">
              -backendConnect
            </a>

            or
            <a rel="gsdoc" href="#method$SQLClient-backendDisconnect">
              -backendDisconnect
            </a>

            methods.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*extra">extra</a></h3>
    @private void* <b>extra</b>;<br />
    <p>
      
            For subclass specific data
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$SQLClient*lock">lock</a></h3>
    @private NSRecursiveLock* <b>lock</b>;<br />
    <p>
      
            Maintain thread-safety
          
    </p>
    <hr width="25%" align="left" />
    <br/><hr width="50%" align="left" /><br/>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Convenience)-queryRecord:,...">-queryRecord:,...</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Convenience)-queryString:,...">-queryString:,...</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Convenience)-singletons:">-singletons:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)+debugging">+debugging</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)+durationLogging">+durationLogging</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)+setDebugging:">+setDebugging:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)+setDurationLogging:">+setDurationLogging:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-debug:,...">-debug:,...</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-debugging">-debugging</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-durationLogging">-durationLogging</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-setDebugging:">-setDebugging:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Logging)-setDurationLogging:">-setDurationLogging:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-backendConnect">-backendConnect</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-backendDisconnect">-backendDisconnect</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-backendExecute:">-backendExecute:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-backendQuery:">-backendQuery:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-copyEscapedBLOB:into:">-copyEscapedBLOB:into:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-insertBLOBs:intoStatement:length:withMarker:length:giving:">-insertBLOBs:intoStatement:length:withMarker:length:giving:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient(Subclass)-lengthOfEscapedBLOB:">-lengthOfEscapedBLOB:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+allClients">+allClients</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+clientWithConfiguration:name:">+clientWithConfiguration:name:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+existingClient:">+existingClient:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+maxConnections">+maxConnections</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+purgeConnections:">+purgeConnections:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+setMaxConnections:">+setMaxConnections:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-begin">-begin</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-clientName">-clientName</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-commit">-commit</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-connect">-connect</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-connected">-connected</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-database">-database</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-disconnect">-disconnect</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-execute:,...">-execute:,...</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-execute:with:">-execute:with:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-initWithConfiguration:">-initWithConfiguration:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-initWithConfiguration:name:">-initWithConfiguration:name:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-isInTransaction">-isInTransaction</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-lastOperation">-lastOperation</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-name">-name</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-password">-password</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-query:,...">-query:,...</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-query:with:">-query:with:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-quote:">-quote:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-quoteCString:">-quoteCString:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-quoteChar:">-quoteChar:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-quoteFloat:">-quoteFloat:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-quoteInteger:">-quoteInteger:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-rollback">-rollback</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-setDatabase:">-setDatabase:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-setName:">-setName:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-setPassword:">-setPassword:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-setUser:">-setUser:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-simpleExecute:">-simpleExecute:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-simpleQuery:">-simpleQuery:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-user">-user</a></li>
    </ul>
    <hr width="50%" align="left" />
    <h3><a name="method$SQLClient+allClients">allClients&nbsp;</a></h3>
    + (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSArray">NSArray</a>*) <b>allClients</b>;<br />
    <p>
      
            Returns an array containing all the SQLClient
            instances.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient+clientWithConfiguration:name:">clientWithConfiguration:&nbsp;name:&nbsp;</a></h3>
    + (<a rel="gsdoc" href="#class$SQLClient">SQLClient</a>*) <b>clientWithConfiguration:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSDictionary.html#class$NSDictionary">NSDictionary</a>*)config<b> name:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)reference;<br />
    <p>
      
            Return an existing SQLClient instance (using
            +existingClient:) if possible, or creates
            one, initialises it using
            <a rel="gsdoc" href="#method$SQLClient-initWithConfiguration:name:">
              -initWithConfiguration:name:
            </a>

            , and returns the new instance (autoreleased). <br />
            Returns <code>nil</code> on failure.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient+existingClient:">existingClient:&nbsp;</a></h3>
    + (<a rel="gsdoc" href="#class$SQLClient">SQLClient</a>*) <b>existingClient:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)reference;<br />
    <p>
      
            Return an existing SQLClient instance for the
            specified name if one exists, otherwise returns
            <code>nil</code>.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient+maxConnections">maxConnections&nbsp;</a></h3>
    + (unsigned int) <b>maxConnections</b>;<br />
    <p>
      
            Return the maximum number of simultaneous database
            connections permitted (set by
            <a rel="gsdoc" href="#method$SQLClient+setMaxConnections:">
              +setMaxConnections:
            </a>

            and defaults to 8)
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient+purgeConnections:">purgeConnections:&nbsp;</a></h3>
    + (void) <b>purgeConnections:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSDate.html#class$NSDate">NSDate</a>*)since;<br />
    <p>
      
            
    </p>
    <p>

              Use this method to reduce the number of database
              connections currently active so that it is
              less than the limit set by the
              <a rel="gsdoc" href="#method$SQLClient+setMaxConnections:">
                +setMaxConnections:
              </a>

              method. This mechanism is used internally by the
              class to ensure that, when it is about to open a
              new connection, the limit is not exceeded.
                </p>
    <p>
      
            
    </p>
    <p>

              If <var>since</var> is not <code>nil</code>, then any
              connection which has not been used more
              recently than that date is disconnected anyway.
              <br /> You can (and probably should) use this
              periodically to purge idle connections, but
              you can also pass a date in the future to close all
              connections.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient+setMaxConnections:">setMaxConnections:&nbsp;</a></h3>
    + (void) <b>setMaxConnections:</b> (unsigned int)c;<br />
    <p>
      
            
    </p>
    <p>

              Set the maximum number of simultaneous database
              connections permitted (defaults to 8 and may
              not be set less than 1).
                </p>
    <p>
      
            
    </p>
    <p>

              This value is used by the
              <a rel="gsdoc" href="#method$SQLClient+purgeConnections:">
                +purgeConnections:
              </a>

              method to determine how many connections should be
              disconnected when it is called.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-begin">begin&nbsp;</a></h3>
    - (void) <b>begin</b>;<br />
    <p>
      
            Start a transaction for this database client. <br />
            You <strong>must</strong> match this with either a
            <a rel="gsdoc" href="#method$SQLClient-commit">
              -commit
            </a>

            or a <a rel="gsdoc" href="#method$SQLClient-rollback">-rollback</a>
.
            <br />
            
    </p>
    <p>

              Normally, if you execute an SQL statement
              without using this method first, the
              <em>autocommit</em> feature is employed, and the
              statement takes effect immediately. Use of this
              method permits you to execute several statements
              in sequence, and only have them take effect (as a
              single operation) when you call the
              <a rel="gsdoc" href="#method$SQLClient-commit">
                -commit
              </a>

              method.
                </p>
    <p>
      
            
    </p>
    <p>

              NB. You must <strong>not</strong> execute an SQL
              statement which would start a transaction
              directly... use only this method.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-clientName">clientName&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>clientName</b>;<br />
    <p>
      
            Return the client name for this instance. <br />
            Normally this is useful only for
            debugging/reporting purposes, but if
            you are using multiple instances of this class in your
            application, and you are using embedded SQL,
            you will need to use this method to fetch the
            client/connection name and store its
            C-string representation in a variable
            &apos;connectionName&apos; declared to the sql
            preprocessor, so you can then have statements
            of the form - &apos;exec sql at :connectionName...&apos;.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-commit">commit&nbsp;</a></h3>
    - (void) <b>commit</b>;<br />
    <p>
      
            Complete a transaction for this database client.
            <br /> This <strong>must</strong> match an earlier
            <a rel="gsdoc" href="#method$SQLClient-begin">
              -begin
            </a>

            .
            
    </p>
    <p>

              NB. You must <strong>not</strong> execute an SQL
              statement which would commit or rollback a
              transaction directly... use only this method
              or the
              <a rel="gsdoc" href="#method$SQLClient-rollback">
                -rollback
              </a>

              method.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-connect">connect&nbsp;</a></h3>
    - (BOOL) <b>connect</b>;<br />
    <p>
      
            If the <em>connected</em> instance variable is
            <code>NO</code>, this method calls
            <a rel="gsdoc" href="#method$SQLClient-backendConnect">
              -backendConnect
            </a>

            to ensure that there is a connection to the database
            server established. Returns the result. <br />
            Performs any necessary locking for thread safety.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-connected">connected&nbsp;</a></h3>
    - (BOOL) <b>connected</b>;<br />
    <p>
      
            Return a flag to say whether a connection to the
            database server is currently live. This is mostly
            useful for debug/reporting, but is used internally
            to keep track of active connections.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-database">database&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>database</b>;<br />
    <p>
      
            Return the database name for this instance (or
            <code>nil</code>).
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-disconnect">disconnect&nbsp;</a></h3>
    - (void) <b>disconnect</b>;<br />
    <p>
      
            If the <em>connected</em> instance variable is
            <code>YES</code>, this method calls
            <a rel="gsdoc" href="#method$SQLClient-backendDisconnect">
              -backendDisconnect
            </a>

            to ensure that the connection to the database server is
            dropped. <br /> Performs any necessary locking for
            thread safety.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-execute:,...">execute:&nbsp;,...</a></h3>
    - (void) <b>execute:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stmt<b>,...</b>;<br />
    <p>
      
            Perform arbitrary operation
            <em>which does not return any value.</em> <br /> This
            arguments to this method are a <code>nil</code>
            terminated list which are concatenated in the
            manner of the *
            <a rel="gsdoc" href="/usr/home/brains99/GNUstep/Local/Library/Documentation/Libraries/Server/BSSQL.html#method$BSSQL-prepare:args:">
              -prepare:args:
            </a>

            method. <br /> Any string arguments are assumed to
            have been quoted appropriately already, but non-string
            arguments are automatically quoted using the
            <a rel="gsdoc" href="#method$SQLClient-quote:">
              -quote:
            </a>

            method.

<pre>
   [db execute: @&quot;UPDATE &quot;, table, @&quot; SET Name = &quot;,
     myName, &quot; WHERE ID = &quot;, myId, nil];
 </pre>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-execute:with:">execute:&nbsp;with:&nbsp;</a></h3>
    - (void) <b>execute:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stmt<b> with:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSDictionary.html#class$NSDictionary">NSDictionary</a>*)values;<br />
    <p>
      
            Takes the statement and substitutes in
            <var>values</var> from the dictionary where markup of
            the format {key} is found. <br /> Passes the result to
            the
            <a rel="gsdoc" href="#method$SQLClient-execute:,...">
              -execute:,...
            </a>

            method.

<pre>
   [db execute: @&quot;UPDATE {Table} SET Name = {Name} WHERE ID = {ID}&quot;
          with: values];
 </pre>
      
            Any non-string <var>values</var> in the dictionary will
            be replaced by the results of the
            <a rel="gsdoc" href="#method$SQLClient-quote:">
              -quote:
            </a>

            method. <br /> The markup format may also be
            {key?default} where <em>default</em> is a
            string to be used if there is no value for the
            <em>key</em> in the dictionary.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-initWithConfiguration:">initWithConfiguration:&nbsp;</a></h3>
    - (id) <b>initWithConfiguration:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSDictionary.html#class$NSDictionary">NSDictionary</a>*)config;<br />
    <p>
      
            Calls
            <a rel="gsdoc" href="#method$SQLClient-initWithConfiguration:name:">
              -initWithConfiguration:name:
            </a>

            passing a <code>nil</code> reference name.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-initWithConfiguration:name:">initWithConfiguration:&nbsp;name:&nbsp;</a></h3>
    - (id) <b>initWithConfiguration:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSDictionary.html#class$NSDictionary">NSDictionary</a>*)config<b> name:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)reference;<br />
    <p>
      
            Initialise using the supplied configuration, or
            if that is <code>nil</code>, try to use values from
            NSUserDefaults (and automatically update
            when the defaults change). <br /> Uses the
            <var>reference</var> name to determine configuration
            information... and if a <code>nil</code> name
            is supplied, defaults to the value of the SQLClientName
            as a user default string or &apos;Database&apos; if no other name
            is provided. <br /> If a SQLClient instance already
            exists with the name used for this instance, the
            receiver is deallocated and the existing instance
            is retained and returned... there may only ever be one
            instance for a particular <var>reference</var>
            name. <br /> <br /> The <var>config</var> argument
            (or the SQLClientReferences user default) is a
            dictionary with names as keys and dictionaries
            as its values. Configuration entries from the dictionary
            corresponding to the database client are used
            if possible, general entries are used otherwise. <br />
            Database... is the name of the database to use, if
            it is missing then &apos;Database&apos; may be used instead.
            <br /> User... is the name of the database user to
            use, if it is missing then &apos;User&apos; may be used instead.
            <br /> Password... is the name of the database user
            password, if it is missing then &apos;Password&apos; may be
            used instead. <br /> ServerType... is the name of the
            backend server to be used... by convention the name
            of a bundle containing the interface to that backend. If
            this is missing then &apos;Postgres&apos; is used. <br />
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-isInTransaction">isInTransaction&nbsp;</a></h3>
    - (BOOL) <b>isInTransaction</b>;<br />
    <p>
      
            Return the state of the flag indicating whether the
            library thinks a transaction is in progress. This
            flag is normally maintained by
            <a rel="gsdoc" href="#method$SQLClient-begin">
              -begin
            </a>

            , <a rel="gsdoc" href="#method$SQLClient-commit">-commit</a>
, and
            <a rel="gsdoc" href="#method$SQLClient-rollback">
              -rollback
            </a>

            .
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-lastOperation">lastOperation&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSDate.html#class$NSDate">NSDate</a>*) <b>lastOperation</b>;<br />
    <p>
      
            Returns the date/time stamp of the last database
            operation performed by the receiver, or
            <code>nil</code> if no operation has ever been done
            by it. <br /> Simply connecting to or disconnecting from
            the databsse does not count as an operation.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-name">name&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>name</b>;<br />
    <p>
      
            Return the database reference name for this instance
            (or <code>nil</code>).
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-password">password&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>password</b>;<br />
    <p>
      
            Return the database password for this instance (or
            <code>nil</code>).
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-query:,...">query:&nbsp;,...</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSMutableArray">NSMutableArray</a>*) <b>query:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stmt<b>,...</b>;<br />
    <p>
      
            
    </p>
    <p>

              Perform arbitrary query
              <em>which returns values.</em>
                </p>
    <p>
      
            
    </p>
    <p>

              This method has at least one argument, the string
              starting the statement to be executed (which
              must have the prefix &apos;select &apos;).
                </p>
    <p>
      
            
    </p>
    <p>

              Additional arguments are a <code>nil</code>
              terminated list which also be strings, and
              these are appended to the statement. <br /> Any
              string arguments are assumed to have been quoted
              appropriately already, but non-string
              arguments are automatically quoted using the
              <a rel="gsdoc" href="#method$SQLClient-quote:">
                -quote:
              </a>

              method.
                </p>
    <p>
      

<pre>
   result = [db query: @&quot;SELECT Name FROM &quot;, table, nil];
 </pre>
      
            
    </p>
    <p>
Upon error, an exception is raised.    </p>
    <p>
      
            
    </p>
    <p>

              The query returns an array of records (each of which
              is represented by an SQLRecord object).
                </p>
    <p>
      
            
    </p>
    <p>

              Each SQLRecord object contains one or more fields,
              in the order in which they occurred in the query.
              Fields may also be retrieved by name.
                </p>
    <p>
      
            
    </p>
    <p>
NULL field items are returned as NSNull objects.    </p>
    <p>
      
            
    </p>
    <p>

              Most other field items are returned as NSString
              objects.
                </p>
    <p>
      
            
    </p>
    <p>

              Date and timestamp field items are returned as
              NSDate objects.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-query:with:">query:&nbsp;with:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSMutableArray">NSMutableArray</a>*) <b>query:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stmt<b> with:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSDictionary.html#class$NSDictionary">NSDictionary</a>*)values;<br />
    <p>
      
            Takes the query statement and substitutes in
            <var>values</var> from the dictionary where markup of
            the format {key} is found. <br /> Passes the result to
            the
            <a rel="gsdoc" href="#method$SQLClient-query:,...">
              -query:,...
            </a>

            method to execute.

<pre>
   result = [db query: @&quot;SELECT Name FROM {Table} WHERE ID = {ID}&quot;
                 with: values];
 </pre>
      
            Any non-string <var>values</var> in the dictionary will
            be replaced by the results of the
            <a rel="gsdoc" href="#method$SQLClient-quote:">
              -quote:
            </a>

            method. <br /> The markup format may also be
            {key?default} where <em>default</em> is a
            string to be used if there is no value for the
            <em>key</em> in the dictionary.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-quote:">quote:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>quote:</b> (id)obj;<br />
    <p>
      
            Convert an object to a string suitable for use in
            an SQL query. <br /> Normally the
            <a rel="gsdoc" href="#method$SQLClient-execute:,...">
              -execute:,...
            </a>

            , and
            <a rel="gsdoc" href="#method$SQLClient-query:,...">
              -query:,...
            </a>

            methods will call this method automatically for
            everything apart from string objects. <br />
            Strings have to be handled specially, because they
            are used both for parts of the SQL command, and as
            values (where they need to be quoted). So where you
            need to pass a string value which needs quoting, you
            must call this method explicitly. <br /> Subclasses
            may override this method to provide appropriate quoting
            for types of object which need database backend
            specific quoting conventions. However, the defalt
            implementation should be OK for most cases.
            <br /> The base class implementation formats NSDate
            objects as <br /> YYYY-MM-DD hh:mm:ss.mmm ?ZZZZ
            <br /> NSData objects are not quoted... they must
            not appear in queries, and where used for insert/update
            operations, they need to be passed to the
            <a rel="gsdoc" href="#method$SQLClient-backendExecute:">
              -backendExecute:
            </a>

            method unchanged. <br /> For a <code>nil</code> or
            NSNull object, we return NULL. <br /> For a number,
            we simply convert directly to a string. <br /> For a
            date, we convert to the text format used by the
            database, and add leading and trailing quotes.
            <br /> For a data object, we don&apos;t quote... the
            other parts of the code need to know they have an
            NSData object and pass it on unchanged to the
            <a rel="gsdoc" href="#method$SQLClient-backendExecute:">
              -backendExecute:
            </a>

            method. <br /> For any other type of data, we just
            produce a quoted string representation.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-quoteCString:">quoteCString:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>quoteCString:</b> (const char*)s;<br />
    <p>
      
            Convert a &apos;C&apos; string to a string suitable for use
            in an SQL query.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-quoteChar:">quoteChar:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>quoteChar:</b> (char)c;<br />
    <p>
      
            Convert a single character to a string suitable for
            use in an SQL query.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-quoteFloat:">quoteFloat:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>quoteFloat:</b> (float)f;<br />
    <p>
      
            Convert a float to a string suitable for use in an
            SQL query.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-quoteInteger:">quoteInteger:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>quoteInteger:</b> (int)i;<br />
    <p>
      
            Convert an integer to a string suitable for use in
            an SQL query.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-rollback">rollback&nbsp;</a></h3>
    - (void) <b>rollback</b>;<br />
    <p>
      
            Revert a transaction for this database client.
            <br /> This <strong>must</strong> match an earlier
            <a rel="gsdoc" href="#method$SQLClient-begin">
              -begin
            </a>

            .
            
    </p>
    <p>

              NB. You must <strong>not</strong> execute an SQL
              statement which would commit or rollback a
              transaction directly... use only this method
              or the
              <a rel="gsdoc" href="#method$SQLClient-rollback">
                -rollback
              </a>

              method.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-setDatabase:">setDatabase:&nbsp;</a></h3>
    - (void) <b>setDatabase:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)s;<br />
    <p>
      
            Set the database host/name for this object. <br /> This
            is called automatically to configure the connection...
            you normally shouldn&apos;t need to call it yourself.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-setName:">setName:&nbsp;</a></h3>
    - (void) <b>setName:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)s;<br />
    <p>
      
            Set the database reference name for this object. This
            is used to differentiate between multiple connections to
            the database. <br /> This is called automatically to
            configure the connection... you normally
            shouldn&apos;t need to call it yourself. <br /> NB.
            attempts to change the name of an instance to that
            of an existing instance are ignored.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-setPassword:">setPassword:&nbsp;</a></h3>
    - (void) <b>setPassword:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)s;<br />
    <p>
      
            Set the database password for this object. <br /> This
            is called automatically to configure the connection...
            you normally shouldn&apos;t need to call it yourself.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-setUser:">setUser:&nbsp;</a></h3>
    - (void) <b>setUser:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)s;<br />
    <p>
      
            Set the database user for this object. <br /> This is
            called automatically to configure the connection...
            you normally shouldn&apos;t need to call it yourself.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-simpleExecute:">simpleExecute:&nbsp;</a></h3>
    - (void) <b>simpleExecute:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSArray">NSArray</a>*)info;<br />
    <p>
      
            Calls
            <a rel="gsdoc" href="#method$SQLClient-backendExecute:">
              -backendExecute:
            </a>

            in a safe manner. <br /> Handles locking. <br />
            Maintains
            <a rel="gsdoc" href="#method$SQLClient-lastOperation">
              -lastOperation
            </a>

            date.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-simpleQuery:">simpleQuery:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSMutableArray">NSMutableArray</a>*) <b>simpleQuery:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stmt;<br />
    <p>
      
            Calls
            <a rel="gsdoc" href="#method$SQLClient-backendQuery:">
              -backendQuery:
            </a>

            in a safe manner. <br /> Handles locking. <br />
            Maintains
            <a rel="gsdoc" href="#method$SQLClient-lastOperation">
              -lastOperation
            </a>

            date.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient-user">user&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>user</b>;<br />
    <p>
      
            Return the database user for this instance (or
            <code>nil</code>).
          
    </p>
    <hr width="25%" align="left" />

          <h1><a name="003000000000">
        Software documentation for the SQLRecord class
      </a></h1>
    <h2><a name="class$SQLRecord">SQLRecord</a> : <a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSArray">NSArray</a></h2>
    <blockquote>
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>SQLClient.h</dd>
      </dl>
    </blockquote>
    <p>
      
          An enhanced array to represent a record returned from a
          query. You should <em>NOT</em> try to create instances
          of this class except via the
          <a rel="gsdoc" href="#method$SQLRecord+newWithValues:keys:count:">
            +newWithValues:keys:count:
          </a>

          method.
        
    </p>
    <br/><hr width="50%" align="left" />
    <h2>Instance Variables for SQLRecord Class</h2>
    <h3><a name="ivariable$SQLRecord*count">count</a></h3>
    @private unsigned int <b>count</b>;<br />
    <p>
      
            <em>Description forthcoming.</em>
          
    </p>
    <hr width="25%" align="left" />
    <br/><hr width="50%" align="left" /><br/>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLRecord+newWithValues:keys:count:">+newWithValues:keys:count:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLRecord-allKeys">-allKeys</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLRecord-objectForKey:">-objectForKey:</a></li>
    </ul>
    <hr width="50%" align="left" />
    <h3><a name="method$SQLRecord+newWithValues:keys:count:">newWithValues:&nbsp;keys:&nbsp;count:&nbsp;</a></h3>
    + (id) <b>newWithValues:</b> (id*)v<b> keys:</b> (id*)k<b> count:</b> (unsigned int)c;<br />
    <p>
      
            <em>Description forthcoming.</em>
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLRecord-allKeys">allKeys&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSArray">NSArray</a>*) <b>allKeys</b>;<br />
    <p>
      
            Returns an array containing the names of all the
            fields in the record, in the order in which they
            occur in the record.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLRecord-objectForKey:">objectForKey:&nbsp;</a></h3>
    - (id) <b>objectForKey:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)key;<br />
    <p>
      
            Returns the first field in the record whose name
            matches the specified <var>key</var>. Uses an exact
            match in preference to a case-insensitive match.
          
    </p>
    <hr width="25%" align="left" />

          <h1><a name="004000000000">
        Software documentation for the SQLClient(Convenience)
        category
      </a></h1>
    <h2><a rel="gsdoc" href="#class$SQLClient">SQLClient</a>(<a name="category$SQLClient(Convenience)">Convenience</a>)</h2>
    <blockquote>
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>SQLClient.h</dd>
      </dl>
    </blockquote>
    <p>
      
          This category contains convenience methods including
          those for frequently performed database operations...
          message logging etc.
        
    </p>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-queryRecord:,...">-queryRecord:,...</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-queryString:,...">-queryString:,...</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-singletons:">-singletons:</a></li>
    </ul>
    <hr width="50%" align="left" />
    <h3><a name="method$SQLClient(Convenience)-queryRecord:,...">queryRecord:&nbsp;,...</a></h3>
    - (<a rel="gsdoc" href="#class$SQLRecord">SQLRecord</a>*) <b>queryRecord:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stmt<b>,...</b>;<br />
    <p>
      
            Executes a query (like the
            <a rel="gsdoc" href="#method$SQLClient-query:,...">
              -query:,...
            </a>

            method) and checks the result (raising an exception
            if the query did not contain a single record) and
            returns the resulting record.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Convenience)-queryString:,...">queryString:&nbsp;,...</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>queryString:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stmt<b>,...</b>;<br />
    <p>
      
            Executes a query (like the
            <a rel="gsdoc" href="#method$SQLClient-query:,...">
              -query:,...
            </a>

            method) and checks the result. <br /> Raises an
            exception if the query did not contain a single
            record, or if the record did not contain a single
            field. <br /> Returns the resulting field as a
            <em>string</em>.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Convenience)-singletons:">singletons:&nbsp;</a></h3>
    - (void) <b>singletons:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSMutableArray">NSMutableArray</a>*)records;<br />
    <p>
      
            Convenience method to deal with the results of
            a query where each record contains a single field... it
            converts the array of <var>records</var> returned
            by the query to an array containing the fields.
          
    </p>
    <hr width="25%" align="left" />

          <h1><a name="005000000000">
        Software documentation for the SQLClient(Logging)
        category
      </a></h1>
    <h2><a rel="gsdoc" href="#class$SQLClient">SQLClient</a>(<a name="category$SQLClient(Logging)">Logging</a>)</h2>
    <blockquote>
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>SQLClient.h</dd>
      </dl>
    </blockquote>
    <p>
      
          This category porovides basic methods for logging debug
          information.
        
    </p>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+debugging">+debugging</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+durationLogging">+durationLogging</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+setDebugging:">+setDebugging:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient+setDurationLogging:">+setDurationLogging:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-debug:,...">-debug:,...</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-debugging">-debugging</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-durationLogging">-durationLogging</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-setDebugging:">-setDebugging:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-setDurationLogging:">-setDurationLogging:</a></li>
    </ul>
    <hr width="50%" align="left" />
    <h3><a name="method$SQLClient(Logging)+debugging">debugging&nbsp;</a></h3>
    + (unsigned int) <b>debugging</b>;<br />
    <p>
      
            Return the class-wide debugging level, which is
            inherited by all newly created instances.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Logging)+durationLogging">durationLogging&nbsp;</a></h3>
    + (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>durationLogging</b>;<br />
    <p>
      
            Return the class-wide duration logging threshold,
            which is inherited by all newly created instances.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Logging)+setDebugging:">setDebugging:&nbsp;</a></h3>
    + (void) <b>setDebugging:</b> (unsigned int)level;<br />
    <p>
      
            Set the debugging <var>level</var> to be inherited by
            all new instances.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Logging)+setDurationLogging:">setDurationLogging:&nbsp;</a></h3>
    + (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 />
    <p>
      
            Set the duration logging <var>threshold</var> to be
            inherited by all new instances.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Logging)-debug:,...">debug:&nbsp;,...</a></h3>
    - (void) <b>debug:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)fmt<b>,...</b>;<br />
    <p>
      
            The default implementation calls NSLogv to log a debug
            message. <br /> Override this in a category to
            provide more sophisticated logging.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Logging)-debugging">debugging&nbsp;</a></h3>
    - (unsigned int) <b>debugging</b>;<br />
    <p>
      
            Return the current debugging level.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Logging)-durationLogging">durationLogging&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>durationLogging</b>;<br />
    <p>
      
            Returns the threshold above which queries and
            statements taking a long time to execute are
            logged. A negative value (default) indicates that
            this logging is disabled. A value of zero means that
            all statements are logged.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Logging)-setDebugging:">setDebugging:&nbsp;</a></h3>
    - (void) <b>setDebugging:</b> (unsigned int)level;<br />
    <p>
      
            Set the debugging <var>level</var> of this instance...
            overrides the default <var>level</var> inherited
            from the class.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Logging)-setDurationLogging:">setDurationLogging:&nbsp;</a></h3>
    - (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 />
    <p>
      
            Set a <var>threshold</var> above which queries and
            statements taking a long time to execute are
            logged. A negative value (default) disables this
            logging. A value of zero logs all statements.
          
    </p>
    <hr width="25%" align="left" />

          <h1><a name="006000000000">
        Software documentation for the SQLClient(Subclass)
        category
      </a></h1>
    <h2><a rel="gsdoc" href="#class$SQLClient">SQLClient</a>(<a name="category$SQLClient(Subclass)">Subclass</a>)</h2>
    <blockquote>
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>SQLClient.h</dd>
      </dl>
    </blockquote>
    <p>
      
          This category contains the methods which a subclass
          <em>must</em> override to provide a working instance,
          and helper methods for the backend implementations.
          <br /> Application programmers should <em>not</em>
          call the backend methods directly. <br />
          
    </p>
    <p>

            When subclassing to produce a backend driver bundle,
            please be aware that the subclass must <em>NOT</em>
            introduce additional instance variables. Instead
            the <em>extra</em> instance variable is provided for
            use as a pointer to subclass specific data.
              </p>
    <p>
      
        
    </p>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-backendConnect">-backendConnect</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-backendDisconnect">-backendDisconnect</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-backendExecute:">-backendExecute:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-backendQuery:">-backendQuery:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-copyEscapedBLOB:into:">-copyEscapedBLOB:into:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-insertBLOBs:intoStatement:length:withMarker:length:giving:">-insertBLOBs:intoStatement:length:withMarker:length:giving:</a></li>
      <li><a rel="gsdoc" href="SQLClient.html#method$SQLClient-lengthOfEscapedBLOB:">-lengthOfEscapedBLOB:</a></li>
    </ul>
    <hr width="50%" align="left" />
    <h3><a name="method$SQLClient(Subclass)-backendConnect">backendConnect&nbsp;</a></h3>
    - (BOOL) <b>backendConnect</b>;<br />
Subclasses <strong>should</strong> override this method.<br />
    <p>
      
            Attempts to establish a connection to the database
            server. <br /> Returns a flag to indicate whether
            the connection has been established. <br /> If a
            connection was already established, returns
            <code>YES</code> and does nothing. <br /> You should
            not need to use this method normally, as it is called
            for you automatically when necessary. <br />
            
    </p>
    <p>

              Subclasses <strong>must</strong> implement
              this method to establish a connection to the
              database server process (and initialise the
              <em>extra</em> instance variable if necessary),
              setting the <em>connected</em> instance variable
              to indicate the state of the object.
                </p>
    <p>
      
            
    </p>
    <p>

              This method must call
              <a rel="gsdoc" href="#method$SQLClient+purgeConnections:">
                +purgeConnections:
              </a>

              to ensure that there is a free slot for the new
              connection.
                </p>
    <p>
      
            
    </p>
    <p>

              Application code must <em>not</em> call this
              method directly, it is for internal use only. The
              <a rel="gsdoc" href="#method$SQLClient-connect">
                -connect
              </a>

              method calls this method if the <em>connected</em>
              instance variable is <code>NO</code>.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Subclass)-backendDisconnect">backendDisconnect&nbsp;</a></h3>
    - (void) <b>backendDisconnect</b>;<br />
Subclasses <strong>should</strong> override this method.<br />
    <p>
      
            Disconnect from the database unless already
            disconnected. <br />
            
    </p>
    <p>

              This method is called automatically when the
              receiver is deallocated or reconfigured, and may
              also be called automatically when there are too many
              database connections active.
                </p>
    <p>
      
            
    </p>
    <p>

              If the receiver is an instance of a subclass which
              uses the <em>extra</em> instance variable, it
              <strong>must</strong> clear that variable in the
              <a rel="gsdoc" href="#method$SQLClient-backendDisconnect">
                -backendDisconnect
              </a>

              method, because a reconfiguration may cause the
              class of the receiver to change.
                </p>
    <p>
      
            
    </p>
    <p>

              This method must set the <em>connected</em> instance
              variable to <code>NO</code>.
                </p>
    <p>
      
            
    </p>
    <p>

              Application code must <em>not</em> call this
              method directly, it is for internal use only. The
              <a rel="gsdoc" href="#method$SQLClient-disconnect">
                -disconnect
              </a>

              method calls this method if the <em>connected</em>
              instance variable is <code>YES</code>.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Subclass)-backendExecute:">backendExecute:&nbsp;</a></h3>
    - (void) <b>backendExecute:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSArray">NSArray</a>*)info;<br />
Subclasses <strong>should</strong> override this method.<br />
    <p>
      
            Perform arbitrary operation
            <em>which does not return any value.</em> <br /> This
            method has a single argument, an array containing
            the string representing the statement to be executed as
            its first object, and an optional sequence of data
            objects following it. <br />

<pre>
   [db backendExecute: [NSArray arrayWithObject:
     @&quot;UPDATE MyTable SET Name = &apos;The name&apos; WHERE ID = 123&quot;]];
 </pre>
      
            
    </p>
    <p>

              The backend implementation is required to perform the
              SQL statement using the supplied NSData objects at
              the points in the statement marked by the
              <code>&apos;&apos;&apos;</code> sequence. The marker saequences
              are inserted into the statement at an earlier stage
              by the
              <a rel="gsdoc" href="#method$SQLClient-execute:,...">
                -execute:,...
              </a>

              and
              <a rel="gsdoc" href="#method$SQLClient-execute:with:">
                -execute:with:
              </a>

              methods.
                </p>
    <p>
      
            
    </p>
    <p>

              This method should lock the instance using the
              <em>lock</em> instance variable for the duration of
              the operation, and unlock it afterwards.
                </p>
    <p>
      
            
    </p>
    <p>

              NB. callers (other than the
              <a rel="gsdoc" href="#method$SQLClient-begin">
                -begin
              </a>

              , <a rel="gsdoc" href="#method$SQLClient-commit">-commit</a>
, and
              <a rel="gsdoc" href="#method$SQLClient-rollback">
                -rollback
              </a>

              methods) should not pass any statement to this
              method which would cause a transaction to begin or
              end.
                </p>
    <p>
      
            
    </p>
    <p>

              Application code must <em>not</em> call this
              method directly, it is for internal use only.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Subclass)-backendQuery:">backendQuery:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSMutableArray">NSMutableArray</a>*) <b>backendQuery:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stmt;<br />
Subclasses <strong>should</strong> override this method.<br />
    <p>
      
            
    </p>
    <p>

              Perform arbitrary query
              <em>which returns values.</em>
                </p>
    <p>
      

<pre>
   result = [db backendQuery: @&quot;SELECT Name FROM Table&quot;];
 </pre>
      
            
    </p>
    <p>
Upon error, an exception is raised.    </p>
    <p>
      
            
    </p>
    <p>

              The query returns an array of records (each of which
              is represented by an SQLRecord object).
                </p>
    <p>
      
            
    </p>
    <p>

              Each SQLRecord object contains one or more fields,
              in the order in which they occurred in the query.
              Fields may also be retrieved by name.
                </p>
    <p>
      
            
    </p>
    <p>
NULL field items are returned as NSNull objects.    </p>
    <p>
      
            
    </p>
    <p>

              This method should lock the instance using the
              <em>lock</em> instance variable for the duration of
              the operation, and unlock it afterwards.
                </p>
    <p>
      
            
    </p>
    <p>

              Application code must <em>not</em> call this
              method directly, it is for internal use only.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Subclass)-copyEscapedBLOB:into:">copyEscapedBLOB:&nbsp;into:&nbsp;</a></h3>
    - (unsigned) <b>copyEscapedBLOB:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSData.html#class$NSData">NSData</a>*)blob<b> into:</b> (void*)buf;<br />
Subclasses <strong>should</strong> override this method.<br />
    <p>
      
            This method is <em>only</em> for the use of the
            <a rel="gsdoc" href="#method$SQLClient-insertBLOBs:intoStatement:length:withMarker:length:giving:">-insertBLOBs:intoStatement:length:withMarker:length:giving:</a>
 method. <br /> Subclasses which need to insert binary data into a statement must implement this method to copy the escaped data into place and return the number of bytes actually copied.
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Subclass)-insertBLOBs:intoStatement:length:withMarker:length:giving:">insertBLOBs:&nbsp;intoStatement:&nbsp;length:&nbsp;withMarker:&nbsp;length:&nbsp;giving:&nbsp;</a></h3>
    - (const void*) <b>insertBLOBs:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSArray.html#class$NSArray">NSArray</a>*)blobs<b> intoStatement:</b> (const void*)statement<b> length:</b> (unsigned)sLength<b> withMarker:</b> (const void*)marker<b> length:</b> (unsigned)mLength<b> giving:</b> (unsigned*)result;<br />
    <p>
      
            
    </p>
    <p>

              This method is a convenience method provided for
              subclasses which need to insert escaped binary
              data into an SQL <var>statement</var> before sending
              the <var>statement</var> to a backend server process.
              This method makes use of the
              <a rel="gsdoc" href="#method$SQLClient-copyEscapedBLOB:into:">
                -copyEscapedBLOB:into:
              </a>

              and
              <a rel="gsdoc" href="#method$SQLClient-lengthOfEscapedBLOB:">
                -lengthOfEscapedBLOB:
              </a>

              methods, which <em>must</em> be implemented by
              the subclass.
                </p>
    <p>
      
            
    </p>
    <p>

              The <var>blobs</var> array is an array containing the
              original SQL <var>statement</var> string (unused
              by this method) followed by the data items to be
              inserted.
                </p>
    <p>
      
            
    </p>
    <p>

              The <var>statement</var> and <var>sLength</var>
              arguments specify the datastream to be copied
              and into which the BLOBs are to be inserted.
                </p>
    <p>
      
            
    </p>
    <p>

              The <var>marker</var> and <var>mLength</var>
              arguments specify the sequence of
              <var>marker</var> bytes in the <var>statement</var>
              which indicate a position for insertion of a n
              escaped BLOB.
                </p>
    <p>
      
            
    </p>
    <p>

              The method returns either the original
              <var>statement</var> or a copy containing the
              escaped BLOBs. The length of the returned data is
              stored in <var>result</var>.
                </p>
    <p>
      
          
    </p>
    <hr width="25%" align="left" />
    <h3><a name="method$SQLClient(Subclass)-lengthOfEscapedBLOB:">lengthOfEscapedBLOB:&nbsp;</a></h3>
    - (unsigned) <b>lengthOfEscapedBLOB:</b> (<a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSData.html#class$NSData">NSData</a>*)blob;<br />
Subclasses <strong>should</strong> override this method.<br />
    <p>
      
            This method is <em>only</em> for the use of the
            <a rel="gsdoc" href="#method$SQLClient-insertBLOBs:intoStatement:length:withMarker:length:giving:">-insertBLOBs:intoStatement:length:withMarker:length:giving:</a>
 method. <br /> Subclasses which need to insert binary data into a statement must implement this method to return the length of the escaped bytestream which will be inserted.
          
    </p>
    <hr width="25%" align="left" />

          <h1><a name="007000000000">SQLClient variables</a></h1>
    <p>
    </p>
    <h3><a name="variable$SQLConnectionException">SQLConnectionException</a></h3>
    <a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>* SQLConnectionException;<br />
    <p>
      
          Exception for when a connection to the server is
          lost.
        
    </p>
    <hr width="25%" align="left" />
    <h3><a name="variable$SQLEmptyException">SQLEmptyException</a></h3>
    <a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>* SQLEmptyException;<br />
    <p>
      
          Exception for when a query is supposed to return
          data and doesn&apos;t.
        
    </p>
    <hr width="25%" align="left" />
    <h3><a name="variable$SQLException">SQLException</a></h3>
    <a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>* SQLException;<br />
    <p>
      
          Exception raised when an error with the remote
          database server occurs.
        
    </p>
    <hr width="25%" align="left" />
    <h3><a name="variable$SQLUniqueException">SQLUniqueException</a></h3>
    <a rel="gsdoc" href="/usr/home/brains99/GNUstep/System/Library/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>* SQLUniqueException;<br />
    <p>
      
          Exception for when an insert/update would break the
          uniqueness of a field or index.
        
    </p>
    <hr width="25%" align="left" />
    <br />
    </font>
</body>
</html>