# pleme-migrations
Database migration library for Pleme platform - safe migrations, zero-downtime
## Installation
```toml
[dependencies]
pleme-migrations = "0.1"
```
## Usage
```rust
use pleme_migrations::{MigrationRunner, MigrationConfig};
let runner = MigrationRunner::new(pool, MigrationConfig::default());
runner.run().await?;
```
## Feature Flags
| `postgres` | PostgreSQL support via SQLx (default) |
| `integration` | pleme-database + pleme-error integration |
| `full` | All features enabled |
Enable features in your `Cargo.toml`:
```toml
pleme-migrations = { version = "0.1", features = ["full"] }
```
## Development
This project uses [Nix](https://nixos.org/) for reproducible builds:
```bash
nix develop # Dev shell with Rust toolchain
nix run .#check-all # cargo fmt + clippy + test
nix run .#publish # Publish to crates.io (--dry-run supported)
nix run .#regenerate # Regenerate Cargo.nix
```
## License
MIT - see [LICENSE](LICENSE) for details.