ATLAS Offline Software
Loading...
Searching...
No Matches
python.dbsqlite Namespace Reference

Classes

class  SQLhash
class  SQLHashItemIterator
class  SQLHashKeyIterator
class  SQLHashValueIterator

Functions

 open (file=None, *args, **kw)
 open_shelf (file=None, *args, **kw)

Variables

list __all__ = ['error', 'open']
 error = sqlite3.DatabaseError
 flags
 p
 q
 r

Detailed Description

Dbm based on sqlite -- Needed to support shelves

Issues:

    # ??? how to coordinate with whichdb
    # ??? Any difference between blobs and text
    # ??? does default encoding affect str-->bytes or PySqlite3 always use UTF-8
    # ??? what is the correct isolation mode

Function Documentation

◆ open()

python.dbsqlite.open ( file = None,
* args,
** kw )

Definition at line 134 of file dbsqlite.py.

134def open(file=None, *args, **kw):
135 if file is not None:
136 return SQLhash(file, *args, **kw)
137 return SQLhash()
138

◆ open_shelf()

python.dbsqlite.open_shelf ( file = None,
* args,
** kw )

Definition at line 139 of file dbsqlite.py.

139def open_shelf(file=None, *args, **kw):
140 _db = open(file, *args, **kw)
141 return shelve.Shelf(_db)
142

Variable Documentation

◆ __all__

list python.dbsqlite.__all__ = ['error', 'open']
private

Definition at line 16 of file dbsqlite.py.

◆ error

python.dbsqlite.error = sqlite3.DatabaseError

Definition at line 24 of file dbsqlite.py.

◆ flags

python.dbsqlite.flags

Definition at line 200 of file dbsqlite.py.

◆ p

python.dbsqlite.p

Definition at line 211 of file dbsqlite.py.

◆ q

python.dbsqlite.q

Definition at line 211 of file dbsqlite.py.

◆ r

python.dbsqlite.r

Definition at line 211 of file dbsqlite.py.