(self, args, conn)
| 104 | return self._nextset(False) |
| 105 | |
| 106 | def _escape_args(self, args, conn): |
| 107 | if isinstance(args, (tuple, list)): |
| 108 | return tuple(conn.literal(arg) for arg in args) |
| 109 | elif isinstance(args, dict): |
| 110 | return {key: conn.literal(val) for (key, val) in args.items()} |
| 111 | else: |
| 112 | # If it's not a dictionary let's try escaping it anyways. |
| 113 | # Worst case it will throw a Value error |
| 114 | return conn.escape(args) |
| 115 | |
| 116 | def mogrify(self, query, args=None): |
| 117 | """ |