Mercurial > cpython-lru_cache-weakref
diff Doc/library/sqlite3.rst @ 59372:3003c1656e2a
Merged new pysqlite version 2.6.0 from trunk.
| author | Gerhard Häring <gh@ghaering.de> |
|---|---|
| date | Fri, 05 Mar 2010 15:20:03 +0000 |
| parents | 70f456bf7638 |
| children | 7ddcf7d2836a |
line wrap: on
line diff
--- a/Doc/library/sqlite3.rst Fri Mar 05 15:17:26 2010 +0000 +++ b/Doc/library/sqlite3.rst Fri Mar 05 15:20:03 2010 +0000 @@ -365,6 +365,25 @@ method with :const:`None` for *handler*. +.. method:: Connection.enable_load_extension(enabled) + + .. versionadded:: 2.7 + + This routine allows/disallows the SQLite engine to load SQLite extensions + from shared libraries. SQLite extensions can define new functions, + aggregates or whole new virtual table implementations. One well-known + extension is the fulltext-search extension distributed with SQLite. + + .. literalinclude:: ../includes/sqlite3/load_extension.py + +.. method:: Connection.load_extension(path) + + .. versionadded:: 2.7 + + This routine loads a SQLite extension from a shared library. You have to + enable extension loading with ``enable_load_extension`` before you can use + this routine. + .. attribute:: Connection.row_factory You can change this attribute to a callable that accepts the cursor and the @@ -434,7 +453,7 @@ Cursor Objects -------------- -.. class:: Cursor +A :class:`Cursor` instance has the following attributes and methods: A SQLite database cursor has the following attributes and methods:
