File tree Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change
1
+ //! # SQLx CLI
2
+ //!
3
+ //! Command-line utility for the [SQLx](https://github.com/launchbadge/sqlx) ecosystem.
4
+ //!
5
+ //! This crate provides the core logic for the `sqlx` command-line interface, enabling database management,
6
+ //! migrations, and offline query preparation for Rust projects using SQLx.
7
+ //!
8
+ //! ### Note: Semver Exempt API
9
+ //! The API of this crate is not meant for general use and does *not* follow Semantic Versioning.
10
+ //! The only crate that follows Semantic Versioning in the project is the `sqlx` crate itself.
11
+ //! If you are building a custom SQLx driver, you should pin an exact version for `sqlx-cli` to
12
+ //! avoid breakages:
13
+ //!
14
+ //! ```toml
15
+ //! sqlx-cli = { version = "=0.9.0" }
16
+ //! ```
17
+ //!
18
+ //! And then make releases in lockstep with `sqlx-cli`. We recommend all driver crates, in-tree
19
+ //! or otherwise, use the same version numbers as `sqlx-cli` to avoid confusion.
20
+
1
21
use std:: future:: Future ;
2
22
use std:: io;
3
23
use std:: time:: Duration ;
@@ -9,15 +29,15 @@ use tokio::{select, signal};
9
29
10
30
use crate :: opt:: { Command , ConnectOpts , DatabaseCommand , MigrateCommand } ;
11
31
12
- mod database;
13
- mod metadata;
32
+ pub mod database;
33
+ pub mod metadata;
14
34
// mod migration;
15
35
// mod migrator;
16
36
#[ cfg( feature = "completions" ) ]
17
- mod completions;
18
- mod migrate;
19
- mod opt;
20
- mod prepare;
37
+ pub mod completions;
38
+ pub mod migrate;
39
+ pub mod opt;
40
+ pub mod prepare;
21
41
22
42
pub use crate :: opt:: Opt ;
23
43
You can’t perform that action at this time.
0 commit comments