Ignore errors when automatically adding NS, DB, or TB definitions
This commit is contained in:
parent
b575f3a9db
commit
59d7e733eb
1 changed files with 3 additions and 3 deletions
|
@ -719,7 +719,7 @@ impl Transaction {
|
||||||
let val = DefineNamespaceStatement {
|
let val = DefineNamespaceStatement {
|
||||||
name: ns.to_owned().into(),
|
name: ns.to_owned().into(),
|
||||||
};
|
};
|
||||||
let _ = self.put(key, &val).await?;
|
let _ = self.put(key, &val).await;
|
||||||
Ok(val)
|
Ok(val)
|
||||||
}
|
}
|
||||||
/// Add a database with a default configuration.
|
/// Add a database with a default configuration.
|
||||||
|
@ -728,7 +728,7 @@ impl Transaction {
|
||||||
let val = DefineDatabaseStatement {
|
let val = DefineDatabaseStatement {
|
||||||
name: db.to_owned().into(),
|
name: db.to_owned().into(),
|
||||||
};
|
};
|
||||||
let _ = self.put(key, &val).await?;
|
let _ = self.put(key, &val).await;
|
||||||
Ok(val)
|
Ok(val)
|
||||||
}
|
}
|
||||||
/// Add a table with a default configuration.
|
/// Add a table with a default configuration.
|
||||||
|
@ -743,7 +743,7 @@ impl Transaction {
|
||||||
name: tb.to_owned().into(),
|
name: tb.to_owned().into(),
|
||||||
..DefineTableStatement::default()
|
..DefineTableStatement::default()
|
||||||
};
|
};
|
||||||
let _ = self.put(key, &val).await?;
|
let _ = self.put(key, &val).await;
|
||||||
Ok(val)
|
Ok(val)
|
||||||
}
|
}
|
||||||
/// Writes the full database contents as binary SQL.
|
/// Writes the full database contents as binary SQL.
|
||||||
|
|
Loading…
Reference in a new issue