File: sql__buffer_8h_source.html

package info (click to toggle)
mysql%2B%2B 3.2.5-2.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 18,360 kB
  • sloc: cpp: 35,788; sh: 3,693; perl: 789; makefile: 730
file content (99 lines) | stat: -rwxr-xr-x 31,348 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!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>
  <title>MySQL++ Reference Manual</title>
  <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  <meta name="generator" content="Doxygen 1.8.15"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>MySQL++: sql_buffer.h Source File</title>
  <link href="tabs.css" rel="stylesheet" type="text/css"/>
  <link href="doxygen.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="jquery.js"></script>
  <script type="text/javascript" src="dynsections.js"></script>
  <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
  <link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
    <div id="titlearea">
    <table cellspacing="0" cellpadding="0">
     <tbody>
     <tr style="height: 56px;">
      <td id="projectalign" style="padding-left: 0.5em;">
       <div id="projectname">MySQL++
       &#160;<span id="projectnumber">3.2.5</span>
       </div>
      </td>
     </tr>
     </tbody>
    </table>
    </div>
    <!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">sql_buffer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="sql__buffer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">/***********************************************************************</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> Copyright (c) 2007-2008 by Educational Technology Resources, Inc. and</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> (c) 2007 by Jonathan Wakely.  Others may also hold copyrights on</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> code in this file.  See the CREDITS.txt file in the top directory</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> of the distribution for details.</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> This file is part of MySQL++.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> MySQL++ is free software; you can redistribute it and/or modify it</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> under the terms of the GNU Lesser General Public License as published</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> by the Free Software Foundation; either version 2.1 of the License, or</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> (at your option) any later version.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> MySQL++ is distributed in the hope that it will be useful, but WITHOUT</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> License for more details.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> You should have received a copy of the GNU Lesser General Public</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> License along with MySQL++; if not, write to the Free Software</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> USA</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">***********************************************************************/</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#if !defined(MYSQLPP_SQL_BUFFER_H)</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#define MYSQLPP_SQL_BUFFER_H</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="refcounted_8h.html">refcounted.h</a>&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="type__info_8h.html">type_info.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span>mysqlpp {</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html">   41</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmysqlpp_1_1SQLBuffer.html">SQLBuffer</a></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">   45</a></span>&#160;        <span class="keyword">typedef</span> <span class="keywordtype">size_t</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">size_type</a>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#a4e86b8febc1ab8c889fbd42c3c3dfc49">   54</a></span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a4e86b8febc1ab8c889fbd42c3c3dfc49">SQLBuffer</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classmysqlpp_1_1SQLBuffer.html#abae32d826be7605448f5480d06974a75">data</a>, <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">size_type</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a559e04e15eb087d2519dc3316584bae7">length</a>, <a class="code" href="classmysqlpp_1_1mysql__type__info.html">mysql_type_info</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">type</a>,</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                        <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">is_null</a>) : data_(), length_(), type_(<a class="code" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">type</a>),</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                        is_null_(<a class="code" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">is_null</a>)</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                        { replace_buffer(<a class="code" href="classmysqlpp_1_1SQLBuffer.html#abae32d826be7605448f5480d06974a75">data</a>, <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a559e04e15eb087d2519dc3316584bae7">length</a>); }</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#affbff8bda67d898d47a4df8498fe61b9">   60</a></span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html#affbff8bda67d898d47a4df8498fe61b9">SQLBuffer</a>(<span class="keyword">const</span> std::string&amp; s, <a class="code" href="classmysqlpp_1_1mysql__type__info.html">mysql_type_info</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">type</a>, <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">is_null</a>) :</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                        data_(), length_(), type_(<a class="code" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">type</a>), is_null_(<a class="code" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">is_null</a>)</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        {</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                replace_buffer(s.data(), static_cast&lt;size_type&gt;(s.length()));</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        }</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#a41e777868636c20ad09093e1ddb9368a">   67</a></span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a41e777868636c20ad09093e1ddb9368a">~SQLBuffer</a>() { <span class="keyword">delete</span>[] data_; }</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html">SQLBuffer</a>&amp; <a class="code" href="classmysqlpp_1_1SQLBuffer.html#abd3057457a375547d7e82fe4fbacbc45">assign</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classmysqlpp_1_1SQLBuffer.html#abae32d826be7605448f5480d06974a75">data</a>, <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">size_type</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a559e04e15eb087d2519dc3316584bae7">length</a>,</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                        <a class="code" href="classmysqlpp_1_1mysql__type__info.html">mysql_type_info</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">type</a> = <a class="code" href="classmysqlpp_1_1mysql__type__info.html#a18d778e786cf06f63a7222129feed227">mysql_type_info::string_type</a>,</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                        <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">is_null</a> = <span class="keyword">false</span>);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html">SQLBuffer</a>&amp; <a class="code" href="classmysqlpp_1_1SQLBuffer.html#abd3057457a375547d7e82fe4fbacbc45">assign</a>(<span class="keyword">const</span> std::string&amp; s,</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                        <a class="code" href="classmysqlpp_1_1mysql__type__info.html">mysql_type_info</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">type</a> = <a class="code" href="classmysqlpp_1_1mysql__type__info.html#a18d778e786cf06f63a7222129feed227">mysql_type_info::string_type</a>,</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                        <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">is_null</a> = <span class="keyword">false</span>);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#abae32d826be7605448f5480d06974a75">   80</a></span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classmysqlpp_1_1SQLBuffer.html#abae32d826be7605448f5480d06974a75">data</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_; }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#ab46d62b3b2d94d201eedd40a615adfca">   84</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#ab46d62b3b2d94d201eedd40a615adfca">escape_q</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> type_.<a class="code" href="classmysqlpp_1_1mysql__type__info.html#a0830b5d94fa4951885679499f3a1da4e">escape_q</a>(); }</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#a559e04e15eb087d2519dc3316584bae7">   92</a></span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">size_type</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a559e04e15eb087d2519dc3316584bae7">length</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> length_; }</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#ab077d486f1a873ca0bc2c0e0596e8ca7">   95</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#ab077d486f1a873ca0bc2c0e0596e8ca7">is_string</a>() { <span class="keywordflow">return</span> type_ == <a class="code" href="classmysqlpp_1_1mysql__type__info.html#a18d778e786cf06f63a7222129feed227">mysql_type_info::string_type</a>; }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">  103</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">is_null</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> is_null_; }</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a8fffb0c9ac385d3c54076aa3046a876f">quote_q</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#a1d7f060aea9c7ccd27c6d7a98c29417b">  110</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a1d7f060aea9c7ccd27c6d7a98c29417b">set_null</a>() { is_null_ = <span class="keyword">true</span>; }</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">  113</a></span>&#160;        <span class="keyword">const</span> <a class="code" href="classmysqlpp_1_1mysql__type__info.html">mysql_type_info</a>&amp; <a class="code" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> type_; }</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a4e86b8febc1ab8c889fbd42c3c3dfc49">SQLBuffer</a>(<span class="keyword">const</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html">SQLBuffer</a>&amp;);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html">SQLBuffer</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html">SQLBuffer</a>&amp;);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keywordtype">void</span> init(<span class="keyword">const</span> <span class="keywordtype">char</span>* pd, <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">size_type</a> len, <a class="code" href="classmysqlpp_1_1mysql__type__info.html">mysql_type_info</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">type</a>,</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                        <span class="keywordtype">bool</span> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">is_null</a>);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordtype">void</span> replace_buffer(<span class="keyword">const</span> <span class="keywordtype">char</span>* pd, <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">size_type</a> <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a559e04e15eb087d2519dc3316584bae7">length</a>);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* data_;              </div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <a class="code" href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">size_type</a> length_;              </div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <a class="code" href="classmysqlpp_1_1mysql__type__info.html">mysql_type_info</a> type_;  </div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="keywordtype">bool</span> is_null_;                  </div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;};</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="sql__buffer_8h.html#ad2f8b25a76e80dbdd6b76a2e4d068bbe">  136</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classmysqlpp_1_1RefCountedPointer.html">RefCountedPointer&lt;SQLBuffer&gt;</a> <a class="code" href="classmysqlpp_1_1RefCountedPointer.html">RefCountedBuffer</a>;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;} <span class="comment">// end namespace mysqlpp</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="preprocessor">#endif // !defined(MYSQLPP_SQL_BUFFER_H)</span></div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_ab077d486f1a873ca0bc2c0e0596e8ca7"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#ab077d486f1a873ca0bc2c0e0596e8ca7">mysqlpp::SQLBuffer::is_string</a></div><div class="ttdeci">bool is_string()</div><div class="ttdoc">Returns true if type of buffer's contents is string.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:95</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_a6ec652ab02b2c2499ac66a71da0e19da"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#a6ec652ab02b2c2499ac66a71da0e19da">mysqlpp::SQLBuffer::is_null</a></div><div class="ttdeci">bool is_null() const</div><div class="ttdoc">Return true if buffer's contents represent a SQL null.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:103</div></div>
<div class="ttc" id="refcounted_8h_html"><div class="ttname"><a href="refcounted_8h.html">refcounted.h</a></div><div class="ttdoc">Declares the RefCountedPointer template.</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html">mysqlpp::SQLBuffer</a></div><div class="ttdoc">Holds SQL data in string form plus type information for use in converting the string to compatible C+...</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:41</div></div>
<div class="ttc" id="classmysqlpp_1_1mysql__type__info_html"><div class="ttname"><a href="classmysqlpp_1_1mysql__type__info.html">mysqlpp::mysql_type_info</a></div><div class="ttdoc">SQL field type information.</div><div class="ttdef"><b>Definition:</b> type_info.h:148</div></div>
<div class="ttc" id="classmysqlpp_1_1mysql__type__info_html_a18d778e786cf06f63a7222129feed227"><div class="ttname"><a href="classmysqlpp_1_1mysql__type__info.html#a18d778e786cf06f63a7222129feed227">mysqlpp::mysql_type_info::string_type</a></div><div class="ttdeci">static const enum_field_types string_type</div><div class="ttdoc">The internal constant we use for our string type.</div><div class="ttdef"><b>Definition:</b> type_info.h:270</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_abd3057457a375547d7e82fe4fbacbc45"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#abd3057457a375547d7e82fe4fbacbc45">mysqlpp::SQLBuffer::assign</a></div><div class="ttdeci">SQLBuffer &amp; assign(const char *data, size_type length, mysql_type_info type=mysql_type_info::string_type, bool is_null=false)</div><div class="ttdoc">Replace contents of buffer with copy of given C string.</div><div class="ttdef"><b>Definition:</b> sql_buffer.cpp:37</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_affbff8bda67d898d47a4df8498fe61b9"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#affbff8bda67d898d47a4df8498fe61b9">mysqlpp::SQLBuffer::SQLBuffer</a></div><div class="ttdeci">SQLBuffer(const std::string &amp;s, mysql_type_info type, bool is_null)</div><div class="ttdoc">Initialize object as a copy of a C++ string object.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:60</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_abae32d826be7605448f5480d06974a75"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#abae32d826be7605448f5480d06974a75">mysqlpp::SQLBuffer::data</a></div><div class="ttdeci">const char * data() const</div><div class="ttdoc">Return pointer to raw data buffer.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:80</div></div>
<div class="ttc" id="type__info_8h_html"><div class="ttname"><a href="type__info_8h.html">type_info.h</a></div><div class="ttdoc">Declares classes that provide an interface between the SQL and C++ type systems.</div></div>
<div class="ttc" id="classmysqlpp_1_1mysql__type__info_html_a0830b5d94fa4951885679499f3a1da4e"><div class="ttname"><a href="classmysqlpp_1_1mysql__type__info.html#a0830b5d94fa4951885679499f3a1da4e">mysqlpp::mysql_type_info::escape_q</a></div><div class="ttdeci">bool escape_q() const</div><div class="ttdoc">Returns true if the SQL type is of a type that needs to be escaped.</div><div class="ttdef"><b>Definition:</b> type_info.cpp:283</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_a5e789c1879057f4106ee1de6614380a5"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#a5e789c1879057f4106ee1de6614380a5">mysqlpp::SQLBuffer::size_type</a></div><div class="ttdeci">size_t size_type</div><div class="ttdoc">Type of length values.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:45</div></div>
<div class="ttc" id="classmysqlpp_1_1RefCountedPointer_html"><div class="ttname"><a href="classmysqlpp_1_1RefCountedPointer.html">mysqlpp::RefCountedPointer&lt; SQLBuffer &gt;</a></div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_afe48e952d2b7d1cc70984cefe0ea21b7"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#afe48e952d2b7d1cc70984cefe0ea21b7">mysqlpp::SQLBuffer::type</a></div><div class="ttdeci">const mysql_type_info &amp; type() const</div><div class="ttdoc">Return the SQL type of the data held in the buffer.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:113</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_a41e777868636c20ad09093e1ddb9368a"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#a41e777868636c20ad09093e1ddb9368a">mysqlpp::SQLBuffer::~SQLBuffer</a></div><div class="ttdeci">~SQLBuffer()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:67</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_a8fffb0c9ac385d3c54076aa3046a876f"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#a8fffb0c9ac385d3c54076aa3046a876f">mysqlpp::SQLBuffer::quote_q</a></div><div class="ttdeci">bool quote_q() const</div><div class="ttdoc">Returns true if we were initialized with a data type that must be quoted when used in a SQL query.</div><div class="ttdef"><b>Definition:</b> sql_buffer.cpp:56</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_a4e86b8febc1ab8c889fbd42c3c3dfc49"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#a4e86b8febc1ab8c889fbd42c3c3dfc49">mysqlpp::SQLBuffer::SQLBuffer</a></div><div class="ttdeci">SQLBuffer(const char *data, size_type length, mysql_type_info type, bool is_null)</div><div class="ttdoc">Initialize object as a copy of a raw data buffer.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:54</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_a559e04e15eb087d2519dc3316584bae7"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#a559e04e15eb087d2519dc3316584bae7">mysqlpp::SQLBuffer::length</a></div><div class="ttdeci">size_type length() const</div><div class="ttdoc">Return number of bytes in data buffer.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:92</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_ab46d62b3b2d94d201eedd40a615adfca"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#ab46d62b3b2d94d201eedd40a615adfca">mysqlpp::SQLBuffer::escape_q</a></div><div class="ttdeci">bool escape_q() const</div><div class="ttdoc">Returns true if we were initialized with a data type that must be escaped when used in a SQL query.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:84</div></div>
<div class="ttc" id="classmysqlpp_1_1SQLBuffer_html_a1d7f060aea9c7ccd27c6d7a98c29417b"><div class="ttname"><a href="classmysqlpp_1_1SQLBuffer.html#a1d7f060aea9c7ccd27c6d7a98c29417b">mysqlpp::SQLBuffer::set_null</a></div><div class="ttdeci">void set_null()</div><div class="ttdoc">Sets the internal SQL null flag.</div><div class="ttdef"><b>Definition:</b> sql_buffer.h:110</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Jul 21 2019 05:32:21 for MySQL++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>