Lines Matching refs:database
5 :synopsis: Interfaces to various Unix "database" formats.
11 :mod:`dbm` is a generic interface to variants of the DBM database:
31 This function attempts to guess which of the several simple database modules
48 Open existing database for reading only.
51 Open existing database for reading and writing.
54 Open database for reading and writing, creating it if it doesn't exist.
57 Always create a new, empty database, open for reading and writing.
61 used only when the database has to be created.
65 Open a database and return the corresponding database object.
68 The database file to open.
70 If the database file already exists, the :func:`whichdb` function is used to
108 Deleting a key from a read-only database raises a database module specific exception
112 then prints out the contents of the database::
116 # Open database, creating it if necessary.
169 Open an SQLite database.
175 The path to the database to be opened.
187 used only when the database has to be created.
190 :mod:`dbm.gnu` --- GNU database manager
195 :synopsis: GNU database manager
220 Open a GDBM database and return a :class:`!gdbm` object.
223 The database file to open.
233 to control how the database is opened:
235 * ``'f'``: Open the database in fast mode.
236 Writes to the database will not be synchronized.
238 Changes to the database will be written immediately to the file.
239 * ``'u'``: Do not lock database.
263 It's possible to loop over every key in the database using this method and the
271 every key in the database ``db``, without having to create a list in memory that
282 used by the GDBM file, this routine will reorganize the database. :class:`!gdbm`
283 objects will not shorten the length of a database file except by using this
289 When the database has been opened in fast mode, this method forces any
294 Close the GDBM database.
298 Remove all items from the GDBM database.
327 size of values, which can result in corrupted database files
346 Open an NDBM database and return an :class:`!ndbm` object.
349 The basename of the database file
371 Close the NDBM database.
375 Remove all items from the NDBM database.
395 database modules.
414 Open a :mod:`!dbm.dumb` database.
415 The returned database object behaves similar to a :term:`mapping`,
420 The basename of the database file (without extensions).
421 A new database creates the following files:
425 :type database: :term:`path-like object`
437 It is possible to crash the Python interpreter when loading a database
442 :func:`~dbm.dumb.open` always creates a new database when *flag* is ``'n'``.
445 A database opened read-only if *flag* is ``'r'``.
446 A database is not created if it does not exist if *flag* is ``'r'`` or ``'w'``.
462 Close the database.