📄 classdbcomponent.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>FastDB: dbComponent class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.5 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a></div><h1>dbComponent Class Reference</h1><code>#include <<a class="el" href="query_8h-source.html">query.h</a>></code><p><a href="classdbComponent-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><a class="anchor" name="dbComponenta0" doxytag="dbComponent::dbComponent" ></a> </td><td class="memItemRight" valign=bottom><b>dbComponent</b> (char const *s, char const *f=NULL)</td></tr><tr><td colspan=2><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="dbComponento0" doxytag="dbComponent::structure" ></a>char const * </td><td class="memItemRight" valign=bottom><b>structure</b></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="dbComponento1" doxytag="dbComponent::field" ></a>char const * </td><td class="memItemRight" valign=bottom><b>field</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class represents component of the structure. It is mostly needed for implementation of application specific database types. For example, look at <code>dbDate</code> class. It contains <code>int4 jday</code> component which stores time in seconds sinse 1970. This class defines its own comparison methods: <pre><div> <a class="el" href="classdbQueryExpression.html">dbQueryExpression</a> operator == (char const* field) { <a class="el" href="classdbQueryExpression.html">dbQueryExpression</a> expr; expr = dbComponent(field,"jday"),"=",jday; return expr; } </pre></div> Making it possible to sepcify queries like this (assume that record has column "released" with type dbDate: <pre><div> <a class="el" href="classdbQuery.html">dbQuery</a> q; dbDate date; q = date == "released"; </pre></div> <p><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="query_8h-source.html">query.h</a></ul><hr size="1"><address style="align: right;"><small>Generated on Thu Feb 12 13:04:48 2004 for FastDB by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.5 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -