1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>psycopg2.psycopg1</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css" />
8
<script type="text/javascript">
10
function setFrame(url1, url2){
11
parent.frames[1].location.href = url1;
12
parent.frames[2].location.href = url2;
17
<body bgcolor="white" text="black" link="blue" vlink="#204080"
20
<!-- =========== START OF NAVBAR =========== -->
21
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
23
<th class="navbar"> <a class="navbar" href="psycopg2-module.html">Home</a> </th>
24
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
25
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
26
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
27
<th class="navbar" width="100%"></th>
30
<table width="100%" cellpadding="0" cellspacing="0">
33
<span class="breadcrumbs">
34
<a href="psycopg2-module.html">Package psycopg2</a> ::
38
<td><table cellpadding="0" cellspacing="0">
39
<tr><td align="right"><span class="options">[<a href="../private/psycopg2.psycopg1-module.html">show private</a> | hide private]</span></td></tr>
40
<tr><td align="right"><span class="options">[<a href="frames.html" target="_top">frames</a> | <a href="psycopg2.psycopg1-module.html" target="_top">no frames</a>]</span></td></tr>
44
<!-- =========== START OF MODULE DESCRIPTION =========== -->
45
<h2 class="module">Module psycopg2.psycopg1</h2>
47
<p>psycopg 1.1.x compatibility module</p>
48
<p>This module uses the new style connection and cursor types to build a psycopg
49
1.1.1.x compatibility layer. It should be considered a temporary hack to run
50
old code while porting to psycopg 2. Import it as follows:</p>
51
<pre class="literal-block">
52
from psycopg2 import psycopg1 as psycopg
56
<!-- =========== START OF CLASSES =========== -->
57
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
58
<tr bgcolor="#70b0f0" class="summary">
59
<th colspan="2">Classes</th></tr>
61
<strong><a href="psycopg2.psycopg1.connection-class.html"><code>connection</code></a></strong></td>
62
<td>psycopg 1.1.x connection.</td></tr>
64
<strong><a href="psycopg2.psycopg1.cursor-class.html"><code>cursor</code></a></strong></td>
65
<td>psycopg 1.1.x cursor.</td></tr>
69
<!-- =========== START OF FUNCTION SUMMARY =========== -->
70
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
71
<tr bgcolor="#70b0f0" class="summary">
72
<th colspan="2">Function Summary</th></tr>
73
<tr><td align="right" valign="top" width="15%" class="rtype">new psycopg 1.1.x compatible connection object</td>
74
<td><code><a name="connect"></a><span class="summary-sig"><span class="summary-sig-name">connect</span>(<span class="summary-sig-arg">dsn</span>,
75
<span class="summary-sig-vararg">...</span>)</span></code>
80
<!-- =========== START OF FUNCTION DETAILS =========== -->
81
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
82
<tr bgcolor="#70b0f0" class="details">
83
<th colspan="2">Function Details</th></tr>
86
<a name="connect"></a>
87
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
88
<h3><span class="sig"><span class="sig-name">connect</span>(<span class="sig-arg">dsn</span>,
89
<span class="sig-vararg">...</span>)</span>
94
new psycopg 1.1.x compatible connection object </dd>
101
<!-- =========== START OF NAVBAR =========== -->
102
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
104
<th class="navbar"> <a class="navbar" href="psycopg2-module.html">Home</a> </th>
105
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
106
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
107
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
108
<th class="navbar" width="100%"></th>
112
<table border="0" cellpadding="0" cellspacing="0" width="100%">
114
<td align="left" class="footer">Generated by Epydoc 2.1 on Sat Jan 14 01:42:36 2006</td>
115
<td align="right" class="footer">
116
<a href="http://epydoc.sourceforge.net">http://epydoc.sf.net</a>