MCPcopy Create free account
hub / github.com/dot-agent/nextpy / alembic_init

Method alembic_init

nextpy/data/model.py:168–173  ·  view source on GitHub ↗

Initialize alembic for the project.

(cls)

Source from the content-addressed store, hash-verified

166
167 @classmethod
168 def alembic_init(cls):
169 """Initialize alembic for the project."""
170 alembic.command.init(
171 config=alembic.config.Config(constants.ALEMBIC_CONFIG),
172 directory=str(Path(constants.ALEMBIC_CONFIG).parent / "alembic"),
173 )
174
175 @classmethod
176 def alembic_autogenerate(

Callers 2

db_initFunction · 0.80
test_automigrationFunction · 0.80

Calls 1

PathClass · 0.85

Tested by 1

test_automigrationFunction · 0.64