File: migration.html

package info (click to toggle)
libgda2 1.2.4-1.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,724 kB
  • ctags: 6,979
  • sloc: ansic: 47,166; xml: 19,896; sh: 8,797; makefile: 863; yacc: 202; lex: 129; cpp: 73
file content (96 lines) | stat: -rw-r--r-- 5,661 bytes parent folder | download
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Some formulae for migration from old version</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GNOME Data Access manual">
<link rel="up" href="index.html" title="GNOME Data Access manual">
<link rel="prev" href="main_example.html" title="Full example">
<link rel="next" href="migration-configuration.html" title="Configuration and connections">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="introduction.html" title="Introduction">
<link rel="chapter" href="architecture.html" title="libgda architecture">
<link rel="chapter" href="installation.html" title="Installation">
<link rel="chapter" href="connecting.html" title="Beginning">
<link rel="chapter" href="processing-queries.html" title="Processing queries">
<link rel="chapter" href="ch06.html" title="Transactions and batch processes">
<link rel="chapter" href="managing-errors.html" title="Managing errors">
<link rel="chapter" href="main_example.html" title="Full example">
<link rel="chapter" href="migration.html" title="Some formulae for migration from old version">
<link rel="chapter" href="libgda-api.html" title="Client API Reference">
<link rel="chapter" href="libgda-providers.html" title="GDA Providers">
<link rel="chapter" href="libgda-xql.html" title="XML Queries">
<link rel="chapter" href="libgda-reports.html" title="GDA Report Engine">
<link rel="appendix" href="fdl.html" title="Appendix A. GNU Free Documentation License">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="main_example.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME Data Access manual</th>
<td><a accesskey="n" href="migration-configuration.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="chapter" lang="en">
<div class="titlepage"><div><div><h2 class="title">
<a name="migration"></a>Some formulae for migration from old version</h2></div></div></div>
<div class="toc"><dl>
<dt><span class="sect1"><a href="migration.html#migration-compilation">Compiling and initialising</a></span></dt>
<dt><span class="sect1"><a href="migration-configuration.html">Configuration and connections</a></span></dt>
<dd><dl>
<dt><span class="sect2"><a href="migration-configuration.html#migration-data-sources">Creating data sources</a></span></dt>
<dt><span class="sect2"><a href="migration-configuration.html#migration-connections">Creating connections</a></span></dt>
</dl></dd>
<dt><span class="sect1"><a href="migration-executing-commands.html">Executing commands</a></span></dt>
<dd><dl>
<dt><span class="sect2"><a href="migration-executing-commands.html#migration-creating-commands">Creating commands</a></span></dt>
<dt><span class="sect2"><a href="migration-executing-commands.html#migration-executing-non-queries">Executing <span class="emphasis"><em>non queries</em></span></a></span></dt>
<dt><span class="sect2"><a href="migration-executing-commands.html#migration-executing-normal-queries">Executing normal queries</a></span></dt>
</dl></dd>
<dt><span class="sect1"><a href="ch09s04.html">Managing data</a></span></dt>
<dd><dl>
<dt><span class="sect2"><a href="ch09s04.html#id448468">Something important about data models</a></span></dt>
<dt><span class="sect2"><a href="ch09s04.html#id448502">Accessing directly to columns</a></span></dt>
</dl></dd>
<dt><span class="sect1"><a href="ch09s05.html">Managing errors</a></span></dt>
<dt><span class="sect1"><a href="ch09s06.html">Managing transactions</a></span></dt>
</dl></div>
<div class="sect1" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="migration-compilation"></a>Compiling and initialising</h2></div></div></div>
<p>
        To <a class="link" href="compiling.html" title="Compiling with the library">compile</a> you do not need to link
        with many libraries and configure directories of headers files, only
        capture the output of <span class="emphasis"><em>pkg-config</em></span> as follows:
        </p>
<pre class="programlisting">
          <code class="systemitem">$</code> <strong class="userinput"><code> gcc -o main `pkg-config --cflags --libs libgda` main.c</code></strong>
        </pre>
<p>
      </p>
<p>
        Further more, you only need to include one <a class="link" href="installation-configuring.html#installation-development" title="Configuration for development">headers file</a> and it is:
        </p>
<pre class="programlisting">
    #include &lt;libgda/libgda.h&gt;
        </pre>
<p>
      </p>
<p>
        As in the old version, you need to call <a class="link" href="libgda-libgda.html#gda-init" title="gda_init ()"><span class="emphasis"><em>gda_init()</em></span></a> to
        <a class="link" href="connecting.html#initializing" title="Initialising">initialise</a> the library:
        </p>
<pre class="programlisting">
          gda_init ("TestGDA", "0.1", argc, argv);
        </pre>
<p>
      </p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.10</div>
</body>
</html>