Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e073c2ef
Commit
e073c2ef
authored
May 01, 2006
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- minor clarification in section title
- markup adjustments (there is clearly much to be done in this section)
parent
0f943acc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
Doc/lib/libsqlite3.tex
Doc/lib/libsqlite3.tex
+9
-15
No files found.
Doc/lib/libsqlite3.tex
View file @
e073c2ef
...
...
@@ -2,7 +2,7 @@
DB-API 2.0 interface for SQLite databases
}
\declaremodule
{
builtin
}{
sqlite3
}
\modulesynopsis
{
A DB-API 2.0 i
nterface based on
SQLite 3.x.
}
\modulesynopsis
{
A DB-API 2.0 i
mplementation using
SQLite 3.x.
}
...
...
@@ -20,7 +20,6 @@ registered for that type there. Converter names are case-sensitive!
\begin{datadesc}
{
PARSE
_
COLNAMES
}
Setting this makes pysqlite parse the column name for each column it returns.
It will look for a string formed [mytype] in there, and then decide that
'mytype' is the type of the column. It will try to find an entry of 'mytype' in
...
...
@@ -67,7 +66,6 @@ The currently implemented default is to cache 100 statements.
\end{funcdesc}
\begin{funcdesc}
{
register
_
converter
}{
typename, callable
}
Registers a callable to convert a bytestring from the database into a custom
Python type. The callable will be invoked for all database values that are of
the type
\var
{
typename
}
. Confer the parameter **detect
_
types** of the
...
...
@@ -83,23 +81,19 @@ int, long, float, str (UTF-8 encoded), unicode or buffer.
\end{funcdesc}
\subsection
{
Connection Objects
\label
{
Connection-Objects
}}
\subsection
{
Connection Objects
\label
{
sqlite3-Connection-Objects
}}
A
\class
{
Connection
}
instance has the following attributes and methods:
\
member
{
isolation
_
level
}
\
begin{memberdesc}
{
isolation
_
level
}
Get or set the current isolation level. None for autocommit mode or one
of "DEFERRED", "IMMEDIATE" or "EXLUSIVE". See `5. Controlling
Transactions`
_
for a more detailed explanation.
\end{memberdesc}
\begin{methoddesc}
{
cursor
}{
\optional
{
cursorClass
}}
The cursor method accepts a single optional parameter
\var
{
cursorClass
}
.
This is a custom cursor class which must extend sqlite3.Cursor
.
This is a custom cursor class which must extend
\class
{
sqlite3.Cursor
}
.
\end{methoddesc}
TODO: execute*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment