File: db.py

package info (click to toggle)
zope-mysqlda 2.0.8-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 184 kB
  • ctags: 103
  • sloc: python: 431; sh: 55; makefile: 47
file content (28 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class DB:

    """This is the ZMySQLDA Database Connection Object."""

    def __init__(self,connection):
        """
            connection
               blah blah
        """
        
    def tables(self, rdb=0,
               _care=('TABLE', 'VIEW')):
        """Returns a list of tables in the current database."""

    def columns(self, table_name):
        """Returns a list of column descriptions for 'table_name'."""

    def query(self,query_string, max_rows=1000):
        """Execute 'query_string' and return at most 'max_rows'."""

    def _begin(self, *ignored):
        """Begin a transaction (when TM is enabled)."""
        
    def _finish(self, *ignored):
        """Commit a transaction (when TM is enabled)."""

    def _abort(self, *ignored):
        """Rollback a transaction (when TM is enabled)."""