Skip to main content

Run SQL migrations stored in the cloud.

Project description

☁️ Yoyo Cloud ☁️

Run SQL migrations from cloud storage

Yoyo cloud builds on top of Yoyo migrations and allows appying SQL migrations that are stored in cloud storage.

Example

Applying from S3

from yoyo import get_backend
from yoyo_cloud import read_s3_migrations

if __name__ == "__main__":
    migrations = read_s3_migrations(paths=["s3://bucket/yoyo-migrations-s3/"])
    backend = get_backend(f"postgresql://postgres:my-secret-pw@localhost:5432/postgres")

    with backend.lock():
        # -- Apply any outstanding migrations
        backend.apply_migrations(backend.to_apply(migrations))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yoyo_cloud-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

yoyo_cloud-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file yoyo_cloud-0.1.0.tar.gz.

File metadata

  • Download URL: yoyo_cloud-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Linux/6.5.0-25-generic

File hashes

Hashes for yoyo_cloud-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c5ecae2b7f24fd5c40b260b05a20845d768291cd08615846798307730ae31ddd
MD5 427dc037ddfd473266009d2da4c96dd4
BLAKE2b-256 c66c5bead384ea6666465edbec10142334ea4af9ca290bf76a6e824d3d5f8f3b

See more details on using hashes here.

File details

Details for the file yoyo_cloud-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yoyo_cloud-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Linux/6.5.0-25-generic

File hashes

Hashes for yoyo_cloud-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8742dd24d48034fed245c2bddc61260cbe1a56195537595f5e1d032afad4c9f
MD5 da2839b624c9b61bd92037ae2766ca45
BLAKE2b-256 1c2784950a463dbdc75ea1bfc03d02cf26948aff6a67a138ea920f1a0fd5db82

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page