1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Drizzle CLI - Command-line interface for drizzle-rs migrations
//!
//! This crate provides a standalone CLI tool for managing database migrations
//! using a `drizzle.config.toml` configuration file instead of requiring Rust code.
//!
//! # Quick Start
//!
//! 1. Install the CLI: `cargo install drizzle-cli`
//! 2. Run `drizzle init` to create a `drizzle.config.toml`
//! 3. Run `drizzle generate` to create migrations
//!
//! # Configuration
//!
//! Create a `drizzle.config.toml` file in your project root (or run `drizzle init`):
//!
//! ```toml
//! dialect = "sqlite"
//! schema = "src/schema.rs"
//! out = "./drizzle"
//!
//! [dbCredentials]
//! url = "./dev.db"
//! ```
//!
//! For `PostgreSQL`:
//!
//! ```toml
//! dialect = "postgresql"
//! schema = "src/schema.rs"
//! out = "./drizzle"
//!
//! [dbCredentials]
//! url = "postgres://user:pass@localhost:5432/mydb"
//! ```
//!
//! # Commands
//!
//! - `drizzle init` - Create a new drizzle.config.toml configuration file
//! - `drizzle generate` - Generate a new migration from schema changes
//! - `drizzle generate --custom` - Create an empty migration for manual SQL
//! - `drizzle status` - Show migration status
//! - `drizzle migrate` - Run pending migrations (requires database connection)
//! - `drizzle push` - Push schema directly to database (requires database connection)
//! - `drizzle introspect` - Introspect database and generate snapshot (requires database connection)
pub use ;
pub use CliError;