X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=psycopg2%2Fdoc%2Fapi%2Fpublic%2Fpsycopg2.extras.DictRow-class.html;fp=psycopg2%2Fdoc%2Fapi%2Fpublic%2Fpsycopg2.extras.DictRow-class.html;h=e278ca3b7af63ed137339fc1e0ee8484273c62e3;hb=e5bdc26e1423689c0ab3204931335787737946ea;hp=0000000000000000000000000000000000000000;hpb=f8dd312990da7cc744e1c148bfd395c18492f3f1;p=plcapi.git diff --git a/psycopg2/doc/api/public/psycopg2.extras.DictRow-class.html b/psycopg2/doc/api/public/psycopg2.extras.DictRow-class.html new file mode 100644 index 0000000..e278ca3 --- /dev/null +++ b/psycopg2/doc/api/public/psycopg2.extras.DictRow-class.html @@ -0,0 +1,376 @@ + + + + + psycopg2.extras.DictRow + + + + + + + + + + + + + + + + + + + +
+ + Package psycopg2 :: + Module extras :: + Class DictRow +
+
+ + +
[show private | hide private]
[frames | no frames]
+ + +

Type DictRow

+ +
+object --+    
+         |    
+      list --+
+             |
+            DictRow
+

+ +
+ +

A row object that allow by-colun-name access to data.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Method Summary
 __init__(self, + cursor) +
 __getitem__(self, + x) +
 get(self, + x, + default) +
 has_key(self, + x) +
 items(self) +
 keys(self) +
 values(self) +
    Inherited from list
 __add__(x, + y) +
+Return x+y...
 __contains__(x, + y) +
+Return y in x...
 __delitem__(x, + y) +
+Return del x[y]...
 __delslice__(x, + i, + j) +
+Use of negative indices is not supported.
 __eq__(x, + y) +
+Return x==y...
 __ge__(x, + y) +
+Return x>=y...
 __getattribute__(...) +
+x.__getattribute__('name') <==> x.name
 __getslice__(x, + i, + j) +
+Use of negative indices is not supported.
 __gt__(x, + y) +
+Return x>y...
 __hash__(x) +
+Return hash(x)...
 __iadd__(x, + y) +
+Return x+=y...
 __imul__(x, + y) +
+Return x*=y...
 __iter__(x) +
+Return iter(x)...
 __le__(x, + y) +
+Return x<=y...
 __len__(x) +
+Return len(x)...
 __lt__(x, + y) +
+Return x<y...
 __mul__(x, + n) +
+Return x*n...
 __ne__(x, + y) +
+Return x!=y...
 __new__(T, + S, + ...) +
+Return a new object with type S, a subtype of T...
 __repr__(x) +
+Return repr(x)...
 __rmul__(x, + n) +
+Return n*x...
 __setitem__(x, + i, + y) +
+Return x[i]=y...
 __setslice__(x, + i, + j, + y) +
+Use of negative indices is not supported.
 append(L, + object) +
+append object to end
 count(L, + value) +
+return number of occurrences of value
 extend(L, + iterable) +
+extend list by appending elements from the iterable
 index(...) +
+L.index(value, [start, [stop]]) -> integer -- return first index of value
 insert(L, + index, + object) +
+insert object before index
 pop(L, + index) +
+remove and return item at index (default last)
 remove(L, + value) +
+remove first occurrence of value
 reverse(L) +
+reverse IN PLACE
 sort(L, + cmpfunc) +
+stable sort IN PLACE; cmpfunc(x, y) -> -1, 0, 1
    Inherited from object
 __delattr__(...) +
+x.__delattr__('name') <==> del x.name
 __reduce__(...) +
+helper for pickle
 __reduce_ex__(...) +
+helper for pickle
 __setattr__(...) +
+x.__setattr__('name', value) <==> x.name = value
 __str__(x) +
+Return str(x)...

+ + + + + + +
Method Details
+ + +
+

__init__(self, + cursor) +
(Constructor) +

+
+
Overrides:
+
__builtin__.list.__init__
+
+
+
+ + +
+

__getitem__(self, + x) +
(Indexing operator) +

+
+
Overrides:
+
__builtin__.list.__getitem__
+
+
+
+ + +
+

get(self, + x, + default=None) +

+
+
+
+ + +
+

has_key(self, + x) +

+
+
+
+ + +
+

items(self) +

+
+
+
+ + +
+

keys(self) +

+
+
+
+ + +
+

values(self) +

+
+
+
+
+ + + + + + + + + + + + + + + + + + +
+ +