Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ed789f9c
Kaydet (Commit)
ed789f9c
authored
Agu 24, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #6057: Document exceptions in sqlite3 module
Patch by Jaysinh Shukla and Stéphane Wirtel.
üst
48de2829
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
sqlite3.rst
Doc/library/sqlite3.rst
+32
-2
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/sqlite3.rst
Dosyayı görüntüle @
ed789f9c
...
...
@@ -542,7 +542,7 @@ Cursor Objects
.. literalinclude:: ../includes/sqlite3/execute_1.py
:meth:`execute` will only execute a single SQL statement. If you try to execute
more than one statement with it, it will raise an
``sqlite3.Warning`
`. Use
more than one statement with it, it will raise an
:exc:`.Warning
`. Use
:meth:`executescript` if you want to execute multiple SQL statements with one
call.
...
...
@@ -605,7 +605,7 @@ Cursor Objects
Close the cursor now (rather than whenever ``__del__`` is called).
The cursor will be unusable from this point forward; a
``ProgrammingError`
`
The cursor will be unusable from this point forward; a
:exc:`ProgrammingError
`
exception will be raised if any operation is attempted with the cursor.
.. attribute:: rowcount
...
...
@@ -719,6 +719,36 @@ Now we plug :class:`Row` in::
35.14
.. _sqlite3-exceptions:
Exceptions
----------
.. exception:: Warning
A subclass of :exc:`Exception`.
.. exception:: Error
The base class of the other exceptions in this module. It is a subclass
of :exc:`Exception`.
.. exception:: DatabaseError
Exception raised for errors that are related to the database.
.. exception:: IntegrityError
Exception raised when the relational integrity of the database is affected,
e.g. a foreign key check fails. It is a subclass of :exc:`DatabaseError`.
.. exception:: ProgrammingError
Exception raised for programming errors, e.g. table not found or already
exists, syntax error in the SQL statement, wrong number of parameters
specified, etc. It is a subclass of :exc:`DatabaseError`.
.. _sqlite3-types:
SQLite and Python types
...
...
Misc/ACKS
Dosyayı görüntüle @
ed789f9c
...
...
@@ -1360,6 +1360,7 @@ Shiyao Ma
Alex Shkop
Joel Shprentz
Yue Shuaijie
Jaysinh Shukla
Terrel Shumway
Eric Siegerman
Paul Sijben
...
...
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