MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _create_configs_table

Method _create_configs_table

pre_commit/store.py:217–223  ·  view source on GitHub ↗
(self, db: sqlite3.Connection)

Source from the content-addressed store, hash-verified

215 )
216
217 def _create_configs_table(self, db: sqlite3.Connection) -> None:
218 db.executescript(
219 'CREATE TABLE IF NOT EXISTS configs ('
220 ' path TEXT NOT NULL,'
221 ' PRIMARY KEY (path)'
222 ');',
223 )
224
225 def mark_config_used(self, path: str) -> None:
226 if self.readonly: # pragma: win32 no cover

Callers 3

__init__Method · 0.95
mark_config_usedMethod · 0.95
_gcFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected