MCPcopy
hub / github.com/serengil/deepface / flush_data

Function flush_data

tests/integration/test_postgres_search.py:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26# pylint: disable=unused-argument
27@pytest.fixture
28def flush_data():
29 conn = psycopg.connect(**connection_details_dict)
30 cur = conn.cursor()
31 cur.execute("DELETE FROM embeddings;")
32 conn.commit()
33 cur.close()
34 conn.close()
35 logger.info("🗑️ Embeddings data flushed.")
36
37
38@pytest.fixture

Callers

nothing calls this directly

Calls 2

infoMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected