MCPcopy Index your code
hub / github.com/python/cpython / memory_database

Function memory_database

Lib/test/test_sqlite3/util.py:11–13  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

9
10# Helper for temporary memory databases
11def memory_database(*args, **kwargs):
12 cx = sqlite3.connect(":memory:", *args, **kwargs)
13 return contextlib.closing(cx)
14
15
16# Temporarily limit a database connection parameter

Calls 1

connectMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…