pub struct MigrateDatabases {
pub passwd: String,
pub databases: Vec<String>,
}
Expand description
Perform a “database migration” (upgrade the base
module)
Note that this method doesn’t actually perform any upgrades - instead, it
force-update the base
module, which has the effect of triggering an update
on all Odoo modules that depend on base
(which is all of them).
This method is probably used internally by Odoo’s upgrade service, and likely
isn’t useful on its own. If you need to upgrade a module, the Execute
is probably more suitable.
§Example
let resp = client.db_migrate_databases(
"master-password",
vec![
"database1".into(),
"database2".into()
]
).send()?;
Reference: odoo/service/db.py
Fields§
§passwd: String
The Odoo master password
databases: Vec<String>
A list of databases to be migrated
Trait Implementations§
Source§impl Debug for MigrateDatabases
impl Debug for MigrateDatabases
Source§impl JsonRpcParams for MigrateDatabases
impl JsonRpcParams for MigrateDatabases
type Container<T> = OdooApiContainer<MigrateDatabases>
type Response = MigrateDatabasesResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooApiMethod for MigrateDatabases
impl OdooApiMethod for MigrateDatabases
Source§fn describe(&self) -> (&'static str, &'static str)
fn describe(&self) -> (&'static str, &'static str)
Describe the JSON-RPC service and method for this type
Source§fn endpoint(&self) -> &'static str
fn endpoint(&self) -> &'static str
Describe method endpoint (e.g., “/web/session/authenticate”)
Source§fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Build
self
into a full JsonRpcRequest
Auto Trait Implementations§
impl Freeze for MigrateDatabases
impl RefUnwindSafe for MigrateDatabases
impl Send for MigrateDatabases
impl Sync for MigrateDatabases
impl Unpin for MigrateDatabases
impl UnwindSafe for MigrateDatabases
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