MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / __init__

Method __init__

keepercommander/storage/sqlite.py:108–114  ·  view source on GitHub ↗
(self, get_connection, schema, owner)

Source from the content-addressed store, hash-verified

106
107class SqliteRecordStorage(sqlite_dao.SqliteStorage, IRecordStorage):
108 def __init__(self, get_connection, schema, owner):
109 # type: (Callable[[], sqlite3.Connection], sqlite_dao.TableSchema, Union[str, int]) -> None
110 super(SqliteRecordStorage, self).__init__(get_connection, schema, owner)
111 if not schema.owner_column:
112 raise ValueError(f'SqliteRecordStorage: Schema \"{schema.table_name}\" should have an owner')
113 if schema.primary_key:
114 raise ValueError(f'SqliteRecordStorage: Schema \"{schema.table_name}\" should not have primary key')
115
116 def load(self):
117 return next(self.select_all(), None)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected