Base class for handling database operations.
Inherited from by the backend specific classes for Oracle, PostgreSQL,
etc.
|
|
|
connect(self,
reconnect=1)
Opens a connection to the database. |
source code
|
|
|
check_connection(self)
Check that this connection is still valid. |
source code
|
|
|
prepare(self,
sql,
force=0)
Prepare an SQL statement. |
source code
|
|
|
|
|
procedure(self,
name)
Return a pointer to a callable instance for a given stored procedure. |
source code
|
|
|
function(self,
name,
ret_type)
Return a pointer to a callable instance for a given stored function. |
source code
|
|
|
|
|
transaction(self,
name)
set a transaction point to which we can rollback to |
source code
|
|
|
rollback(self,
name=None)
rollback changes, optionally to a previously set transaction point |
source code
|
|
|
|
|
|
|
_fix_environment_vars(self)
Fix environment variables (to be redefined in subclasses) |
source code
|
|
|
_read_lob(self,
lob)
Reads a lob's contents |
source code
|
|
|
is_connected_to(self,
backend,
host,
port,
username,
password,
database,
sslmode)
Check if this database matches the given connection parameters. |
source code
|
|
|
Date(self,
year,
month,
day)
Returns a Date object |
source code
|
|
|
DateFromTicks(self,
ticks)
Returns a Date object |
source code
|
|