MobileBlur

psycopg2-pysrc.html at [50a1ba732d]
Login

psycopg2-pysrc.html at [50a1ba732d]

File applications/examples/static/epydoc/psycopg2-pysrc.html artifact d3e7cfc9c4 part of check-in 50a1ba732d


<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>psycopg2</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="web2py.gluon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://www.web2py.com">web2py Web Framework</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;psycopg2
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="psycopg2-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="psycopg2-module.html">Package psycopg2</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">"""A Python driver for PostgreSQL</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-docstring">psycopg is a PostgreSQL_ database adapter for the Python_ programming</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-docstring">language. This is version 2, a complete rewrite of the original code to</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-docstring">provide new-style classes for connection and cursor objects and other sweet</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-docstring">candies. Like the original, psycopg 2 was written with the aim of being very</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-docstring">small and fast, and stable as a rock.</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-docstring">Homepage: http://initd.org/projects/psycopg2</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-docstring">.. _PostgreSQL: http://www.postgresql.org/</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-docstring">.. _Python: http://www.python.org/</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-docstring">:Groups:</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-docstring">  * `Connections creation`: connect</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-docstring">  * `Value objects constructors`: Binary, Date, DateFromTicks, Time,</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-docstring">    TimeFromTicks, Timestamp, TimestampFromTicks</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-comment"># psycopg/__init__.py - initialization of the psycopg module</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Copyright (C) 2003-2004 Federico Di Gregorio  &lt;fog@debian.org&gt;</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># This program is free software; you can redistribute it and/or modify</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># it under the terms of the GNU General Public License as published by the</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Free Software Foundation; either version 2, or (at your option) any later</tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># version.</tt> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># This program is distributed in the hope that it will be useful, but</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># for more details.</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line"><tt class="py-comment"># Import modules needed by _psycopg to allow tools like py2exe to do</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># their work without bothering about the module dependencies.</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># </tt> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># TODO: we should probably use the Warnings framework to signal a missing</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># module instead of raising an exception (in case we're running a thin</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># embedded Python or something even more devious.)</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt><tt class="py-op">,</tt> <tt class="py-name">warnings</tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Variable sqlite3.dbapi2.version_info=sqlite3.dbapi2-module.html#version_info,Variable web2py.gluon.contrib.pymysql.version_info=web2py.gluon.contrib.pymysql-module.html#version_info,Variable web2py.gluon.main.version_info=web2py.gluon.main-module.html#version_info"><a title="sqlite3.dbapi2.version_info
web2py.gluon.contrib.pymysql.version_info
web2py.gluon.main.version_info" class="py-name" href="#" onclick="return doclink('link-0', 'version_info', 'link-0');">version_info</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">2</tt> <tt class="py-keyword">and</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt id="link-1" class="py-name"><a title="sqlite3.dbapi2.version_info
web2py.gluon.contrib.pymysql.version_info
web2py.gluon.main.version_info" class="py-name" href="#" onclick="return doclink('link-1', 'version_info', 'link-0');">version_info</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">3</tt><tt class="py-op">:</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Class datetime.datetime=datetime.datetime-class.html"><a title="datetime.datetime" class="py-name" href="#" onclick="return doclink('link-2', 'datetime', 'link-2');">datetime</a></tt> <tt class="py-keyword">as</tt> <tt class="py-name">_psycopg_needs_datetime</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">        <tt class="py-name">warnings</tt><tt class="py-op">.</tt><tt class="py-name">warn</tt><tt class="py-op">(</tt> </tt>
<a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">            <tt class="py-string">"can't import datetime module probably needed by _psycopg"</tt><tt class="py-op">,</tt> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">            <tt class="py-name">RuntimeWarning</tt><tt class="py-op">)</tt> </tt>
<a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="sqlite3.dbapi2.version_info
web2py.gluon.contrib.pymysql.version_info
web2py.gluon.main.version_info" class="py-name" href="#" onclick="return doclink('link-3', 'version_info', 'link-0');">version_info</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">2</tt> <tt class="py-keyword">and</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name"><a title="sqlite3.dbapi2.version_info
web2py.gluon.contrib.pymysql.version_info
web2py.gluon.main.version_info" class="py-name" href="#" onclick="return doclink('link-4', 'version_info', 'link-0');">version_info</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">4</tt><tt class="py-op">:</tt> </tt>
<a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">decimal</tt> <tt class="py-keyword">as</tt> <tt class="py-name">_psycopg_needs_decimal</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line">        <tt class="py-name">warnings</tt><tt class="py-op">.</tt><tt class="py-name">warn</tt><tt class="py-op">(</tt> </tt>
<a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line">            <tt class="py-string">"can't import decimal module probably needed by _psycopg"</tt><tt class="py-op">,</tt> </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">            <tt class="py-name">RuntimeWarning</tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-5" class="py-name" targets="Package psycopg2=psycopg2-module.html"><a title="psycopg2" class="py-name" href="#" onclick="return doclink('link-5', 'psycopg2', 'link-5');">psycopg2</a></tt> <tt class="py-keyword">import</tt> <tt id="link-6" class="py-name" targets="Module psycopg2.tz=psycopg2.tz-module.html"><a title="psycopg2.tz" class="py-name" href="#" onclick="return doclink('link-6', 'tz', 'link-6');">tz</a></tt> </tt>
<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line"><tt class="py-keyword">del</tt> <tt class="py-name">sys</tt><tt class="py-op">,</tt> <tt class="py-name">warnings</tt> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line"> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line"><tt class="py-comment"># Import the DBAPI-2.0 stuff into top-level module.</tt> </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">_psycopg</tt> <tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Variable psycopg2.BINARY=psycopg2-module.html#BINARY,Variable web2py.gluon.contrib.pymysql.BINARY=web2py.gluon.contrib.pymysql-module.html#BINARY"><a title="psycopg2.BINARY
web2py.gluon.contrib.pymysql.BINARY" class="py-name" href="#" onclick="return doclink('link-7', 'BINARY', 'link-7');">BINARY</a></tt><tt class="py-op">,</tt> <tt id="link-8" class="py-name" targets="Variable psycopg2.NUMBER=psycopg2-module.html#NUMBER,Variable web2py.gluon.contrib.pymysql.NUMBER=web2py.gluon.contrib.pymysql-module.html#NUMBER"><a title="psycopg2.NUMBER
web2py.gluon.contrib.pymysql.NUMBER" class="py-name" href="#" onclick="return doclink('link-8', 'NUMBER', 'link-8');">NUMBER</a></tt><tt class="py-op">,</tt> <tt id="link-9" class="py-name" targets="Variable psycopg2.STRING=psycopg2-module.html#STRING,Variable web2py.gluon.contrib.pymysql.STRING=web2py.gluon.contrib.pymysql-module.html#STRING,Variable web2py.gluon.contrib.pymysql.constants.FIELD_TYPE.STRING=web2py.gluon.contrib.pymysql.constants.FIELD_TYPE-module.html#STRING"><a title="psycopg2.STRING
web2py.gluon.contrib.pymysql.STRING
web2py.gluon.contrib.pymysql.constants.FIELD_TYPE.STRING" class="py-name" href="#" onclick="return doclink('link-9', 'STRING', 'link-9');">STRING</a></tt><tt class="py-op">,</tt> <tt id="link-10" class="py-name" targets="Variable psycopg2.DATETIME=psycopg2-module.html#DATETIME,Variable web2py.gluon.contrib.pymysql.DATETIME=web2py.gluon.contrib.pymysql-module.html#DATETIME,Variable web2py.gluon.contrib.pymysql.constants.FIELD_TYPE.DATETIME=web2py.gluon.contrib.pymysql.constants.FIELD_TYPE-module.html#DATETIME"><a title="psycopg2.DATETIME
web2py.gluon.contrib.pymysql.DATETIME
web2py.gluon.contrib.pymysql.constants.FIELD_TYPE.DATETIME" class="py-name" href="#" onclick="return doclink('link-10', 'DATETIME', 'link-10');">DATETIME</a></tt><tt class="py-op">,</tt> <tt id="link-11" class="py-name" targets="Variable psycopg2.ROWID=psycopg2-module.html#ROWID,Variable web2py.gluon.contrib.pymysql.ROWID=web2py.gluon.contrib.pymysql-module.html#ROWID"><a title="psycopg2.ROWID
web2py.gluon.contrib.pymysql.ROWID" class="py-name" href="#" onclick="return doclink('link-11', 'ROWID', 'link-11');">ROWID</a></tt> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line"> </tt>
<a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">_psycopg</tt> <tt class="py-keyword">import</tt> <tt id="link-12" class="py-name" targets="Function web2py.gluon.contrib.pymysql.Binary()=web2py.gluon.contrib.pymysql-module.html#Binary"><a title="web2py.gluon.contrib.pymysql.Binary" class="py-name" href="#" onclick="return doclink('link-12', 'Binary', 'link-12');">Binary</a></tt><tt class="py-op">,</tt> <tt class="py-name">Date</tt><tt class="py-op">,</tt> <tt class="py-name">Time</tt><tt class="py-op">,</tt> <tt class="py-name">Timestamp</tt> </tt>
<a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">_psycopg</tt> <tt class="py-keyword">import</tt> <tt class="py-name">DateFromTicks</tt><tt class="py-op">,</tt> <tt class="py-name">TimeFromTicks</tt><tt class="py-op">,</tt> <tt class="py-name">TimestampFromTicks</tt> </tt>
<a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line"> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">_psycopg</tt> <tt class="py-keyword">import</tt> <tt id="link-13" class="py-name" targets="Class psycopg2.Error=psycopg2.Error-class.html,Class web2py.gluon.contrib.pymysql.err.Error=web2py.gluon.contrib.pymysql.err.Error-class.html"><a title="psycopg2.Error
web2py.gluon.contrib.pymysql.err.Error" class="py-name" href="#" onclick="return doclink('link-13', 'Error', 'link-13');">Error</a></tt><tt class="py-op">,</tt> <tt id="link-14" class="py-name" targets="Class psycopg2.Warning=psycopg2.Warning-class.html,Class web2py.gluon.contrib.pymysql.err.Warning=web2py.gluon.contrib.pymysql.err.Warning-class.html"><a title="psycopg2.Warning
web2py.gluon.contrib.pymysql.err.Warning" class="py-name" href="#" onclick="return doclink('link-14', 'Warning', 'link-14');">Warning</a></tt><tt class="py-op">,</tt> <tt id="link-15" class="py-name" targets="Class psycopg2.DataError=psycopg2.DataError-class.html,Class web2py.gluon.contrib.pymysql.err.DataError=web2py.gluon.contrib.pymysql.err.DataError-class.html"><a title="psycopg2.DataError
web2py.gluon.contrib.pymysql.err.DataError" class="py-name" href="#" onclick="return doclink('link-15', 'DataError', 'link-15');">DataError</a></tt><tt class="py-op">,</tt> <tt id="link-16" class="py-name" targets="Class psycopg2.DatabaseError=psycopg2.DatabaseError-class.html,Class web2py.gluon.contrib.pymysql.err.DatabaseError=web2py.gluon.contrib.pymysql.err.DatabaseError-class.html"><a title="psycopg2.DatabaseError
web2py.gluon.contrib.pymysql.err.DatabaseError" class="py-name" href="#" onclick="return doclink('link-16', 'DatabaseError', 'link-16');">DatabaseError</a></tt><tt class="py-op">,</tt> <tt id="link-17" class="py-name" targets="Class psycopg2.ProgrammingError=psycopg2.ProgrammingError-class.html,Class web2py.gluon.contrib.pymysql.err.ProgrammingError=web2py.gluon.contrib.pymysql.err.ProgrammingError-class.html"><a title="psycopg2.ProgrammingError
web2py.gluon.contrib.pymysql.err.ProgrammingError" class="py-name" href="#" onclick="return doclink('link-17', 'ProgrammingError', 'link-17');">ProgrammingError</a></tt> </tt>
<a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">_psycopg</tt> <tt class="py-keyword">import</tt> <tt id="link-18" class="py-name" targets="Class psycopg2.IntegrityError=psycopg2.IntegrityError-class.html,Class web2py.gluon.contrib.pymysql.err.IntegrityError=web2py.gluon.contrib.pymysql.err.IntegrityError-class.html"><a title="psycopg2.IntegrityError
web2py.gluon.contrib.pymysql.err.IntegrityError" class="py-name" href="#" onclick="return doclink('link-18', 'IntegrityError', 'link-18');">IntegrityError</a></tt><tt class="py-op">,</tt> <tt id="link-19" class="py-name" targets="Class psycopg2.InterfaceError=psycopg2.InterfaceError-class.html,Class web2py.gluon.contrib.pymysql.err.InterfaceError=web2py.gluon.contrib.pymysql.err.InterfaceError-class.html"><a title="psycopg2.InterfaceError
web2py.gluon.contrib.pymysql.err.InterfaceError" class="py-name" href="#" onclick="return doclink('link-19', 'InterfaceError', 'link-19');">InterfaceError</a></tt><tt class="py-op">,</tt> <tt id="link-20" class="py-name" targets="Class psycopg2.InternalError=psycopg2.InternalError-class.html,Class web2py.gluon.contrib.pymysql.err.InternalError=web2py.gluon.contrib.pymysql.err.InternalError-class.html"><a title="psycopg2.InternalError
web2py.gluon.contrib.pymysql.err.InternalError" class="py-name" href="#" onclick="return doclink('link-20', 'InternalError', 'link-20');">InternalError</a></tt> </tt>
<a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">_psycopg</tt> <tt class="py-keyword">import</tt> <tt id="link-21" class="py-name" targets="Class psycopg2.NotSupportedError=psycopg2.NotSupportedError-class.html,Class web2py.gluon.contrib.pymysql.err.NotSupportedError=web2py.gluon.contrib.pymysql.err.NotSupportedError-class.html"><a title="psycopg2.NotSupportedError
web2py.gluon.contrib.pymysql.err.NotSupportedError" class="py-name" href="#" onclick="return doclink('link-21', 'NotSupportedError', 'link-21');">NotSupportedError</a></tt><tt class="py-op">,</tt> <tt id="link-22" class="py-name" targets="Class psycopg2.OperationalError=psycopg2.OperationalError-class.html,Class web2py.gluon.contrib.pymysql.err.OperationalError=web2py.gluon.contrib.pymysql.err.OperationalError-class.html"><a title="psycopg2.OperationalError
web2py.gluon.contrib.pymysql.err.OperationalError" class="py-name" href="#" onclick="return doclink('link-22', 'OperationalError', 'link-22');">OperationalError</a></tt> </tt>
<a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line"> </tt>
<a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">_psycopg</tt> <tt class="py-keyword">import</tt> <tt id="link-23" class="py-name" targets="Method web2py.gluon.globals.Session.connect()=web2py.gluon.globals.Session-class.html#connect"><a title="web2py.gluon.globals.Session.connect" class="py-name" href="#" onclick="return doclink('link-23', 'connect', 'link-23');">connect</a></tt><tt class="py-op">,</tt> <tt id="link-24" class="py-name" targets="Variable psycopg2.apilevel=psycopg2-module.html#apilevel,Variable sqlite3.dbapi2.apilevel=sqlite3.dbapi2-module.html#apilevel,Variable web2py.gluon.contrib.pymysql.apilevel=web2py.gluon.contrib.pymysql-module.html#apilevel"><a title="psycopg2.apilevel
sqlite3.dbapi2.apilevel
web2py.gluon.contrib.pymysql.apilevel" class="py-name" href="#" onclick="return doclink('link-24', 'apilevel', 'link-24');">apilevel</a></tt><tt class="py-op">,</tt> <tt id="link-25" class="py-name" targets="Variable psycopg2.threadsafety=psycopg2-module.html#threadsafety,Variable sqlite3.dbapi2.threadsafety=sqlite3.dbapi2-module.html#threadsafety,Variable web2py.gluon.contrib.pymysql.threadsafety=web2py.gluon.contrib.pymysql-module.html#threadsafety"><a title="psycopg2.threadsafety
sqlite3.dbapi2.threadsafety
web2py.gluon.contrib.pymysql.threadsafety" class="py-name" href="#" onclick="return doclink('link-25', 'threadsafety', 'link-25');">threadsafety</a></tt><tt class="py-op">,</tt> <tt id="link-26" class="py-name" targets="Variable psycopg2.paramstyle=psycopg2-module.html#paramstyle,Variable sqlite3.dbapi2.paramstyle=sqlite3.dbapi2-module.html#paramstyle,Variable web2py.gluon.contrib.pymysql.paramstyle=web2py.gluon.contrib.pymysql-module.html#paramstyle"><a title="psycopg2.paramstyle
sqlite3.dbapi2.paramstyle
web2py.gluon.contrib.pymysql.paramstyle" class="py-name" href="#" onclick="return doclink('link-26', 'paramstyle', 'link-26');">paramstyle</a></tt> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">_psycopg</tt> <tt class="py-keyword">import</tt> <tt class="py-name">__version__</tt> </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line"> </tt>
<a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line"><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt> <tt id="link-27" class="py-name" targets="Variable psycopg2.k=psycopg2-module.html#k"><a title="psycopg2.k" class="py-name" href="#" onclick="return doclink('link-27', 'k', 'link-27');">k</a></tt> <tt class="py-keyword">for</tt> <tt id="link-28" class="py-name"><a title="psycopg2.k" class="py-name" href="#" onclick="return doclink('link-28', 'k', 'link-27');">k</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">locals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name" targets="Method web2py.gluon.rocket.Headers.keys()=web2py.gluon.rocket.Headers-class.html#keys,Method web2py.gluon.tools.PluginManager.keys()=web2py.gluon.tools.PluginManager-class.html#keys"><a title="web2py.gluon.rocket.Headers.keys
web2py.gluon.tools.PluginManager.keys" class="py-name" href="#" onclick="return doclink('link-29', 'keys', 'link-29');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-30" class="py-name"><a title="psycopg2.k" class="py-name" href="#" onclick="return doclink('link-30', 'k', 'link-27');">k</a></tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Method web2py.gluon.dal.Expression.startswith()=web2py.gluon.dal.Expression-class.html#startswith,Method web2py.gluon.dal.SQLCustomType.startswith()=web2py.gluon.dal.SQLCustomType-class.html#startswith"><a title="web2py.gluon.dal.Expression.startswith
web2py.gluon.dal.SQLCustomType.startswith" class="py-name" href="#" onclick="return doclink('link-31', 'startswith', 'link-31');">startswith</a></tt><tt class="py-op">(</tt><tt class="py-string">'_'</tt><tt class="py-op">)</tt> <tt class="py-op">]</tt> </tt>
<a name="L73"></a><tt class="py-lineno">73</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="web2py.gluon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://www.web2py.com">web2py Web Framework</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0beta1 on Thu Aug  4 00:47:03 2011
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>