Skip to main content

SQLite Migration Manager

A simple file based SQlite migration manager python library

Installation

You can install SQLite Migration Manager using pip:

pip install sqlite-migration-manager

Usage

Here's a basic example of how to use SQLite Migration Manager:

from sqlite_migration_manager import SQLiteMigrationManager

db_path = 'path/to/your/database.db'
patches_dir = 'path/to/your/migration/files'

with SQLiteMigrationManager(db_path, patches_dir) as manager:
    manager.run_migrations()

Migration Files

Create SQL migration files in your patches directory with names following the pattern:

001_initial_schema.sql
002_add_users_table.sql
003_add_email_to_users.sql
...

The numeric prefix determines the order of execution.

Metadata

Release files for sqlite-migration-manager 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sqlite-migration-manager 1.0.0
File Size Uploaded
sqlite_migration_manager-1.0.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqlite-migration-manager 1.0.0
File Interpreter ABI Platform
sqlite_migration_manager-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / sqlite_migration_manager-1.0.0.tar.gz

Download URL sqlite_migration_manager-1.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
655ec2c35e044ea8fc12ef700a23920cd169b0ec650186b4a3d01fc78455f3a9
BLAKE2b-256 checksum
How to use checksums
786ca766b76b04e0c52cb4090a689f4e03458364459807ab6023cf9d1b6b65f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Release files / sqlite_migration_manager-1.0.0-py3-none-any.whl

Download URL sqlite_migration_manager-1.0.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee659e4b973f07355f5573cda7f05531401ae66d358ff3c0dbf314f7e50559f8
BLAKE2b-256 checksum
How to use checksums
969871e8e72e719e3274fbf2adb5a257dfb590fa1070615fc54651ec639ca3bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page