Sophie

Sophie

distrib > Momonga > development > i686 > media > os > by-pkgid > 1eef9e57e82c1edc25e3f7695995686c > files > 260

libgdamm4-devel-4.1.3-1m.mo8.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libgdamm: Gnome::Gda::SqlParser Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libgdamm&#160;<span id="projectnumber">4.1.3</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceGnome.html">Gnome</a> </li>
      <li class="navelem"><a class="el" href="namespaceGnome_1_1Gda.html">Gda</a> </li>
      <li class="navelem"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html">SqlParser</a> </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#related">Related Functions</a> </div>
  <div class="headertitle">
<h1>Gnome::Gda::SqlParser Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="Gnome::Gda::SqlParser" --><!-- doxytag: inherits="Glib::Object" -->
<p>SQL parser. <a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Gnome::Gda::SqlParser:</div>
<div class="dyncontent">
<div class="center"><img src="classGnome_1_1Gda_1_1SqlParser__inherit__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1SqlParser_inherit__map" alt="Inheritance graph"/></div>
<map name="Gnome_1_1Gda_1_1SqlParser_inherit__map" id="Gnome_1_1Gda_1_1SqlParser_inherit__map">
<area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="40,166,131,197"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="25,86,145,117"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="32,6,139,37"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for Gnome::Gda::SqlParser:</div>
<div class="dyncontent">
<div class="center"><img src="classGnome_1_1Gda_1_1SqlParser__coll__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1SqlParser_coll__map" alt="Collaboration graph"/></div>
<map name="Gnome_1_1Gda_1_1SqlParser_coll__map" id="Gnome_1_1Gda_1_1SqlParser_coll__map">
<area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="40,166,131,197"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="25,86,145,117"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="32,6,139,37"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGnome_1_1Gda_1_1SqlParser-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a765d2c3c16ddc2e2d0c123f7abd42ed5">~SqlParser</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdaSqlParser*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#af25f6f171a0e49b7a699fec818fff0eb">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#af25f6f171a0e49b7a699fec818fff0eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GdaSqlParser*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#ac75589e6f67165c0eaad7b0320c862c7">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#ac75589e6f67165c0eaad7b0320c862c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdaSqlParser*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a2361217e48cb1f4bd2e7eefde1e2540f">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</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="#a2361217e48cb1f4bd2e7eefde1e2540f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1Statement.html">Statement</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a7bf6ab947171af3633f9057493282283">parse_string</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; sql, <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; remain)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses <em>sql</em> and creates a <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> statement from the first SQL statement contained in <em>sql:</em> if <em>sql</em> contains more than one statement, then the remaining part of the string is not parsed at all, and <em>remain</em> (if not <code>0</code>) will point at the first non parsed character. <a href="#a7bf6ab947171af3633f9057493282283"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1Statement.html">Statement</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a5b2e0e43aaa1564761367b12dc5ea428">parse_string</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; sql)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1Batch.html">Batch</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a4c6d00c520b3e7db2202c6cedee70732">parse_string_as_batch</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; sql, <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; remain)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse <em>sql</em> and creates a <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> object which contains all the <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> objects created while parsing (one object per SQL statement). <a href="#a4c6d00c520b3e7db2202c6cedee70732"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1Batch.html">Batch</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a1e039c647fdebc48ca3f080839c79757">parse_string_as_batch</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; sql)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1Batch.html">Batch</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a77ce1356f13018c6c1762542612ad863">parse_file_as_batch</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; filename)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse <em>filename's</em> contents and creates a <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> object which contains all the <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> objects created while parsing (one object per SQL statement). <a href="#a77ce1356f13018c6c1762542612ad863"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a4b444c89abca611871e7b2f69180f95c">property_column_error</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#a4b444c89abca611871e7b2f69180f95c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#abaa2e9abd7bb376cad3d7b764561e5f8">property_line_error</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#abaa2e9abd7bb376cad3d7b764561e5f8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a408b37ec8905b302af01b5f5cabacf65">property_mode</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#a408b37ec8905b302af01b5f5cabacf65"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#adbe30840427ea8a4b6c3c74ffa8b860a">property_mode</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#adbe30840427ea8a4b6c3c74ffa8b860a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#acf3aa70c619396c2d7ff1fb1c9f52319">property_tokenizer_flavour</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#acf3aa70c619396c2d7ff1fb1c9f52319"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#af136acfc012d173361502518cb1e03c3">property_tokenizer_flavour</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#af136acfc012d173361502518cb1e03c3"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1SqlParser.html">SqlParser</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a8cf75992930e982c18573a5229a87ca7">create</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a2cc927b65570bb3b2dbf8fc2b494a044">SqlParser</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/>
&lt; <a class="el" href="classGnome_1_1Gda_1_1SqlParser.html">Gnome::Gda::SqlParser</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a8d5a3c0d376b2111618f83a4708c6d59">wrap</a> (GdaSqlParser* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a8d5a3c0d376b2111618f83a4708c6d59"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>SQL parser. </p>
<p>The <a class="el" href="classGnome_1_1Gda_1_1SqlParser.html" title="SQL parser.">Gda::SqlParser</a> is an object dedicated to creating <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> and <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> objects from SQL strings. The actual contents of the parsed statements is represented as <a class="el" href="classGnome_1_1Gda_1_1SqlStatement.html" title="Every SQL statement can be decomposed in the SqlStatement tree structure.">Gda::SqlStatement</a> structures (which can be obtained from any <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> through the "structure" property).</p>
<p><a class="el" href="classGnome_1_1Gda_1_1SqlParser.html" title="SQL parser.">Gda::SqlParser</a> parsers can be created by calling <a class="el" href="classGnome_1_1Gda_1_1ServerProvider.html#a8676058daf007a085469999e501dc897" title="Creates a new Gda::SqlParser object which is adapted to provider (and possibly depending on cnc for t...">Gda::ServerProvider::create_parser()</a> for a provider adapted SQL parser, or using <a class="el" href="classGnome_1_1Gda_1_1SqlParser.html#a8cf75992930e982c18573a5229a87ca7">create()</a> for a general purpose SQL parser.</p>
<p>The <a class="el" href="classGnome_1_1Gda_1_1SqlParser.html" title="SQL parser.">Gda::SqlParser</a> can either work in "parse" mode where it will try to parse the SQL string, or in "delimiter" mode where it will only attempt at delimiting SQL statements in a string which may contain several SQL statements (usually separated by a semi column). If operating in "parser" mode, and the parser can't correctly parse the string, then it will switch to the "delimiter" mode for the next statement in the string to parse (and create a STATEMENT_UNKNOWN statement).</p>
<p>The <a class="el" href="classGnome_1_1Gda_1_1SqlParser.html" title="SQL parser.">Gda::SqlParser</a> object parses and analyses SQL statements and reports the following statement types:</p>
<ul>
<li>SELECT (and COMPOUND select), INSERT, UPDATE and DELETE SQL statements should be completely parsed.</li>
</ul>
<ul>
<li>Transaction related statements (corresponding to the BEGIN, COMMIT, ROLLBACK, SAVEPOINT, ROLLBACK SAVEPOINT and DELETE SAVEPOINT) are parsed and a minimalist structure is created to extract some information (that structure is not enough per-se to re-create the complete SQL statement).</li>
</ul>
<p>Any other type of SQL statement (CREATE TABLE, ...) creates a GdaStatement of type STATEMENT_UNKNOWN, and it only able to locate place holders (variables) and end of statement marks.</p>
<p>NOTE: Any SQL of a type which should be parsed which but which creates a <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> of type GDA_SQL_STATEMENT_UNKNOWN (check with <a class="el" href="classGnome_1_1Gda_1_1Statement.html#a743226b2c98d269aca41c44a16a36ba2" title="Get the type of statement held by stmt.">Gda::Statement::get_statement_type()</a>) should be reported as a bug.</p>
<p>The <a class="el" href="classGnome_1_1Gda_1_1SqlParser.html" title="SQL parser.">Gda::SqlParser</a> object recognizes place holders (variables), which can later be queried and valued using <a class="el" href="classGnome_1_1Gda_1_1Statement.html#a8dad51a8ddb41ae5d1f67b81e777471c" title="Get a new Gda::Set object which groups all the execution parameters which stmt needs.">Gda::Statement::get_parameters()</a>. See the syntax description for the underlying <a href="http://library.gnome.org/devel/libgda/stable/GdaSqlParser.html#GdaSqlParser.description">GdaSqlParser</a>. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a765d2c3c16ddc2e2d0c123f7abd42ed5"></a><!-- doxytag: member="Gnome::Gda::SqlParser::~SqlParser" ref="a765d2c3c16ddc2e2d0c123f7abd42ed5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gnome::Gda::SqlParser::~SqlParser </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2cc927b65570bb3b2dbf8fc2b494a044"></a><!-- doxytag: member="Gnome::Gda::SqlParser::SqlParser" ref="a2cc927b65570bb3b2dbf8fc2b494a044" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gnome::Gda::SqlParser::SqlParser </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a8cf75992930e982c18573a5229a87ca7"></a><!-- doxytag: member="Gnome::Gda::SqlParser::create" ref="a8cf75992930e982c18573a5229a87ca7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1SqlParser.html">SqlParser</a>&gt; Gnome::Gda::SqlParser::create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af25f6f171a0e49b7a699fec818fff0eb"></a><!-- doxytag: member="Gnome::Gda::SqlParser::gobj" ref="af25f6f171a0e49b7a699fec818fff0eb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaSqlParser* Gnome::Gda::SqlParser::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><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" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="ac75589e6f67165c0eaad7b0320c862c7"></a><!-- doxytag: member="Gnome::Gda::SqlParser::gobj" ref="ac75589e6f67165c0eaad7b0320c862c7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdaSqlParser* Gnome::Gda::SqlParser::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> 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" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="a2361217e48cb1f4bd2e7eefde1e2540f"></a><!-- doxytag: member="Gnome::Gda::SqlParser::gobj_copy" ref="a2361217e48cb1f4bd2e7eefde1e2540f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaSqlParser* Gnome::Gda::SqlParser::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></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>
<a class="anchor" id="a77ce1356f13018c6c1762542612ad863"></a><!-- doxytag: member="Gnome::Gda::SqlParser::parse_file_as_batch" ref="a77ce1356f13018c6c1762542612ad863" args="(const std::string &amp;filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1Batch.html">Batch</a>&gt; Gnome::Gda::SqlParser::parse_file_as_batch </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse <em>filename's</em> contents and creates a <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> object which contains all the <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> objects created while parsing (one object per SQL statement). </p>
<p><em>filename's</em> contents are parsed and <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> objects are created as long as no error is found. If an error is found at some point, then the parsing stops, <em>error</em> may be set and <code>0</code> is returned</p>
<p>if <em>sql</em> is <code>0</code>, then the returned <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> object will contain no statement. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>Name of the file to parse. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> object, or <code>0</code> if an error occurred. </dd></dl>

