feat(sql,store): add `Builder::new`

ref: https://github.com/tauri-apps/tauri/issues/8880
pull/968/head
amrbashir 1 year ago
parent 696af68c9b
commit 72db444401
No known key found for this signature in database
GPG Key ID: BBD7A47A2003FF33

@ -0,0 +1,6 @@
---
"sql": "patch"
"store": "patch"
---
Add `Builder::new` method.

@ -273,6 +273,10 @@ pub struct Builder {
}
impl Builder {
fn new() -> Self {
Self::default()
}
/// Add migrations to a database.
#[must_use]
pub fn add_migrations(mut self, db_url: &str, migrations: Vec<Migration>) -> Self {

@ -209,6 +209,10 @@ impl<R: Runtime> Default for Builder<R> {
}
impl<R: Runtime> Builder<R> {
fn new() -> Self {
Self::default()
}
/// Registers a store with the plugin.
///
/// # Examples

Loading…
Cancel
Save