core: split mysql user/db into separate types module
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
use std::fmt;
|
||||
|
||||
use crate::core::protocol::{MySQLDatabase, MySQLUser};
|
||||
use crate::core::types::{MySQLDatabase, MySQLUser};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// This is the list of fields that are used to fetch the db + user + privileges
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//! database privileges related CLI commands.
|
||||
|
||||
use super::diff::{DatabasePrivilegeChange, DatabasePrivilegeRowDiff};
|
||||
use crate::core::protocol::{MySQLDatabase, MySQLUser};
|
||||
use crate::core::types::{MySQLDatabase, MySQLUser};
|
||||
|
||||
/// This enum represents a part of a CLI argument for editing database privileges,
|
||||
/// indicating whether privileges are to be added, set, or removed.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//! generating, validating and reducing diffs between two sets of database privileges.
|
||||
|
||||
use super::base::{DatabasePrivilegeRow, db_priv_field_human_readable_name};
|
||||
use crate::core::protocol::{MySQLDatabase, MySQLUser};
|
||||
use crate::core::types::{MySQLDatabase, MySQLUser};
|
||||
use prettytable::Table;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
|
||||
@@ -6,7 +6,7 @@ use super::base::{
|
||||
};
|
||||
use crate::core::{
|
||||
common::{rev_yn, yn},
|
||||
protocol::MySQLDatabase,
|
||||
types::MySQLDatabase,
|
||||
};
|
||||
use anyhow::{Context, anyhow};
|
||||
use itertools::Itertools;
|
||||
|
||||
Reference in New Issue
Block a user