Package web2py :: Package gluon :: Module dal2 :: Class DB2Adapter
[hide private]
[frames] | no frames]

Class DB2Adapter

source code

    object --+        
             |        
ConnectionPool --+    
                 |    
       BaseAdapter --+
                     |
                    DB2Adapter

Instance Methods [hide private]
 
LEFT_JOIN(self) source code
 
RANDOM(self) source code
 
SELECT_LIMITBY(self, sql_s, sql_f, sql_t, sql_w, sql_o, limitby) source code
 
represent_exceptions(self, obj, fieldtype) source code
 
__init__(self, db, uri, pool_size=0, folder=None, db_codec='UTF-8')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
execute(self, command) source code
 
lastrowid(self, tablename) source code
 
rowslice(self, rows, minimum=0, maximum=None)
by default this function does nothing, oreload when db does no do slicing
source code

Inherited from BaseAdapter: ADD, AGGREGATE, AND, BELONGS, COMMA, COUNT, DELETE, DESC, DIV, DROP, EQ, EXTRACT, GE, GT, INSERT, LE, LIKE, LOWER, LT, MUL, NE, NOT, NOT_NULL, ON, OR, PRIMARY_KEY, SELECT, SUB, SUBSTRING, TRUNCATE, UPDATE, UPPER, VERBATIM, alias, commit, commit_on_alter_table, commit_prepared, concat_add, contraint_name, count, create_sequence_and_triggers, distributed_transaction_begin, expand, integrity_error_class, log_execute, parse, prepare, represent, rollback, rollback_prepared, select, support_distributed_transaction, tables

Inherited from ConnectionPool: find_or_make_work_folder, pool_connection

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

Static Methods [hide private]

Inherited from ConnectionPool: close_all_instances, set_thread_folder

Class Variables [hide private]
  types = {'blob': 'BLOB', 'boolean': 'CHAR(1)', 'date': 'DATE',...

Inherited from ConnectionPool (private): _connection_pools, _folders, _instances

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

LEFT_JOIN(self)

source code 
Overrides: BaseAdapter.LEFT_JOIN

RANDOM(self)

source code 
Overrides: BaseAdapter.RANDOM

SELECT_LIMITBY(self, sql_s, sql_f, sql_t, sql_w, sql_o, limitby)

source code 
Overrides: BaseAdapter.SELECT_LIMITBY

represent_exceptions(self, obj, fieldtype)

source code 
Overrides: BaseAdapter.represent_exceptions

__init__(self, db, uri, pool_size=0, folder=None, db_codec='UTF-8')
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

execute(self, command)

source code 
Overrides: BaseAdapter.execute

lastrowid(self, tablename)

source code 
Overrides: BaseAdapter.lastrowid

rowslice(self, rows, minimum=0, maximum=None)

source code 

by default this function does nothing, oreload when db does no do slicing

Overrides: BaseAdapter.rowslice
(inherited documentation)

Class Variable Details [hide private]

types

Value:
{'blob': 'BLOB',
 'boolean': 'CHAR(1)',
 'date': 'DATE',
 'datetime': 'TIMESTAMP',
 'decimal': 'NUMERIC(%(precision)s,%(scale)s)',
 'double': 'DOUBLE',
 'id': 'INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY NOT NULL',
 'integer': 'INT',
...