Searched refs:text_factory (Results 1 – 13 of 13) sorted by relevance
/external/python/cpython2/Doc/includes/sqlite3/ |
D | text_factory.py | 14 con.text_factory = str 25 con.text_factory = lambda x: unicode(x, "utf-8", "ignore") 33 con.text_factory = sqlite3.OptimizedUnicode
|
/external/python/cpython2/Lib/sqlite3/test/ |
D | factory.py | 208 self.con.text_factory = str 215 self.con.text_factory = lambda x: unicode(x, "utf-8", "ignore") 222 self.con.text_factory = sqlite.OptimizedUnicode 247 self.con.text_factory = lambda x: x 254 self.con.text_factory = sqlite.OptimizedUnicode 261 self.con.text_factory = sqlite.OptimizedUnicode
|
D | types.py | 91 orig_text_factory = self.con.text_factory 93 self.con.text_factory = str 96 self.con.text_factory = orig_text_factory 99 orig_text_factory = self.con.text_factory 102 self.con.text_factory = sqlite.OptimizedUnicode 108 self.con.text_factory = orig_text_factory
|
/external/python/cpython3/Doc/includes/sqlite3/ |
D | text_factory.py | 14 con.text_factory = bytes 24 con.text_factory = lambda x: x.decode("utf-8") + "foo"
|
/external/python/cpython3/Lib/sqlite3/test/ |
D | factory.py | 218 self.con.text_factory = bytes 225 self.con.text_factory = lambda x: str(x, "utf-8", "ignore") 234 self.con.text_factory = sqlite.OptimizedUnicode 258 self.con.text_factory = bytes 264 self.con.text_factory = bytearray 271 self.con.text_factory = lambda x: x
|
/external/python/cpython2/Modules/_sqlite/ |
D | cursor.c | 362 if ((self->connection->text_factory == (PyObject*)&PyUnicode_Type) in _pysqlite_fetch_one_row() 363 || (self->connection->text_factory == pysqlite_OptimizedUnicode)) { in _pysqlite_fetch_one_row() 366 self->connection->text_factory == pysqlite_OptimizedUnicode ? 1 : 0); in _pysqlite_fetch_one_row() 377 } else if (self->connection->text_factory == (PyObject*)&PyString_Type) { in _pysqlite_fetch_one_row() 380 … converted = PyObject_CallFunction(self->connection->text_factory, "s#", val_str, nbytes); in _pysqlite_fetch_one_row() 464 allow_8bit_chars = ((self->connection->text_factory != (PyObject*)&PyUnicode_Type) && in _pysqlite_query_execute() 465 (self->connection->text_factory != pysqlite_OptimizedUnicode)); in _pysqlite_query_execute()
|
D | connection.h | 91 PyObject* text_factory; member
|
D | connection.c | 95 self->text_factory = (PyObject*)&PyUnicode_Type; in pysqlite_connection_init() 291 Py_XDECREF(self->text_factory); in pysqlite_connection_dealloc() 1643 {"text_factory", T_OBJECT, offsetof(pysqlite_Connection, text_factory)},
|
/external/python/cpython3/Modules/_sqlite/ |
D | cursor.c | 294 if (self->connection->text_factory == (PyObject*)&PyUnicode_Type) { in _pysqlite_fetch_one_row() 318 } else if (self->connection->text_factory == (PyObject*)&PyBytes_Type) { in _pysqlite_fetch_one_row() 320 } else if (self->connection->text_factory == (PyObject*)&PyByteArray_Type) { in _pysqlite_fetch_one_row() 323 … converted = PyObject_CallFunction(self->connection->text_factory, "y#", val_str, nbytes); in _pysqlite_fetch_one_row()
|
D | connection.h | 85 PyObject* text_factory; member
|
D | connection.c | 108 self->text_factory = (PyObject*)&PyUnicode_Type; in pysqlite_connection_init() 251 Py_XDECREF(self->text_factory); in pysqlite_connection_dealloc() 1675 {"text_factory", T_OBJECT, offsetof(pysqlite_Connection, text_factory)},
|
/external/python/cpython2/Doc/library/ |
D | sqlite3.rst | 439 .. attribute:: text_factory 455 .. literalinclude:: ../includes/sqlite3/text_factory.py 722 | ``TEXT`` | depends on :attr:`~Connection.text_factory`, |
|
/external/python/cpython3/Doc/library/ |
D | sqlite3.rst | 485 .. attribute:: text_factory 497 .. literalinclude:: ../includes/sqlite3/text_factory.py 799 | ``TEXT`` | depends on :attr:`~Connection.text_factory`, |
|