pub enum CliError {
Show 14 variants
Config(Error),
IoError(String),
NoSchemaFiles(String),
SchemaParse(String),
DialectMismatch,
ConnectionError(String),
MigrationError(String),
MissingCredentials(&'static str),
Aborted(String),
MissingDriver {
dialect: &'static str,
feature: &'static str,
},
UnsupportedForDriver {
operation: &'static str,
driver: &'static str,
hint: &'static str,
},
MissingHints(String),
InvalidHints(String),
Other(String),
}Expand description
An error from a CLI command. Its Display text is what the user sees.
Variants§
Config(Error)
Loading or reading the config failed.
IoError(String)
A file or folder operation failed.
NoSchemaFiles(String)
No schema files matched the configured paths.
SchemaParse(String)
Schema source failed to parse or used attributes the macros reject.
DialectMismatch
The previous and current snapshots use different dialects.
ConnectionError(String)
Connecting to the database failed.
MigrationError(String)
Planning, verifying, or applying migrations failed.
MissingCredentials(&'static str)
A command that needs a live database found no credentials.
Aborted(String)
The user declined to continue, so nothing was applied.
MissingDriver
The CLI was built without the driver feature this database needs.
Fields
UnsupportedForDriver
Operation not supported for this driver.
Used for drivers the CLI cannot drive for this operation, such as
aws-data-api (not wired up yet) and MySQL migration repair.
Fields
MissingHints(String)
A run without a terminal met rename-or-create decisions that no hint answers. Holds the report listing them (as drizzle-kit prints it); the binary prints it to stdout and exits with code 2.
InvalidHints(String)
--hints / --hints-file could not be read or does not fit the
diff (for example a rename whose from is not a deleted entity).
Other(String)
Any other failure, with its message.
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for CliError
impl !UnwindSafe for CliError
impl Freeze for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<Joined, From> JoinKey<From, JoinReverse> for Joined
impl<Joined, From> JoinKey<From, JoinReverse> for Joined
impl<List> ListIncludes<Nil, ()> for List
impl<Mk> MarkerAggValidFor<()> for Mk
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more