Buckets:

download
raw
600 Bytes
import asyncio
from agno.db.migrations.manager import MigrationManager
from agno.db.mysql import MySQLDb
# Create your database connection here
db_url = "mysql+pymysql://ai:ai@localhost:3306/ai"
db = MySQLDb(db_url=db_url)
# Upgrade your DB to the latest version
async def run_migration():
await MigrationManager(db).up()
# Optionally force the migration if necessary
# await MigrationManager(db).up(force=True)
# Downgrade your DB to a specific version
# await MigrationManager(db).down(target_version="2.0.0")
if __name__ == "__main__":
asyncio.run(run_migration())

Xet Storage Details

Size:
600 Bytes
·
Xet hash:
8b3b2529ad52611f0afa5b19e51ed28b3f616c2d9b0f856c676535618b0e4998

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.