| Home | Trees | Index | Help |
|---|
Behavior--+ |Behavior--+ |Behavior--+ | Behavior
Behavior class for SQLite3 backends.
Limitations:| Method Summary | |
|---|---|
Create a new Behavior instance. | |
| Inherited from Behavior | |
SQLite does not support referential constraints, so this function returns an empty code-triple. | |
Create a new SQLite database for the associated connection. | |
Create a code-triple for the given primary key | |
Generate a code-triple to create or change the given table. | |
SQLite does not support referential constraints, so this function returns an empty code-triple. | |
Read the connection's schema and build a GSchema object tree connected to the given parent object (which is of type GSSchema). | |
| Inherited from Behavior | |
Create trailing SQL code for building a table. | |
Create a code-triple for the given GSTable or GSField. | |
Create a code triple for the given index. | |
Process special kinds of default values like sequences, functions and so on. | |
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. | |
Return the native datatype for a string 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)
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Nov 18 23:02:03 2008 | http://epydoc.sf.net |