| 71 | | def dictfetchone(cursor): |
|---|
| 72 | | "Returns a row from the cursor as a dict" |
|---|
| 73 | | # TODO: cursor.dictfetchone() doesn't exist in psycopg2, |
|---|
| 74 | | # but no Django code uses this. Safe to remove? |
|---|
| 75 | | return cursor.dictfetchone() |
|---|
| 76 | | |
|---|
| 77 | | def dictfetchmany(cursor, number): |
|---|
| 78 | | "Returns a certain number of rows from a cursor as a dict" |
|---|
| 79 | | # TODO: cursor.dictfetchmany() doesn't exist in psycopg2, |
|---|
| 80 | | # but no Django code uses this. Safe to remove? |
|---|
| 81 | | return cursor.dictfetchmany(number) |
|---|
| 82 | | |
|---|
| 83 | | def dictfetchall(cursor): |
|---|
| 84 | | "Returns all rows from a cursor as a dict" |
|---|
| 85 | | # TODO: cursor.dictfetchall() doesn't exist in psycopg2, |
|---|
| 86 | | # but no Django code uses this. Safe to remove? |
|---|
| 87 | | return cursor.dictfetchall() |
|---|
| | 71 | dictfetchone = util.dictfetchone |
|---|
| | 72 | dictfetchmany = util.dictfetchmany |
|---|
| | 73 | dictfetchall = util.dictfetchall |
|---|