(self, metadata)
| 128 | |
| 129 | @config.fixture |
| 130 | def decl_base(self, metadata): |
| 131 | _md = metadata |
| 132 | |
| 133 | class Base(DeclarativeBase): |
| 134 | metadata = _md |
| 135 | type_annotation_map = { |
| 136 | str: sa.String().with_variant( |
| 137 | sa.String(50), class="st">"mysql", class="st">"mariadb", class="st">"oracle" |
| 138 | ) |
| 139 | } |
| 140 | |
| 141 | yield Base |
| 142 | Base.registry.dispose() |
| 143 | |
| 144 | @config.fixture |
| 145 | def dc_decl_base(self, metadata): |