</div>
</div>
<a class="anchor" id="a7bf6ab947171af3633f9057493282283"></a><!-- doxytag: member="Gnome::Gda::SqlParser::parse_string" ref="a7bf6ab947171af3633f9057493282283" args="(const Glib::ustring &amp;sql, Glib::ustring &amp;remain)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1Statement.html">Statement</a>&gt; Gnome::Gda::SqlParser::parse_string </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>sql</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>remain</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses <em>sql</em> and creates a <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> statement from the first SQL statement contained in <em>sql:</em> if <em>sql</em> contains more than one statement, then the remaining part of the string is not parsed at all, and <em>remain</em> (if not <code>0</code>) will point at the first non parsed character. </p>
<p>To include variables in the <em>sql</em> string, see the GdaSqlParser's object description. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sql</td><td>The SQL string to parse. </td></tr>
    <tr><td class="paramname">remain</td><td>Location to store a pointer to remaining part of <em>sql</em> in case <em>sql</em> has multiple statement, or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> object, or <code>0</code> if an error occurred. </dd></dl>

</div>
</div>
<a class="anchor" id="a5b2e0e43aaa1564761367b12dc5ea428"></a><!-- doxytag: member="Gnome::Gda::SqlParser::parse_string" ref="a5b2e0e43aaa1564761367b12dc5ea428" args="(const Glib::ustring &amp;sql)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1Statement.html">Statement</a>&gt; Gnome::Gda::SqlParser::parse_string </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>sql</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1e039c647fdebc48ca3f080839c79757"></a><!-- doxytag: member="Gnome::Gda::SqlParser::parse_string_as_batch" ref="a1e039c647fdebc48ca3f080839c79757" args="(const Glib::ustring &amp;sql)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1Batch.html">Batch</a>&gt; Gnome::Gda::SqlParser::parse_string_as_batch </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>sql</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a4c6d00c520b3e7db2202c6cedee70732"></a><!-- doxytag: member="Gnome::Gda::SqlParser::parse_string_as_batch" ref="a4c6d00c520b3e7db2202c6cedee70732" args="(const Glib::ustring &amp;sql, Glib::ustring &amp;remain)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1Batch.html">Batch</a>&gt; Gnome::Gda::SqlParser::parse_string_as_batch </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>sql</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>remain</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse <em>sql</em> and creates a <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> object which contains all the <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> objects created while parsing (one object per SQL statement). </p>
<p>Empty statements (composed of spaces only) do not appear in the resulting object.</p>
<p><em>sql</em> is parsed and <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> objects are created as long as no error is found in <em>sql</em>. If an error is found at some point, then the parsing stops and <em>remain</em> may contain a non <code>0</code> pointer, <em>error</em> may be set, and <code>0</code> is returned.</p>
<p>if <em>sql</em> is <code>0</code>, then the returned <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> object will contain no statement.</p>
<p>To include variables in the <em>sql</em> string, see the GdaSqlParser's object description. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sql</td><td>The SQL string to parse. </td></tr>
    <tr><td class="paramname">remain</td><td>Location to store a pointer to remaining part of <em>sql</em> in case an error occurred while parsing <em>sql</em>, or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="classGnome_1_1Gda_1_1Batch.html" title="Multiple SQL statements grouped together.">Gda::Batch</a> object, or <code>0</code> if an error occurred. </dd></dl>

