mirror of
https://github.com/python/cpython.git
synced 2025-11-08 05:39:34 +00:00
#8811: small fixes to sqlite3 docs.
This commit is contained in:
parent
8e9eb95c40
commit
96115fb2d3
1 changed files with 14 additions and 16 deletions
|
|
@ -261,23 +261,22 @@ Connection Objects
|
||||||
.. method:: Connection.execute(sql, [parameters])
|
.. method:: Connection.execute(sql, [parameters])
|
||||||
|
|
||||||
This is a nonstandard shortcut that creates an intermediate cursor object by
|
This is a nonstandard shortcut that creates an intermediate cursor object by
|
||||||
calling the cursor method, then calls the cursor's
|
calling the cursor method, then calls the cursor's :meth:`execute
|
||||||
:meth:`execute<Cursor.execute>` method with the parameters given.
|
<Cursor.execute>` method with the parameters given.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Connection.executemany(sql, [parameters])
|
.. method:: Connection.executemany(sql, [parameters])
|
||||||
|
|
||||||
This is a nonstandard shortcut that creates an intermediate cursor object by
|
This is a nonstandard shortcut that creates an intermediate cursor object by
|
||||||
calling the cursor method, then calls the cursor's
|
calling the cursor method, then calls the cursor's :meth:`executemany
|
||||||
:meth:`executemany<Cursor.executemany>` method with the parameters given.
|
<Cursor.executemany>` method with the parameters given.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Connection.executescript(sql_script)
|
.. method:: Connection.executescript(sql_script)
|
||||||
|
|
||||||
This is a nonstandard shortcut that creates an intermediate cursor object by
|
This is a nonstandard shortcut that creates an intermediate cursor object by
|
||||||
calling the cursor method, then calls the cursor's
|
calling the cursor method, then calls the cursor's :meth:`executescript
|
||||||
:meth:`executescript<Cursor.executescript>` method with the parameters
|
<Cursor.executescript>` method with the parameters given.
|
||||||
given.
|
|
||||||
|
|
||||||
|
|
||||||
.. method:: Connection.create_function(name, num_params, func)
|
.. method:: Connection.create_function(name, num_params, func)
|
||||||
|
|
@ -381,17 +380,17 @@ Connection Objects
|
||||||
|
|
||||||
.. literalinclude:: ../includes/sqlite3/load_extension.py
|
.. literalinclude:: ../includes/sqlite3/load_extension.py
|
||||||
|
|
||||||
Loadable extensions are disabled by default. See [#f1]_
|
Loadable extensions are disabled by default. See [#f1]_.
|
||||||
|
|
||||||
.. method:: Connection.load_extension(path)
|
.. method:: Connection.load_extension(path)
|
||||||
|
|
||||||
This routine loads a SQLite extension from a shared library. You have to
|
This routine loads a SQLite extension from a shared library. You have to
|
||||||
enable extension loading with ``enable_load_extension`` before you can use
|
enable extension loading with :meth:`enable_load_extension` before you can
|
||||||
this routine.
|
use this routine.
|
||||||
|
|
||||||
.. versionadded:: 3.2
|
.. versionadded:: 3.2
|
||||||
|
|
||||||
Loadable extensions are disabled by default. See [#f1]_
|
Loadable extensions are disabled by default. See [#f1]_.
|
||||||
|
|
||||||
.. attribute:: Connection.row_factory
|
.. attribute:: Connection.row_factory
|
||||||
|
|
||||||
|
|
@ -462,9 +461,9 @@ Connection Objects
|
||||||
Cursor Objects
|
Cursor Objects
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
A :class:`Cursor` instance has the following attributes and methods:
|
.. class:: Cursor
|
||||||
|
|
||||||
A SQLite database cursor has the following attributes and methods:
|
A :class:`Cursor` instance has the following attributes and methods.
|
||||||
|
|
||||||
.. method:: Cursor.execute(sql, [parameters])
|
.. method:: Cursor.execute(sql, [parameters])
|
||||||
|
|
||||||
|
|
@ -890,4 +889,3 @@ only makes sense to call from a different thread.
|
||||||
default, because some platforms (notably Mac OS X) have SQLite libraries which
|
default, because some platforms (notably Mac OS X) have SQLite libraries which
|
||||||
are compiled without this feature. To get loadable extension support, you must
|
are compiled without this feature. To get loadable extension support, you must
|
||||||
modify setup.py and and remove the line that sets SQLITE_OMIT_LOAD_EXTENSION.
|
modify setup.py and and remove the line that sets SQLITE_OMIT_LOAD_EXTENSION.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue