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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libgdamm: Gnome::Gda::Client Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
<td>libgdamm Reference Documentation</td>
</tr>
</table>
<center>
<a class="qindex" href="../../../../../libgnomedbmm-3.0/docs/index.html">Main Page</a>
<a class="qindex" href="namespaces.html"> Namespaces</a>
<a href="../../../../../libgnomedbmm-3.0/docs/tutorial/html/index.html"> Book</a>
</center>
<hr width="100%"/>
<!-- Generated by Doxygen 1.5.1 -->
<div class="nav">
<a class="el" href="namespaceGnome.html">Gnome</a>::<a class="el" href="namespaceGnome_1_1Gda.html">Gda</a>::<a class="el" href="classGnome_1_1Gda_1_1Client.html">Client</a></div>
<h1>Gnome::Gda::Client Class Reference<br>
<small>
[<a class="el" href="group__Connections.html">Connections and Commands</a>]</small>
</h1><!-- doxytag: class="Gnome::Gda::Client" --><!-- doxytag: inherits="Glib::Object" -->Database client access.
<a href="#_details">More...</a>
<p>
Inheritance diagram for Gnome::Gda::Client:<p><center><img src="classGnome_1_1Gda_1_1Client__inherit__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1Client__inherit__map" alt="Inheritance graph"></center>
<map name="Gnome_1_1Gda_1_1Client__inherit__map">
<area doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Object.html" shape="rect" coords="32,161,125,188" alt="">
<area doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html" shape="rect" coords="16,84,141,111" alt="">
<area doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classsigc_1_1trackable.html" shape="rect" coords="23,7,135,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGnome_1_1Gda_1_1Client-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#825f7d1df75fb8aa4d2a0898d86eed22">begin_transaction</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& name, <a class="el" href="group__libgdammEnums.html#g1f72a0f3687a131db0d845f421819d1f">TransactionIsolation</a> level)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Starts a transaction on all connections being managed by the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>. <a href="#825f7d1df75fb8aa4d2a0898d86eed22"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#0ab47aa24917352355d639f02017ef5d">close_all_connections</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Closes all connections opened by the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> object. <a href="#0ab47aa24917352355d639f02017ef5d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#d92323e9193a806b1e06597727771b01">commit_transaction</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Commits a running transaction on all connections being managed by the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>. <a href="#d92323e9193a806b1e06597727771b01"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#9b22b181a54bdd67a00268dce796cc2d">declare_connection</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& cnc)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Declares the <em>cnc</em> to <em>client</em>. <a href="#9b22b181a54bdd67a00268dce796cc2d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#b3ec600142003abb897f8c871f975c08">find_connection</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& dsn, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& username, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& password)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Looks for an open connection given a data source name (per libgda configuration), a username and a password. <a href="#b3ec600142003abb897f8c871f975c08"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<br>
const <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#053901fedde2906fa17c53d974b51a6b">get_connections</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the list of all open connections in the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> object. <a href="#053901fedde2906fa17c53d974b51a6b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ListHandle.html">Glib::ListHandle</a>< <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<br>
<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#4350440e2e6c2c41b245cffb3a7e885b">get_connections</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the list of all open connections in the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> object. <a href="#4350440e2e6c2c41b245cffb3a7e885b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#bc5eb663c5a54201fbfe5138db69a72f">get_dsn_specs</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& provider) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get an XML string representing the parameters which can be present in the DSN string used to open a connection. <a href="#bc5eb663c5a54201fbfe5138db69a72f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GdaClient* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#f5cb6a66302a95c1e6d03b270d36a206">gobj</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#f5cb6a66302a95c1e6d03b270d36a206"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaClient* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#e4c99c7b0622df51f720ae711bc9596b">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#e4c99c7b0622df51f720ae711bc9596b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaClient* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#dd1c5724a148206fe22ec9d5b6d8667c">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#dd1c5724a148206fe22ec9d5b6d8667c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#1382795ce1a35d08eabf00d47edb11ae">notify_connection_closed_event</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& cnc)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Notifies the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> of the <a class="el" href="group__libgdammEnums.html#gg21edcaf835dd4fd816f0fc7a9578b49ba0b5780693f6ab982050a7cb9e38379a">Gda::CLIENT_EVENT_CONNECTION_CLOSED</a> event. <a href="#1382795ce1a35d08eabf00d47edb11ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#46861394ad2c464a3fbcbea039632ed0">notify_connection_opened_event</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& cnc)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Notifies the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> of the <a class="el" href="group__libgdammEnums.html#gg21edcaf835dd4fd816f0fc7a9578b49b18fb765a3854815794c9d717332fae1e">Gda::CLIENT_EVENT_CONNECTION_OPENED</a> event. <a href="#46861394ad2c464a3fbcbea039632ed0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#1a5d267da639926e7a062eae965328c3">notify_error_event</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& cnc, GdaConnectionEvent* error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Notifies the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> of the <a class="el" href="group__libgdammEnums.html#gg21edcaf835dd4fd816f0fc7a9578b49b6474c94f0697d25a6d8fdb08791a294d">Gda::CLIENT_EVENT_ERROR</a> event. <a href="#1a5d267da639926e7a062eae965328c3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#e5eb806b9c775fd4c1263329d94078b6">notify_event</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& cnc, <a class="el" href="group__libgdammEnums.html#g21edcaf835dd4fd816f0fc7a9578b49b">ClientEvent</a> event, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ParameterList.html">ParameterList</a>>& params)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Notifies an event to the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>'s listeners. <a href="#e5eb806b9c775fd4c1263329d94078b6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#27f09fa0145db3e16cc76bd0360faf27">open_connection</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& dsn, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& username, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& password, <a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">ConnectionOptions</a> options=(<a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">ConnectionOptions</a>) 0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This function is the way of opening database connections with libgda. <a href="#27f09fa0145db3e16cc76bd0360faf27"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#949c398161721237402db2e9cd029475">open_connection_from_string</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& provider_id, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& cnc_string, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& username, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& password, <a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">ConnectionOptions</a> options=(<a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">ConnectionOptions</a>) 0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Opens a connection given a provider ID and a connection string. <a href="#949c398161721237402db2e9cd029475"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#04bd2b5fd2646b40e357107dfaa4f5b7">perform_create_database</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">ServerOperation</a>>& op)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new database using the specifications in <em>op</em>, which must have been obtained using <a class="el" href="classGnome_1_1Gda_1_1Client.html#486d258f80a07bb288e8d3804c63e138">prepare_create_database()</a>. <a href="#04bd2b5fd2646b40e357107dfaa4f5b7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#a464b64481476433c5a7c3adbd0c96df">perform_drop_database</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">ServerOperation</a>>& op)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroys an existing database using the specifications in <em>op</em>, which must have been obtained using <a class="el" href="classGnome_1_1Gda_1_1Client.html#6275619e228b3b81c752e00bd56360f3">prepare_drop_database()</a>. <a href="#a464b64481476433c5a7c3adbd0c96df"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">ServerOperation</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#486d258f80a07bb288e8d3804c63e138">prepare_create_database</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& db_name, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& provider)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> object which contains the specifications required to create a database. <a href="#486d258f80a07bb288e8d3804c63e138"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">ServerOperation</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#6275619e228b3b81c752e00bd56360f3">prepare_drop_database</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& db_name, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& provider)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> object which contains the specifications required to drop a database. <a href="#6275619e228b3b81c752e00bd56360f3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#c29147434ce87cbfac99880ea1ef73bb">rollback_transaction</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Cancels a running transaction on all connections being managed by the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>. <a href="#c29147434ce87cbfac99880ea1ef73bb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy3.html">Glib::SignalProxy3</a>< void,<br>
const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>&,<br>
<a class="el" href="group__libgdammEnums.html#g21edcaf835dd4fd816f0fc7a9578b49b">ClientEvent</a>, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<br>
<a class="el" href="classGnome_1_1Gda_1_1ParameterList.html">ParameterList</a> >& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#77e6f3998f101cd4fcd2c52cb68c55c7">signal_event_notification</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_event_notification(const Glib::RefPtr<Connection>& cnc, ClientEvent event, const Glib::RefPtr<ParameterList>& params)</code> </dd></dl>
<a href="#77e6f3998f101cd4fcd2c52cb68c55c7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#7de23dbbe40013d262df5162c2789ba3">~Client</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Client.html">Client</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#d3707aae5cf47ed9fc79e5a1f29b51ac">create</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#42a33fcfc775019299c1e64567287f16">Client</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#6862981326b5eb0ad56c3ce35ebad459">on_event_notification</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& cnc, <a class="el" href="group__libgdammEnums.html#g21edcaf835dd4fd816f0fc7a9578b49b">ClientEvent</a> event, const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ParameterList.html">ParameterList</a>>& params)</td></tr>
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Client.html">Gnome::Gda::Client</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Client.html#8a1b43399331a94a9d3c10f5e6102b1e">wrap</a> (GdaClient* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#8a1b43399331a94a9d3c10f5e6102b1e"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Database client access.
<p>
This class is the main entry point for libgda client applications. It provides the way by which client applications open connections. Thus, before using any other database-oriented function in libgda, applications must create a <a class="el" href="classGnome_1_1Gda_1_1Client.html">Client</a> object and open the connections from it.<p>
The <a class="el" href="classGnome_1_1Gda_1_1Client.html">Client</a> class also provides a way to treat several connections as if they were only one (a connection pool), which allows applications to, for instance, commit/rollback a transaction in all the connections being managed by a unique <a class="el" href="classGnome_1_1Gda_1_1Client.html">Client</a> object, or obtain the list of all tables in all opened connections.<p>
Database creation and destruction is done through a <a class="el" href="classGnome_1_1Gda_1_1Client.html">Client</a> object using the <a class="el" href="classGnome_1_1Gda_1_1Client.html#04bd2b5fd2646b40e357107dfaa4f5b7">perform_create_database()</a> and <a class="el" href="classGnome_1_1Gda_1_1Client.html#a464b64481476433c5a7c3adbd0c96df">perform_drop_database()</a> methods. Note however that depending on the provider, an opened connection may be required in order to create or destroy a database.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="7de23dbbe40013d262df5162c2789ba3"></a><!-- doxytag: member="Gnome::Gda::Client::~Client" ref="7de23dbbe40013d262df5162c2789ba3" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual Gnome::Gda::Client::~Client </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="42a33fcfc775019299c1e64567287f16"></a><!-- doxytag: member="Gnome::Gda::Client::Client" ref="42a33fcfc775019299c1e64567287f16" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Gnome::Gda::Client::Client </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="825f7d1df75fb8aa4d2a0898d86eed22"></a><!-- doxytag: member="Gnome::Gda::Client::begin_transaction" ref="825f7d1df75fb8aa4d2a0898d86eed22" args="(const Glib::ustring &name, TransactionIsolation level)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gnome::Gda::Client::begin_transaction </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__libgdammEnums.html#g1f72a0f3687a131db0d845f421819d1f">TransactionIsolation</a> </td>
<td class="paramname"> <em>level</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Starts a transaction on all connections being managed by the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>.
<p>
It is important to note that this operates on all connections opened within a <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>, which could not be what you're looking for.<p>
To execute a transaction on a unique connection, use gda_connection_begin_transaction, gda_connection_commit_transaction and gda_connection_rollback_transaction. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the transation to start. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if all transactions could be started successfully, or <code>false</code> if one of them fails. </dd></dl>
</div>
</div><p>
<a class="anchor" name="0ab47aa24917352355d639f02017ef5d"></a><!-- doxytag: member="Gnome::Gda::Client::close_all_connections" ref="0ab47aa24917352355d639f02017ef5d" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gnome::Gda::Client::close_all_connections </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Closes all connections opened by the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> object.
<p>
</div>
</div><p>
<a class="anchor" name="d92323e9193a806b1e06597727771b01"></a><!-- doxytag: member="Gnome::Gda::Client::commit_transaction" ref="d92323e9193a806b1e06597727771b01" args="(const Glib::ustring &name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gnome::Gda::Client::commit_transaction </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>name</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Commits a running transaction on all connections being managed by the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>.
<p>
It is important to note that this operates on all connections opened within a <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>, which could not be what you're looking for.<p>
To execute a transaction on a unique connection, use gda_connection_begin_transaction, gda_connection_commit_transaction and gda_connection_rollback_transaction. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the transation to commit. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if all transactions could be committed successfully, or <code>false</code> if one of them fails. </dd></dl>
</div>
</div><p>
<a class="anchor" name="d3707aae5cf47ed9fc79e5a1f29b51ac"></a><!-- doxytag: member="Gnome::Gda::Client::create" ref="d3707aae5cf47ed9fc79e5a1f29b51ac" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Client.html">Client</a>> Gnome::Gda::Client::create </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="9b22b181a54bdd67a00268dce796cc2d"></a><!-- doxytag: member="Gnome::Gda::Client::declare_connection" ref="9b22b181a54bdd67a00268dce796cc2d" args="(const Glib::RefPtr< Connection > &cnc)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gnome::Gda::Client::declare_connection </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& </td>
<td class="paramname"> <em>cnc</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Declares the <em>cnc</em> to <em>client</em>.
<p>
This function should not be used directly <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>cnc</em> </td><td>A <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Gda::Connection</a> object. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="b3ec600142003abb897f8c871f975c08"></a><!-- doxytag: member="Gnome::Gda::Client::find_connection" ref="b3ec600142003abb897f8c871f975c08" args="(const Glib::ustring &dsn, const Glib::ustring &username, const Glib::ustring &password)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>> Gnome::Gda::Client::find_connection </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>dsn</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>username</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>password</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Looks for an open connection given a data source name (per libgda configuration), a username and a password.
<p>
This function iterates over the list of open connections in the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> and looks for one that matches the given data source name, username and password. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>dsn</em> </td><td>Data source name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>username</em> </td><td>User name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>password</em> </td><td>Password for <em>username</em>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the found connection, or <code>0</code> if it could not be found. </dd></dl>
</div>
</div><p>
<a class="anchor" name="053901fedde2906fa17c53d974b51a6b"></a><!-- doxytag: member="Gnome::Gda::Client::get_connections" ref="053901fedde2906fa17c53d974b51a6b" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ListHandle.html">Glib::ListHandle</a><<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>> Gnome::Gda::Client::get_connections </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Gets the list of all open connections in the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> object.
<p>
The GList returned is an internal pointer, so DON'T TRY TO FREE IT. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A GList of <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Gda::Connection</a> objects; dont't modify that list. </dd></dl>
</div>
</div><p>
<a class="anchor" name="4350440e2e6c2c41b245cffb3a7e885b"></a><!-- doxytag: member="Gnome::Gda::Client::get_connections" ref="4350440e2e6c2c41b245cffb3a7e885b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ListHandle.html">Glib::ListHandle</a><<a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>> Gnome::Gda::Client::get_connections </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Gets the list of all open connections in the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> object.
<p>
The GList returned is an internal pointer, so DON'T TRY TO FREE IT. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A GList of <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Gda::Connection</a> objects; dont't modify that list. </dd></dl>
</div>
</div><p>
<a class="anchor" name="bc5eb663c5a54201fbfe5138db69a72f"></a><!-- doxytag: member="Gnome::Gda::Client::get_dsn_specs" ref="bc5eb663c5a54201fbfe5138db69a72f" args="(const Glib::ustring &provider) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gnome::Gda::Client::get_dsn_specs </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>provider</em> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get an XML string representing the parameters which can be present in the DSN string used to open a connection.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>provider</em> </td><td>A provider. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A string (free it after usage), or <code>0</code> if an error occurred. </dd></dl>
</div>
</div><p>
<a class="anchor" name="f5cb6a66302a95c1e6d03b270d36a206"></a><!-- doxytag: member="Gnome::Gda::Client::gobj" ref="f5cb6a66302a95c1e6d03b270d36a206" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const GdaClient* Gnome::Gda::Client::gobj </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Provides access to the underlying C GObject.
<p>
<p>
Reimplemented from <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html#2b7010748d60e770e9e0b3d65c100cf2">Glib::ObjectBase</a>.
</div>
</div><p>
<a class="anchor" name="e4c99c7b0622df51f720ae711bc9596b"></a><!-- doxytag: member="Gnome::Gda::Client::gobj" ref="e4c99c7b0622df51f720ae711bc9596b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GdaClient* Gnome::Gda::Client::gobj </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Provides access to the underlying C GObject.
<p>
<p>
Reimplemented from <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html#4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.
</div>
</div><p>
<a class="anchor" name="dd1c5724a148206fe22ec9d5b6d8667c"></a><!-- doxytag: member="Gnome::Gda::Client::gobj_copy" ref="dd1c5724a148206fe22ec9d5b6d8667c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GdaClient* Gnome::Gda::Client::gobj_copy </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
<p>
</div>
</div><p>
<a class="anchor" name="1382795ce1a35d08eabf00d47edb11ae"></a><!-- doxytag: member="Gnome::Gda::Client::notify_connection_closed_event" ref="1382795ce1a35d08eabf00d47edb11ae" args="(const Glib::RefPtr< Connection > &cnc)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gnome::Gda::Client::notify_connection_closed_event </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& </td>
<td class="paramname"> <em>cnc</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Notifies the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> of the <a class="el" href="group__libgdammEnums.html#gg21edcaf835dd4fd816f0fc7a9578b49ba0b5780693f6ab982050a7cb9e38379a">Gda::CLIENT_EVENT_CONNECTION_CLOSED</a> event.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>cnc</em> </td><td>A <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Gda::Connection</a> object. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="46861394ad2c464a3fbcbea039632ed0"></a><!-- doxytag: member="Gnome::Gda::Client::notify_connection_opened_event" ref="46861394ad2c464a3fbcbea039632ed0" args="(const Glib::RefPtr< Connection > &cnc)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gnome::Gda::Client::notify_connection_opened_event </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& </td>
<td class="paramname"> <em>cnc</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Notifies the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> of the <a class="el" href="group__libgdammEnums.html#gg21edcaf835dd4fd816f0fc7a9578b49b18fb765a3854815794c9d717332fae1e">Gda::CLIENT_EVENT_CONNECTION_OPENED</a> event.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>cnc</em> </td><td>A <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Gda::Connection</a> object. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="1a5d267da639926e7a062eae965328c3"></a><!-- doxytag: member="Gnome::Gda::Client::notify_error_event" ref="1a5d267da639926e7a062eae965328c3" args="(const Glib::RefPtr< Connection > &cnc, GdaConnectionEvent *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gnome::Gda::Client::notify_error_event </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& </td>
<td class="paramname"> <em>cnc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">GdaConnectionEvent * </td>
<td class="paramname"> <em>error</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Notifies the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> of the <a class="el" href="group__libgdammEnums.html#gg21edcaf835dd4fd816f0fc7a9578b49b6474c94f0697d25a6d8fdb08791a294d">Gda::CLIENT_EVENT_ERROR</a> event.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>cnc</em> </td><td>A <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Gda::Connection</a> object. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="e5eb806b9c775fd4c1263329d94078b6"></a><!-- doxytag: member="Gnome::Gda::Client::notify_event" ref="e5eb806b9c775fd4c1263329d94078b6" args="(const Glib::RefPtr< Connection > &cnc, ClientEvent event, const Glib::RefPtr< ParameterList > &params)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gnome::Gda::Client::notify_event </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& </td>
<td class="paramname"> <em>cnc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__libgdammEnums.html#g21edcaf835dd4fd816f0fc7a9578b49b">ClientEvent</a> </td>
<td class="paramname"> <em>event</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ParameterList.html">ParameterList</a>>& </td>
<td class="paramname"> <em>params</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Notifies an event to the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>'s listeners.
<p>
The event can be anything (see <a class="el" href="group__libgdammEnums.html#g21edcaf835dd4fd816f0fc7a9578b49b">Gda::ClientEvent</a>) ranging from a connection opening operation, to changes made to a table in an underlying database. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>cnc</em> </td><td>A <a class="el" href="classGnome_1_1Gda_1_1Connection.html">Gda::Connection</a> object where the event has occurred. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>event</em> </td><td>Event ID. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>params</em> </td><td>Parameters associated with the event. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="6862981326b5eb0ad56c3ce35ebad459"></a><!-- doxytag: member="Gnome::Gda::Client::on_event_notification" ref="6862981326b5eb0ad56c3ce35ebad459" args="(const Glib::RefPtr< Connection > &cnc, ClientEvent event, const Glib::RefPtr< ParameterList > &params)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void Gnome::Gda::Client::on_event_notification </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>& </td>
<td class="paramname"> <em>cnc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__libgdammEnums.html#g21edcaf835dd4fd816f0fc7a9578b49b">ClientEvent</a> </td>
<td class="paramname"> <em>event</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ParameterList.html">ParameterList</a>>& </td>
<td class="paramname"> <em>params</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="27f09fa0145db3e16cc76bd0360faf27"></a><!-- doxytag: member="Gnome::Gda::Client::open_connection" ref="27f09fa0145db3e16cc76bd0360faf27" args="(const Glib::ustring &dsn, const Glib::ustring &username, const Glib::ustring &password, ConnectionOptions options=(ConnectionOptions) 0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>> Gnome::Gda::Client::open_connection </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>dsn</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>username</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>password</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">ConnectionOptions</a> </td>
<td class="paramname"> <em>options</em> = <code>(<a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">ConnectionOptions</a>) 0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function is the way of opening database connections with libgda.
<p>
Establishes a connection to a data source. The connection will be opened if no identical connection is available in the <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a> connection pool, and re-used if available. If you dont want to share the connection, specify Gda::CONNECTION_OPTIONS_DONT_SHARE as one of the flags in the <em>options</em> parameter.<p>
The username and password used to actually open the connection are the first non-<code>0</code> string being chosen by order from <itemizedlist> <listitem>the <em>username</em> or <em>password</listitem></em> <listitem>the username or password sprcified in the DSN definition</listitem> <listitem>the USERNAME= and PASSWORD= parts of the connection string in the DSN definition</listitem> </itemizedlist> <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>dsn</em> </td><td>Data source name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>username</em> </td><td>User name or <code>0</code>. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>password</em> </td><td>Password for <em>username</em>, or <code>0</code>. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>Options for the connection (see <a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">Gda::ConnectionOptions</a>). </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The opened connection if successful, <code>0</code> if there is an error. </dd></dl>
</div>
</div><p>
<a class="anchor" name="949c398161721237402db2e9cd029475"></a><!-- doxytag: member="Gnome::Gda::Client::open_connection_from_string" ref="949c398161721237402db2e9cd029475" args="(const Glib::ustring &provider_id, const Glib::ustring &cnc_string, const Glib::ustring &username, const Glib::ustring &password, ConnectionOptions options=(ConnectionOptions) 0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>> Gnome::Gda::Client::open_connection_from_string </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>provider_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>cnc_string</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>username</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>password</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">ConnectionOptions</a> </td>
<td class="paramname"> <em>options</em> = <code>(<a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">ConnectionOptions</a>) 0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Opens a connection given a provider ID and a connection string.
<p>
This allows applications to open connections without having to create a data source in the configuration. The format of <em>cnc_string</em> is similar to PostgreSQL and MySQL connection strings. It is a semicolumn-separated series of key=value pairs. Do not add extra whitespace after the semicolumn separator. The possible keys depend on the provider, but these keys should work with all providers: USER, PASSWORD, HOST, DATABASE, PORT<p>
The username and password used to actually open the connection are the first non-<code>0</code> string being chosen by order from <itemizedlist> <listitem>the <em>username</em> or <em>password</listitem></em> <listitem>the USERNAME= and PASSWORD= parts of the <em>cnc_string</listitem></em> </itemizedlist> <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>provider_id</em> </td><td>Provider ID to connect to. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>cnc_string</em> </td><td><a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a> string. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>username</em> </td><td>User name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>password</em> </td><td>Password for <em>username</em>. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>Options for the connection (see <a class="el" href="group__libgdammEnums.html#g433252f971f9fd95a92c16b62f9a8f37">Gda::ConnectionOptions</a>). </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The opened connection if successful, <code>0</code> if there is an error. </dd></dl>
</div>
</div><p>
<a class="anchor" name="04bd2b5fd2646b40e357107dfaa4f5b7"></a><!-- doxytag: member="Gnome::Gda::Client::perform_create_database" ref="04bd2b5fd2646b40e357107dfaa4f5b7" args="(const Glib::RefPtr< ServerOperation > &op)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gnome::Gda::Client::perform_create_database </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">ServerOperation</a>>& </td>
<td class="paramname"> <em>op</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a new database using the specifications in <em>op</em>, which must have been obtained using <a class="el" href="classGnome_1_1Gda_1_1Client.html#486d258f80a07bb288e8d3804c63e138">prepare_create_database()</a>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>op</em> </td><td>A <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> object obtained using <a class="el" href="classGnome_1_1Gda_1_1Client.html#486d258f80a07bb288e8d3804c63e138">prepare_create_database()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred and the database has been created. </dd></dl>
</div>
</div><p>
<a class="anchor" name="a464b64481476433c5a7c3adbd0c96df"></a><!-- doxytag: member="Gnome::Gda::Client::perform_drop_database" ref="a464b64481476433c5a7c3adbd0c96df" args="(const Glib::RefPtr< ServerOperation > &op)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gnome::Gda::Client::perform_drop_database </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">ServerOperation</a>>& </td>
<td class="paramname"> <em>op</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Destroys an existing database using the specifications in <em>op</em>, which must have been obtained using <a class="el" href="classGnome_1_1Gda_1_1Client.html#6275619e228b3b81c752e00bd56360f3">prepare_drop_database()</a>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>op</em> </td><td>A <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> object obtained using <a class="el" href="classGnome_1_1Gda_1_1Client.html#6275619e228b3b81c752e00bd56360f3">prepare_drop_database()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred and the database has been destroyed. </dd></dl>
</div>
</div><p>
<a class="anchor" name="486d258f80a07bb288e8d3804c63e138"></a><!-- doxytag: member="Gnome::Gda::Client::prepare_create_database" ref="486d258f80a07bb288e8d3804c63e138" args="(const Glib::ustring &db_name, const Glib::ustring &provider)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">ServerOperation</a>> Gnome::Gda::Client::prepare_create_database </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>db_name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>provider</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a new <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> object which contains the specifications required to create a database.
<p>
Once these specifications provided, use <a class="el" href="classGnome_1_1Gda_1_1Client.html#04bd2b5fd2646b40e357107dfaa4f5b7">perform_create_database()</a> to perform the database creation.<p>
If <em>db_name</em> is left <code>0</code>, then the name of the database to create will have to be set in the returned <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> using <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html#66705e928bbded194606837c85ea7a83">Gda::ServerOperation::set_value_at()</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>db_name</em> </td><td>The name of the database to create, or <code>0</code>. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>provider</em> </td><td>A provider. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>New <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> object, or <code>0</code> if the provider does not support database creation. </dd></dl>
</div>
</div><p>
<a class="anchor" name="6275619e228b3b81c752e00bd56360f3"></a><!-- doxytag: member="Gnome::Gda::Client::prepare_drop_database" ref="6275619e228b3b81c752e00bd56360f3" args="(const Glib::ustring &db_name, const Glib::ustring &provider)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">ServerOperation</a>> Gnome::Gda::Client::prepare_drop_database </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>db_name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>provider</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a new <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> object which contains the specifications required to drop a database.
<p>
Once these specifications provided, use <a class="el" href="classGnome_1_1Gda_1_1Client.html#a464b64481476433c5a7c3adbd0c96df">perform_drop_database()</a> to perform the database creation.<p>
If <em>db_name</em> is left <code>0</code>, then the name of the database to drop will have to be set in the returned <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> using <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html#66705e928bbded194606837c85ea7a83">Gda::ServerOperation::set_value_at()</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>db_name</em> </td><td>The name of the database to drop, or <code>0</code>. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>provider</em> </td><td>A provider. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>New <a class="el" href="classGnome_1_1Gda_1_1ServerOperation.html">Gda::ServerOperation</a> object, or <code>0</code> if the provider does not support database destruction. </dd></dl>
</div>
</div><p>
<a class="anchor" name="c29147434ce87cbfac99880ea1ef73bb"></a><!-- doxytag: member="Gnome::Gda::Client::rollback_transaction" ref="c29147434ce87cbfac99880ea1ef73bb" args="(const Glib::ustring &name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gnome::Gda::Client::rollback_transaction </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>name</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Cancels a running transaction on all connections being managed by the given <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>.
<p>
It is important to note that this operates on all connections opened within a <a class="el" href="classGnome_1_1Gda_1_1Client.html">Gda::Client</a>, which could not be what you're looking for.<p>
To execute a transaction on a unique connection, use gda_connection_begin_transaction, gda_connection_commit_transaction and gda_connection_rollback_transaction. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the transation to rollback. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if all transactions could be cancelled successfully, or <code>false</code> if one of them fails. </dd></dl>
</div>
</div><p>
<a class="anchor" name="77e6f3998f101cd4fcd2c52cb68c55c7"></a><!-- doxytag: member="Gnome::Gda::Client::signal_event_notification" ref="77e6f3998f101cd4fcd2c52cb68c55c7" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy3.html">Glib::SignalProxy3</a><void,const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Connection.html">Connection</a>>&,<a class="el" href="group__libgdammEnums.html#g21edcaf835dd4fd816f0fc7a9578b49b">ClientEvent</a>,const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1ParameterList.html">ParameterList</a>>&> Gnome::Gda::Client::signal_event_notification </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_event_notification(const Glib::RefPtr<Connection>& cnc, ClientEvent event, const Glib::RefPtr<ParameterList>& params)</code> </dd></dl>
<p>
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="8a1b43399331a94a9d3c10f5e6102b1e"></a><!-- doxytag: member="Gnome::Gda::Client::wrap" ref="8a1b43399331a94a9d3c10f5e6102b1e" args="(GdaClient *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGnome_1_1Gda_1_1Client.html">Gnome::Gda::Client</a>> wrap </td>
<td>(</td>
<td class="paramtype">GdaClient * </td>
<td class="paramname"> <em>object</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>take_copy</em> </td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="client_8h.html">client.h</a></ul>
<hr><address><small>
Generated for libgdamm by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.1 © 1997-2001</small></address>
</body>
</html>
|