Subject | Re: [firebird-python] Re: How do i build the documentation ? |
---|---|
Author | Pavel Cisar |
Post date | 2011-11-13T09:34:47Z |
Dne 13.11.2011 00:11, mariuz napsal(a):
it's not Python DB API 2.0 standard functionality. It's a nice addition,
but not necessary. BTW, it requires "decription" attribute for
implementation and special dict-like wrapper for row tuples.
members.
best regards
Pavel Cisar
IBPhoenix
>"itermap" (and other *map methods) is special addition from kinterbasdb,
>>>> for row in cur.itermap():
> ... print '%(name)s has been publicly available since %(year_released)d.' % row
> ...
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> AttributeError: 'Cursor' object has no attribute 'itermap'
it's not Python DB API 2.0 standard functionality. It's a nice addition,
but not necessary. BTW, it requires "decription" attribute for
implementation and special dict-like wrapper for row tuples.
> python test.pyDESCRIPTION_* constants are helpers to access "description" attribute
> Traceback (most recent call last):
> File "test.py", line 13, in <module>
> print fieldDesc[k.DESCRIPTION_NAME].ljust(fieldDesc[k.DESCRIPTION_DISPLAY_SIZE]) ,
> AttributeError: 'module' object has no attribute 'DESCRIPTION_NAME'
members.
best regards
Pavel Cisar
IBPhoenix