</div>
</div>
<a class="anchor" id="a4b444c89abca611871e7b2f69180f95c"></a><!-- doxytag: member="Gnome::Gda::SqlParser::property_column_error" ref="a4b444c89abca611871e7b2f69180f95c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;int&gt; Gnome::Gda::SqlParser::property_column_error </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="abaa2e9abd7bb376cad3d7b764561e5f8"></a><!-- doxytag: member="Gnome::Gda::SqlParser::property_line_error" ref="abaa2e9abd7bb376cad3d7b764561e5f8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;int&gt; Gnome::Gda::SqlParser::property_line_error </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a408b37ec8905b302af01b5f5cabacf65"></a><!-- doxytag: member="Gnome::Gda::SqlParser::property_mode" ref="a408b37ec8905b302af01b5f5cabacf65" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt;int&gt; Gnome::Gda::SqlParser::property_mode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="adbe30840427ea8a4b6c3c74ffa8b860a"></a><!-- doxytag: member="Gnome::Gda::SqlParser::property_mode" ref="adbe30840427ea8a4b6c3c74ffa8b860a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;int&gt; Gnome::Gda::SqlParser::property_mode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="acf3aa70c619396c2d7ff1fb1c9f52319"></a><!-- doxytag: member="Gnome::Gda::SqlParser::property_tokenizer_flavour" ref="acf3aa70c619396c2d7ff1fb1c9f52319" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt;int&gt; Gnome::Gda::SqlParser::property_tokenizer_flavour </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="af136acfc012d173361502518cb1e03c3"></a><!-- doxytag: member="Gnome::Gda::SqlParser::property_tokenizer_flavour" ref="af136acfc012d173361502518cb1e03c3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;int&gt; Gnome::Gda::SqlParser::property_tokenizer_flavour </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a8d5a3c0d376b2111618f83a4708c6d59"></a><!-- doxytag: member="Gnome::Gda::SqlParser::wrap" ref="a8d5a3c0d376b2111618f83a4708c6d59" args="(GdaSqlParser *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1SqlParser.html">Gnome::Gda::SqlParser</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdaSqlParser *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>take_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
    <tr><td class="paramname">take_copy</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>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>libgdamm/sqlparser.h</li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Sep 22 2011 11:20:03 for libgdamm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>