MCPcopy Create free account
hub / github.com/FastLED/FastLED / _get_connection

Method _get_connection

ci/util/lock_database.py:40–45  ·  view source on GitHub ↗

Get a new database connection with WAL mode and busy timeout.

(self)

Source from the content-addressed store, hash-verified

38 self._init_db()
39
40 def _get_connection(self) -> sqlite3.Connection:
41 """Get a new database connection with WAL mode and busy timeout."""
42 conn = sqlite3.connect(str(self.db_path), timeout=10.0)
43 conn.execute("PRAGMA journal_mode=WAL")
44 conn.execute("PRAGMA busy_timeout=5000")
45 return conn
46
47 def _init_db(self) -> None:
48 """Initialize database schema."""

Callers 12

_init_dbMethod · 0.95
try_acquireMethod · 0.95
releaseMethod · 0.95
is_heldMethod · 0.95
get_lock_infoMethod · 0.95
break_stale_lockMethod · 0.95
force_breakMethod · 0.95
list_all_locksMethod · 0.95
cleanup_stale_locksMethod · 0.95
force_break_allMethod · 0.95

Calls 2

executeMethod · 0.80
connectMethod · 0.45