store
Implementation of relation database system custom list store.
RDBCustomListEntryMapper
Bases: CustomListEntryMapper
RDB mapper mapper for the custom list entry resource.
Source code in mlte/store/custom_list/underlying/rdbs/store.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 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 146 | |
storage = storage
instance-attribute
A reference to underlying storage.
RDBCustomListStore
Bases: CustomListStore
A DB implementation of the MLTE custom list store.
Source code in mlte/store/custom_list/underlying/rdbs/store.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
storage = RDBStorage(uri, base_class=(typing.cast(DeclarativeBase, DBBase)), **kwargs)
instance-attribute
The relational DB storage.
session()
Return a session handle fo the store session.
Returns:
| Type | Description |
|---|---|
RDBCustomListStoreSession
|
The session handle |
Source code in mlte/store/custom_list/underlying/rdbs/store.py
39 40 41 42 43 44 | |
RDBCustomListStoreSession
Bases: CustomListStoreSession
A relational DB implementation of the MLTE custom list store session.
Source code in mlte/store/custom_list/underlying/rdbs/store.py
52 53 54 55 56 57 58 59 60 61 62 63 64 | |
custom_list_entry_mapper = RDBCustomListEntryMapper(storage)
instance-attribute
The mapper to entry CRUD
storage = storage
instance-attribute
"RDB storage.
close()
Close the session.
Source code in mlte/store/custom_list/underlying/rdbs/store.py
62 63 64 | |