Struct br_db::config::Connection
source · pub struct Connection {}Expand description
数据库连接
Fields§
§mode: Mode§hostname: String连接地址
hostport: String连接端口
database: String数据库名称
username: String账号
userpass: String密码
params: Vec<String>§charset: Charset数据库语言
prefix: String表前缀
debug: bool调试开关
backup_time: String备份时间
-
-
-
-
- command to be executed
-
-
-
| | | | | | | | | +—– 星期几 (0 - 7) (0 和 7 都代表星期日) | | | +—–– 月份 (1 - 12) | | +——— 日期 (1 - 31) | +———– 小时 (0 - 23) +———–– 分钟 (0 - 59)
• *:代表任何值。
• ,:用于分隔多个值。
• -:用于表示范围。
• /:用于指定步长。backup_path: PathBuf备份路径
backup_number: u8备份保留数量
Implementations§
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)