88 < head >
99 < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
1010
11- < title > Commands — py-postgresql 1.0.4dev documentation</ title >
11+ < title > Commands — py-postgresql 1.0.4 documentation</ title >
1212
1313 < link rel ="stylesheet " href ="_static/default.css " type ="text/css " />
1414 < link rel ="stylesheet " href ="_static/pygments.css " type ="text/css " />
1515
1616 < script type ="text/javascript ">
1717 var DOCUMENTATION_OPTIONS = {
1818 URL_ROOT : '' ,
19- VERSION : '1.0.4dev ' ,
19+ VERSION : '1.0.4 ' ,
2020 COLLAPSE_INDEX : false ,
2121 FILE_SUFFIX : '.html' ,
2222 HAS_SOURCE : true
2525 < script type ="text/javascript " src ="_static/jquery.js "> </ script >
2626 < script type ="text/javascript " src ="_static/underscore.js "> </ script >
2727 < script type ="text/javascript " src ="_static/doctools.js "> </ script >
28- < link rel ="top " title ="py-postgresql 1.0.4dev documentation " href ="index.html " />
28+ < link rel ="top " title ="py-postgresql 1.0.4 documentation " href ="index.html " />
2929 < link rel ="next " title ="Modules " href ="modules.html " />
3030 < link rel ="prev " title ="Gotchas " href ="gotchas.html " />
3131 </ head >
@@ -45,7 +45,7 @@ <h3>Navigation</h3>
4545 < li class ="right " >
4646 < a href ="gotchas.html " title ="Gotchas "
4747 accesskey ="P "> previous</ a > |</ li >
48- < li > < a href ="index.html "> py-postgresql 1.0.4dev documentation</ a > »</ li >
48+ < li > < a href ="index.html "> py-postgresql 1.0.4 documentation</ a > »</ li >
4949 </ ul >
5050 </ div >
5151
@@ -161,26 +161,26 @@ <h3>Interactive Console Backslash Commands<a class="headerlink" href="#interacti
161161 \? Show this help message.
162162 \E Edit a file or a temporary script.
163163 \e Edit and Execute the file directly in the context.
164- \i Execute a Python script within the interpreter' s context.
164+ \i Execute a Python script within the interpreter' s context.
165165 \set Configure environment variables. \set without arguments to show all
166166 \x Execute the Python command within this process.</ pre >
167167</ div >
168168</ div >
169169< div class ="section " id ="pg-python-examples ">
170170< h3 > pg_python Examples< a class ="headerlink " href ="#pg-python-examples " title ="Permalink to this headline "> ¶</ a > </ h3 >
171171< p > Module execution taking advantage of the new built-ins:</ p >
172- < div class ="highlight-python "> < pre > $ python3 -m postgresql.bin.pg_python -h localhost -W -m timeit " prepare(' SELECT 1' ).first()"
172+ < div class ="highlight-python "> < pre > $ python3 -m postgresql.bin.pg_python -h localhost -W -m timeit " prepare(' SELECT 1' ).first()"
173173Password for pg_python[pq://jwp@localhost:5432]:
1741741000 loops, best of 3: 1.35 msec per loop
175175
176- $ python3 -m postgresql.bin.pg_python -h localhost -W -m timeit -s " ps=prepare(' SELECT 1')" " ps.first()"
176+ $ python3 -m postgresql.bin.pg_python -h localhost -W -m timeit -s " ps=prepare(' SELECT 1')" " ps.first()"
177177Password for pg_python[pq://jwp@localhost:5432]:
1781781000 loops, best of 3: 442 usec per loop</ pre >
179179</ div >
180180< p > Simple interactive usage:</ p >
181181< div class ="highlight-python "> < pre > $ python3 -m postgresql.bin.pg_python -h localhost -W
182182Password for pg_python[pq://jwp@localhost:5432]:
183- >>> ps = prepare(' select 1' )
183+ >>> ps = prepare(' select 1' )
184184>>> ps.first()
1851851
186186>>> c = ps()
@@ -235,32 +235,32 @@ <h3>pg_dotconf Usage<a class="headerlink" href="#pg-dotconf-usage" title="Permal
235235< div class ="section " id ="examples ">
236236< h3 > Examples< a class ="headerlink " href ="#examples " title ="Permalink to this headline "> ¶</ a > </ h3 >
237237< p > Modifying a simple configuration file:</ p >
238- < div class ="highlight-python "> < pre > $ echo " setting = value" >pg.conf
238+ < div class ="highlight-python "> < pre > $ echo " setting = value" >pg.conf
239239
240- # change ' setting'
240+ # change ' setting'
241241$ python3 -m postgresql.bin.pg_dotconf pg.conf setting=newvalue
242242
243243$ cat pg.conf
244- setting = ' newvalue'
244+ setting = ' newvalue'
245245
246246# new settings are appended to the file
247247$ python3 -m postgresql.bin.pg_dotconf pg.conf another_setting=value
248248$ cat pg.conf
249- setting = ' newvalue'
250- another_setting = ' value'
249+ setting = ' newvalue'
250+ another_setting = ' value'
251251
252252# comment a setting
253253$ python3 -m postgresql.bin.pg_dotconf pg.conf another_setting
254254
255255$ cat pg.conf
256- setting = ' newvalue'
257- #another_setting = ' value' </ pre >
256+ setting = ' newvalue'
257+ #another_setting = ' value' </ pre >
258258</ div >
259259< p > When a setting is given on the command line, it must been seen as one argument
260260to the command, so it’s < em > very</ em > important to avoid invocations like:</ p >
261261< div class ="highlight-python "> < pre > $ python3 -m postgresql.bin.pg_dotconf pg.conf setting = value
262- ERROR: invalid setting, '=' after ' setting'
263- HINT: Settings must take the form ' setting=value' or ' setting_name_to_comment' . Settings must also be received as a single argument.</ pre >
262+ ERROR: invalid setting, '=' after ' setting'
263+ HINT: Settings must take the form ' setting=value' or ' setting_name_to_comment' . Settings must also be received as a single argument.</ pre >
264264</ div >
265265</ div >
266266</ div >
@@ -333,13 +333,13 @@ <h3>Navigation</h3>
333333 < li class ="right " >
334334 < a href ="gotchas.html " title ="Gotchas "
335335 > previous</ a > |</ li >
336- < li > < a href ="index.html "> py-postgresql 1.0.4dev documentation</ a > »</ li >
336+ < li > < a href ="index.html "> py-postgresql 1.0.4 documentation</ a > »</ li >
337337 </ ul >
338338 </ div >
339339 < div class ="footer ">
340340 © Copyright 2010, James William Pye <x@jwp.name>.
341- Last updated on Oct 15, 2011 .
342- Created using < a href ="http://sphinx.pocoo.org/ "> Sphinx</ a > 1.1pre .
341+ Last updated on Apr 30, 2012 .
342+ Created using < a href ="http://sphinx.pocoo.org/ "> Sphinx</ a > 1.1.3 .
343343 </ div >
344344 </ body >
345345</ html >
0 commit comments