MCPcopy Create free account
hub / github.com/feast-dev/feast / _get_conn

Method _get_conn

sdk/python/feast/infra/online_stores/sqlite.py:142–150  ·  view source on GitHub ↗
(self, config: RepoConfig)

Source from the content-addressed store, hash-verified

140 return db_path
141
142 def _get_conn(self, config: RepoConfig):
143 enable_sqlite_vec = (
144 sys.version_info[0:2] == (3, 10) and config.online_store.vector_enabled
145 )
146 if not self._conn:
147 db_path = self._get_db_path(config)
148 self._conn = _initialize_conn(db_path, enable_sqlite_vec)
149
150 return self._conn
151
152 def online_write_batch(
153 self,

Callers 5

online_write_batchMethod · 0.95
online_readMethod · 0.95
updateMethod · 0.95

Calls 2

_get_db_pathMethod · 0.95
_initialize_connFunction · 0.85

Tested by

no test coverage detected