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)
| File | Size | Uploaded | |
|---|---|---|---|
| sqlite_migration_manager-1.0.0.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|