Back to index

python-biopython  1.60
Public Member Functions | Public Attributes | Static Public Attributes
Bio.DocSQL.Query Class Reference
Inheritance diagram for Bio.DocSQL.Query:
Inheritance graph
[legend]
Collaboration diagram for Bio.DocSQL.Query:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __iter__
def __repr__
def cursor
def dump

Public Attributes

 connection
 diagnostics
 statement
 params

Static Public Attributes

string MSG_FAILURE = "Failure"
string MSG_SUCCESS = "Success"
string message = "not executed"
string error_message = ""
string prefix = ""
string suffix = ""
 row_class = QueryRow

Detailed Description

SHOW TABLES

Definition at line 84 of file DocSQL.py.


Constructor & Destructor Documentation

def Bio.DocSQL.Query.__init__ (   self,
  args,
  keywds 
)

Reimplemented in Bio.DocSQL.Insert, Bio.DocSQL.Create, Bio.DocSQL.QueryAll, and Bio.DocSQL.QuerySingle.

Definition at line 96 of file DocSQL.py.

00096 
00097     def __init__(self, *args, **keywds):
00098         try:
00099             self.connection = keywds['connection']
00100         except KeyError:
00101             self.connection = connection
00102         try:
00103             self.diagnostics = keywds['diagnostics']
00104         except KeyError:
00105             self.diagnostics = 0
00106 
00107         self.statement = self.prefix + self.__doc__ + self.suffix
00108         self.params = args

Here is the caller graph for this function:


Member Function Documentation

def Bio.DocSQL.Query.__iter__ (   self)

Definition at line 109 of file DocSQL.py.

00109 
00110     def __iter__(self):
00111         return IterationCursor(self, self.connection)

Here is the caller graph for this function:

def Bio.DocSQL.Query.__repr__ (   self)

Definition at line 112 of file DocSQL.py.

00112 
00113     def __repr__(self):
00114         return "%s(message=%s)" % (self.__class__.__name__, self.message)

def Bio.DocSQL.Query.cursor (   self)

Reimplemented in Bio.DocSQL.QuerySingle.

Definition at line 115 of file DocSQL.py.

00115 
00116     def cursor(self):
00117         return iter(self).cursor

Here is the caller graph for this function:

def Bio.DocSQL.Query.dump (   self)

Definition at line 118 of file DocSQL.py.

00118 
00119     def dump(self):
00120         for item in self:
00121             print item


Member Data Documentation

Definition at line 98 of file DocSQL.py.

Definition at line 102 of file DocSQL.py.

string Bio.DocSQL.Query.error_message = "" [static]

Definition at line 91 of file DocSQL.py.

string Bio.DocSQL.Query.message = "not executed" [static]

Reimplemented in Bio.DocSQL.Create.

Definition at line 90 of file DocSQL.py.

string Bio.DocSQL.Query.MSG_FAILURE = "Failure" [static]

Definition at line 88 of file DocSQL.py.

string Bio.DocSQL.Query.MSG_SUCCESS = "Success" [static]

Definition at line 89 of file DocSQL.py.

Definition at line 107 of file DocSQL.py.

string Bio.DocSQL.Query.prefix = "" [static]

Definition at line 92 of file DocSQL.py.

Definition at line 94 of file DocSQL.py.

Reimplemented in Bio.DocSQL.QueryGeneric.

Definition at line 106 of file DocSQL.py.

string Bio.DocSQL.Query.suffix = "" [static]

Definition at line 93 of file DocSQL.py.


The documentation for this class was generated from the following file: