5.3.1 Dbms Objects
-
Creates a Dbms object. Dbms objects support basic
operations on a database.
Dbms objects have the following methods:
-
Begins a transaction on the database.
-
Closes the database object. It is safe to try to close a database object
even if it is not open.
-
Commits the current transaction.
-
Compacts the database, reclaiming unused space in the database file.
-
Creates a database with path dbname.
-
Executes an SQL query. On success, returns
0
if a DDL
(SQL schema update) statement was executed. Returns the number of rows
inserted, updated, or deleted, if a DML (SQL data update) statement
was executed.
-
Opens the database in file dbname. This should be a full
Unicode path name, for example,
u'c:\\foo.db'
.
-
Rolls back the current transaction.
Release 2.0.0 final , documentation updated on 10 Feb 2010.
See About this document... for information on suggesting changes.