~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/sqlite3.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
.. method:: Connection.execute(sql, [parameters])
259
259
 
260
260
   This is a nonstandard shortcut that creates an intermediate cursor object by
261
 
   calling the cursor method, then calls the cursor's :meth:`execute` method with
262
 
   the parameters given.
 
261
   calling the cursor method, then calls the cursor's
 
262
   :meth:`execute<Cursor.execute>` method with the parameters given.
263
263
 
264
264
 
265
265
.. method:: Connection.executemany(sql, [parameters])
266
266
 
267
267
   This is a nonstandard shortcut that creates an intermediate cursor object by
268
 
   calling the cursor method, then calls the cursor's :meth:`executemany` method
269
 
   with the parameters given.
 
268
   calling the cursor method, then calls the cursor's
 
269
   :meth:`executemany<Cursor.executemany>` method with the parameters given.
270
270
 
271
271
.. method:: Connection.executescript(sql_script)
272
272
 
273
273
   This is a nonstandard shortcut that creates an intermediate cursor object by
274
 
   calling the cursor method, then calls the cursor's :meth:`executescript` method
275
 
   with the parameters given.
 
274
   calling the cursor method, then calls the cursor's
 
275
   :meth:`executescript<Cursor.executescript>` method with the parameters
 
276
   given.
276
277
 
277
278
 
278
279
.. method:: Connection.create_function(name, num_params, func)
840
841
Accessing columns by name instead of by index
841
842
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
842
843
 
843
 
One useful feature of the :mod:`sqlite3` module is the builtin
 
844
One useful feature of the :mod:`sqlite3` module is the built-in
844
845
:class:`sqlite3.Row` class designed to be used as a row factory.
845
846
 
846
847
Rows wrapped with this class can be accessed both by index (like tuples) and