Home
last modified time | relevance | path

Searched refs:text_factory (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Lib/test/test_sqlite3/
H A Dtest_factory.py272 self.con.text_factory = bytes
279 self.con.text_factory = lambda x: str(x, "utf-8", "ignore")
288 self.con.text_factory = sqlite.OptimizedUnicode
307 # text_factory defaults to str
313 self.con.text_factory = bytes
319 self.con.text_factory = bytearray
326 self.con.text_factory = lambda x: x
H A Dtest_dbapi.py543 cx.text_factory = bytes
/third_party/python/Modules/_sqlite/
H A Dconnection.h82 PyObject* text_factory; member
H A Dcursor.c397 if (self->connection->text_factory == (PyObject*)&PyUnicode_Type) { in _pysqlite_fetch_one_row()
418 } else if (self->connection->text_factory == (PyObject*)&PyBytes_Type) { in _pysqlite_fetch_one_row()
420 } else if (self->connection->text_factory == (PyObject*)&PyByteArray_Type) { in _pysqlite_fetch_one_row()
423 converted = PyObject_CallFunction(self->connection->text_factory, "y#", text, nbytes); in _pysqlite_fetch_one_row()
H A Dconnection.c255 self->text_factory = Py_NewRef(&PyUnicode_Type); in pysqlite_connection_init_impl()
303 Py_VISIT(self->text_factory); in connection_traverse()
327 Py_CLEAR(self->text_factory); in connection_clear()
2367 {"text_factory", T_OBJECT, offsetof(pysqlite_Connection, text_factory)},

Completed in 9 milliseconds