MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / decl_base

Method decl_base

lib/sqlalchemy/testing/fixtures/base.py:130–142  ·  lib/sqlalchemy/testing/fixtures/base.py::TestBase.decl_base
(self, metadata)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

disposeMethod · 0.45

Tested by

no test coverage detected