Socket
Socket
Sign inDemoInstall

sqlite-migration-manager

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlite-migration-manager

A SQLite database migration management library


Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc