| Home | Trees | Index | Help |
|---|
Behavior--+ |Behavior--+ | Behavior
Behavior class for MaxDB/SAP-DB backends.
Limitations:| Method Summary | |
|---|---|
Create a new Behavior instance. | |
Create a new database instance as defined by the connection's parameters. | |
Handle special defaults like 'serial' and 'timestamp'. | |
Read the connection's schema and build a GSchema object tree connected to the given parent object (which is of type GSSchema). | |
Return the native datatype for string fields | |
| Inherited from Behavior | |
Create trailing SQL code for building a table. | |
Create a code triple for the given constraint. | |
Create a code-triple for the given GSTable or GSField. | |
Create a code triple for the given index. | |
Create a code triple for the given primary key. | |
Generate a code-triple to create or change the given table. | |
Create a command sequence for dropping the given constraint. | |
Create a command sequence for dropping the given index. | |
Handle the nullable-flag of a given field. | |
Create a code-triple for a single field. | |
Set a default value for a given column. | |
Integrate the given schema into the current connection's schema and return the commands used to achive this. | |
Return the native datatye for a numeric field. | |
| Inherited from Behavior | |
| |
Create a new database specified by the associated connection. | |
Retrieve the connection's schema information and return it as GSchema object tree. | |
Generate a command sequence to integrate the given schema tree into the connection's current schema. | |
| Class Variable Summary | |
|---|---|
| Inherited from Behavior | |
bool |
_alterMultiple_: boolean flag indicating wether an 'alter table' statement can contain
multiple fields or not. |
bool |
_extraPrimaryKey_: boolean flag indicating wether primary keys must be added with an
extra command (ie. |
tuple |
_numbers_: triple specifying rules for datatype transformation of numeric
types. |
dict |
_type2native_: dictionary mapping field-types to native datatypes. |
list |
_writeableTypes_: list of GSTables-types to be handled by writeSchema (). |
| Inherited from Behavior | |
NoneType |
_maxIdLength_: maximum length of an identifier or None if no restriction. |
| Method Details |
|---|
__init__(self,
connection)
|
_createDatabase_(self)Create a new database instance as defined by the connection's parameters. The user will be asked for a username and password who is member of the SDBA group on the backend system and theirfore allowed to create new instances. If the database already exists no action takes place. |
_defaultwith_(self, code, field)Handle special defaults like 'serial' and 'timestamp'.
|
_readSchema_(self, parent)Read the connection's schema and build a GSchema object tree connected to the given parent object (which is of type GSSchema). |
string(self, field)Return the native datatype for string fields
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Nov 18 23:02:05 2008 | http://epydoc.sf.net |