Package CUBRIDdb :: Module connections :: Class Connection
[hide private]
[frames] | no frames]

Class Connection

object --+
         |
        Connection

CUBRID Database Connection Object

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Create a connecton to the database.
 
__del__(self)
 
cursor(self, dictCursor=None)
Return a new Cursor Object using the connection.
 
set_autocommit(self, value)
Set the autocommit attribute of the connection.
 
get_autocommit(self)
Get the autocommit attribute of the connection.
 
commit(self)
Commit any pending transaction to the database.
 
rollback(self)
This method causes the database to roll back to the start of any pending transaction.
 
set(self)
Create a LIST/SET/MULTISET object.
 
close(self)
Close the connection now
 
escape_string(self, buf)
Escape special characters in a string for use in an SQL statement

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  autocommit
autocommit value for current Cubrid session

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

 

Create a connecton to the database.

Overrides: object.__init__

set_autocommit(self, value)

 

Set the autocommit attribute of the connection. value -- True or False

get_autocommit(self)

 

Get the autocommit attribute of the connection. Return bool

commit(self)

 

Commit any pending transaction to the database. Note that if the database supports an auto-commit feature, this must be initially off. An interface method may be provided to turn it back on. Database modules that do not support transactions should implement this method with void functionality.

rollback(self)

 

This method causes the database to roll back to the start of any pending transaction. Closing a connection without committing the changes first will cause an implicit rollback to be performed.


Property Details [hide private]

autocommit

autocommit value for current Cubrid session

Get Method:
get_autocommit(self) - Get the autocommit attribute of the connection.
Set Method:
set_autocommit(self, value) - Set the autocommit attribute of the connection.