mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
Implement Default for QueryBuilder (#2605)
This commit is contained in:
parent
3662bdab84
commit
f7ce8fd9f4
1 changed files with 10 additions and 0 deletions
|
@ -30,6 +30,16 @@ where
|
|||
arguments: Option<<DB as HasArguments<'args>>::Arguments>,
|
||||
}
|
||||
|
||||
impl<'args, DB: Database> Default for QueryBuilder<'args, DB> {
|
||||
fn default() -> Self {
|
||||
QueryBuilder {
|
||||
init_len: 0,
|
||||
query: String::default(),
|
||||
arguments: Some(Default::default()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'args, DB: Database> QueryBuilder<'args, DB>
|
||||
where
|
||||
DB: Database,
|
||||
|
|
Loading…
Reference in a new issue