sqlite3 --- SQLite 資料庫的 DB-API 2.0 介面

原始碼:Lib/sqlite3/

SQLite is a C library that provides a lightweight disk-based database that doesn't require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language. Some applications can use SQLite for internal data storage. It's also possible to prototype an application using SQLite and then port the code to a larger database such as PostgreSQL or Oracle.

The sqlite3 module was written by Gerhard Häring. It provides an SQL interface compliant with the DB-API 2.0 specification described by PEP 249, and requires the third-party SQLite library.

This is an optional module. If it is missing from your copy of CPython, look for documentation from your distributor (that is, whoever provided Python to you). If you are the distributor, see 可選模組的需求.

此文件包含四個主要章節:

  • 教學 教導如何使用 sqlite3 模組。

  • Reference 描述此模組定義的類別與函式。

  • How-to guides 詳細說明如何處理特定工作。

  • 解釋 深入提供交易 (transaction) 控制的背景。