MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / dumps

Function dumps

lib/sqlalchemy/ext/serializer.py:174–178  ·  lib/sqlalchemy/ext/serializer.py::dumps
(obj, protocol=pickle.HIGHEST_PROTOCOL)

Source from the content-addressed store, hash-verified

172
173
174def dumps(obj, protocol=pickle.HIGHEST_PROTOCOL):
175 buf = BytesIO()
176 pickler = Serializer(buf, protocol)
177 pickler.dump(obj)
178 return buf.getvalue()
179
180
181def loads(data, metadata=None, scoped_session=None, engine=None):

Callers 15

processMethod · 0.85
test_pickle_quoteMethod · 0.85
test_pickle_typesMethod · 0.85
test_pickle_typesMethod · 0.85
test_pickleMethod · 0.85
test_serializeMethod · 0.85
test_serializeMethod · 0.85

Calls 2

SerializerClass · 0.85
dumpMethod · 0.45

Tested by 15

test_pickle_quoteMethod · 0.68
test_pickle_typesMethod · 0.68
test_pickle_typesMethod · 0.68
test_pickleMethod · 0.68
test_serializeMethod · 0.68
test_serializeMethod · 0.68