store
mlte/store/catalog/underlying/rdbs/store.py
Implementation of relational database system catalog store.
RDBEntryMapper
Bases: CatalogEntryMapper
RDB mapper for a catalog entry resource.
Source code in mlte/store/catalog/underlying/rdbs/store.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
storage = storage
instance-attribute
A reference to underlying storage.
RelationalDBCatalogStore
Bases: CatalogStore
A DB implementation of the MLTE user store.
Source code in mlte/store/catalog/underlying/rdbs/store.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
storage = RDBStorage(uri, base_class=typing.cast(DeclarativeBase, DBBase), init_tables_func=init_catalog_tables, **kwargs)
instance-attribute
The relational DB storage.
session()
Return a session handle for the store instance.
Returns:
Type | Description |
---|---|
RelationalDBCatalogStoreSession
|
The session handle |
Source code in mlte/store/catalog/underlying/rdbs/store.py
48 49 50 51 52 53 54 55 |
|
RelationalDBCatalogStoreSession
Bases: CatalogStoreSession
A relational DB implementation of the MLTE user store session.
Source code in mlte/store/catalog/underlying/rdbs/store.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
entry_mapper = RDBEntryMapper(storage)
instance-attribute
The mapper to user CRUD.
read_only = read_only
instance-attribute
Whether this is read only or not.
storage = storage
instance-attribute
RDB storage.
close()
Close the session.
Source code in mlte/store/catalog/underlying/rdbs/store.py
82 83 84 |
|
init_catalog_tables(engine)
Pre-populate tables.
Source code in mlte/store/catalog/underlying/rdbs/store.py
58 59 60 61 |
|